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
Double suggestions #3555
Comments
Was caused by analysis_options.yaml |
@theSharpestTool can you be more specific? I'd be interested to know what caused this to see if it could be handled better. Thanks! |
Hi @DanTup it occurred because I added |
Thanks - I can repro and this looks like a bug in the LSP initialisation, I'm taking a look. |
This looks like an issue in the LSP initialisation when there are plugins. We register two completion providers:
Then when the plugin registers and we need to replace them, we only unregister one of them:
Then we re-register:
Since registration 3 was not removed, we end up with two Dart registrations, which results in VS Code asking for completions twice and the lists (which are identical) merged. |
…Dart ... when using plugins that register for Dart files. Fixes Dart-Code/Dart-Code#3555. Change-Id: Idadcda0b04f86eb40d11a69e8eadc7120c873ae7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213266 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This is fixed in the SDK by dart-lang/sdk@f951279 and will show up in a future SDK release. |
Describe the bug
VSCode shows double suggestions
To Reproduce
Steps to reproduce the behavior:
Try to trigger suggestions for any widget you will see that every options displayed twice. I guess it happened when Dart Code extension was updated to 3.26.0
Expected behavior
Should seee only one option
Screenshots
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: