Merge pull request #7253 from ckipp01/UriFix

fix: get rid of the `FileChanges` abstraction
This commit is contained in:
eugene yokota 2023-05-14 13:38:30 -04:00 committed by GitHub
commit e22a9a7c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}