fix: get rid of the `FileChanges` abstraction

I don't believe this is actually needed. We can simplify the
`WorkspaceEdit` further and put together the mapping for `changes`
according to the LSP spec later on down the line. This will allow us to
remove the need for the `URI`, which is problematic.

closes #7252
This commit is contained in:
Chris Kipp 2023-05-14 09:52:16 +02:00
parent 9042a53b21
commit fa8dfd225d
2 changed files with 2 additions and 24 deletions

View File

@ -1,21 +0,0 @@
/*
* sbt
* Copyright 2011 - 2018, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under Apache License 2.0 (see LICENSE)
*/
package xsbti;
import java.net.URI;
import java.util.List;
/** A collection of TextEdits that belong to a given URI. */
public interface FileChanges {
/** The URI that the edits belong to. */
URI uri();
/** The edits belonging to the URI. */
List<TextEdit> edits();
}

View File

@ -7,7 +7,6 @@
package xsbti;
import java.net.URI;
import java.util.List;
/**
@ -22,6 +21,6 @@ import java.util.List;
*/
public interface WorkspaceEdit {
/** List of [[xsbti.FileChanges]] that belong to this WorkspaceEdit. */
List<FileChanges> changes();
/** List of [[xsbti.TextEdit]] that belong to this WorkspaceEdit. */
List<TextEdit> changes();
}