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
{{ message }}
Repository navigation
Dart code in vscode semantic token type seems wired. #5324
I'm not sure why the modifier is missing, I'll take a look.
Something else that is odd in your screenshot is that the left key1 screenshot doesn't show a semantic token type at all. Can you reproduce this and copy/paste the exact code? For me, it seems to have a semantic token type of parameter still:
https://dart-review.googlesource.com/c/sdk/+/392582 will fix the issue of modifiers not being included on dynamic parameters. It's a fix in the Dart SDK, so it'll show up in a future Dart/Flutter SDK release.
I'll keep this issue open until the fix is merged.
Activity
DanTup commentedon Oct 30, 2024
I'm not sure why the modifier is missing, I'll take a look.
Something else that is odd in your screenshot is that the left
key1screenshot doesn't show a semantic token type at all. Can you reproduce this and copy/paste the exact code? For me, it seems to have a semantic token type of parameter still:DanTup commentedon Oct 30, 2024
https://dart-review.googlesource.com/c/sdk/+/392582 will fix the issue of modifiers not being included on
dynamicparameters. It's a fix in the Dart SDK, so it'll show up in a future Dart/Flutter SDK release.I'll keep this issue open until the fix is merged.
[analysis_server] Fix missing semantic token modifiers for dynamics
DanTup commentedon Oct 30, 2024
The fix was merged in dart-lang/sdk@37af167.
DanTup commentedon Nov 25, 2024
I forgot to close this when the fix merged. This ships in a future Dart/Flutter SDK.