Add Element.libraryUri and CompletionSuggestion.isNotImported

Remove libraryUrisToImport and libraryUriToImportIndex.

Change-Id: Iafe27d6fb0c5ce0c623567a0384a4579274b151f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227580
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov
2022-01-11 19:53:14 +00:00
committed by Commit Bot
parent 28e522ed97
commit 2170c061b0
24 changed files with 267 additions and 296 deletions
@@ -405,11 +405,10 @@ public interface AnalysisServer {
* {@code completion.getSuggestionDetails2}
*
* Clients must make this request when the user has selected a completion suggestion with the
* libraryUriToImportIndex field set. The server will respond with the text to insert, as well as
* any SourceChange that needs to be applied in case the completion requires an additional import
* to be added. The text to insert might be different from the original suggestion to include an
* import prefix if the library will be imported with a prefix to avoid shadowing conflicts in the
* file.
* isNotImported field set to true. The server will respond with the text to insert, as well as any
* SourceChange that needs to be applied in case the completion requires an additional import to be
* added. The text to insert might be different from the original suggestion to include an import
* prefix if the library will be imported with a prefix to avoid shadowing conflicts in the file.
*
* @param file The path of the file into which this completion is being inserted.
* @param offset The offset in the file where the completion will be inserted.