mirror of https://github.com/sbt/sbt.git
Merge pull request #7253 from ckipp01/UriFix
fix: get rid of the `FileChanges` abstraction
This commit is contained in:
commit
e22a9a7c5e
|
|
@ -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();
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue