You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! This issue was fixed in the Dart SDK LSP server as part of #2535. In a future release of the SDK when using LSP (which you can opt in to with the dart.previewLsp setting, but will eventually become default) you should see the fix.
In the meantime, when you ctrl+click as sown in your screenshot, VS Code should open a "peek" window that lets you see navigate to the definition (though it requires an extra step to select it). Let me know if that's not working for you. Thanks!
It works. Thanks!
Using LSP the hyperlink-like underline always shows in a keyword like the second case in my screenshot, I would assume it would make more sense if the underline shows on the whole '...' import package name, like the first case in the screenshot.
Yeah, I agree. In order to fix that for LSP we need to adopt a new API that allows us to return which range the definition applies to. I've got a note to fix that, though it's not a priority as it's mostly cosmetic. Thanks!