-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompletionSuggestion not support auto import from library in vscode #50449
Comments
maybe |
it seems that only analysis_server can use CompletionGetSuggestions2Result(completion.getSuggestions2). in analyzer_plugin , it still CompletionGetSuggestionsResult. /// Handle a 'completion.getSuggestions' request.
///
/// Throw a [RequestFailure] if the request could not be handled.
Future<CompletionGetSuggestionsResult> handleCompletionGetSuggestions(
CompletionGetSuggestionsParams parameters) async {
return CompletionGetSuggestionsResult(
-1, -1, const <CompletionSuggestion>[]);
}
so |
tl;dr Maybe never. The |
I'm sad to heart that. analyzer_plugin is useful for who want to add custom lints or completions, it provides the possibility. Thank you all the same, please keep this issue open in case any update. |
it seems that it support in android studio but fail in vscode, does vscode have limitation ? |
This was fixed by 019fb7a (more info in Dart-Code/Dart-Code#4275 which was the same report). |
This tracker is for issues related to:
I'm making a plugin base on analyzer_plugin and follow the doc https://github.com/dart-lang/sdk/blob/master/pkg/analyzer_plugin/doc/tutorial/completion.md
The problem is that
libraryUri
is set andisNotImported
is set to true, but it still has not 'auto import from xxx' in completion. do i miss anything? or how can i do a completion with auto import library, thanks.The text was updated successfully, but these errors were encountered: