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
After inspecting the scope, the extension did not detected the variable, instead it detected as generic "source.dart"
I think it should have been detected as "variable.name.source.dart"
I think this may be solved by #2203, which is work to move from the TextMate grammar file to using semantic info from the analysis server directly (this will make it more accurate and solve a couple of bugs we have).
Finishing/merging the work requires VS Code finalizing (and shipping) the API which seems to be assigned to the February release.
With the semantic token work in dart-lang/sdk@cb2ede5 you'll now be able to theme using semantic tokens instead, which will produce more reliable tokens. In the example above, there will be a property token with the declaration modifier for itemSuggestions.
In order to get the fix you'll need Dart-Code v3.18.0 (a preview release should be available later today/tomorrow), be using LSP Preview, and have a Dart SDK from after yesterday (the most recent nightly works, and of course the next releases of Dart/Flutter SDKs will include this).
Due to some last minute issues, support for LSP 3.16 (which supports semantic tokens) won't be included in v3.18, but hopefully the next release after that.
Activity
DanTup commentedon Jan 28, 2020
I think this may be solved by #2203, which is work to move from the TextMate grammar file to using semantic info from the analysis server directly (this will make it more accurate and solve a couple of bugs we have).
Finishing/merging the work requires VS Code finalizing (and shipping) the API which seems to be assigned to the February release.
DanTup commentedon Dec 15, 2020
With the semantic token work in dart-lang/sdk@cb2ede5 you'll now be able to theme using semantic tokens instead, which will produce more reliable tokens. In the example above, there will be a
propertytoken with thedeclarationmodifier foritemSuggestions.In order to get the fix you'll need Dart-Code v3.18.0 (a preview release should be available later today/tomorrow), be using LSP Preview, and have a Dart SDK from after yesterday (the most recent nightly works, and of course the next releases of Dart/Flutter SDKs will include this).
DanTup commentedon Dec 22, 2020
Due to some last minute issues, support for LSP 3.16 (which supports semantic tokens) won't be included in v3.18, but hopefully the next release after that.