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
Syntax highlighting freezing after typing #5082
Comments
I've seen this before, and then never been able to reproduce. My feeling is that either the server or VS Code are processing the request out of order with a modification, so the offsets are not applied correctly. What's odd is that some of the text seems too correct (for example How frequently do you see this? Do you have any feeling for what might contribute to it (like is it when the analysis server may be busy during initial analysis, or when you're typing quickly, or pasting large code chunks?). If I can repro it while capturing a log, it might be easier to narrow down. |
Multiple times per day. It happens beyond the initial analysis (if you mean like when VSCode starts up). I would say both, typing quickly and when pasting code in. |
By coincidence, I just saw this in the analysis server codebase. It looks to me like a VS Code bug, because if I open the "Inspect Tokens and Scopes" helper (a VS Code feature), it claims the text is the same colour in both positions of a multicolour word. I've opened microsoft/vscode#211369 with some screenshots. Will close this for now on the basis that it appears the bug is there, but we can re-open if the response indicates there might be something wrong here. |
Describe the bug
I work in a pretty large Flutter project and pretty often just after typing the syntax highlighting "freezes" and then parts of words get highlighted, etc (you can see in the screenshot below). Only parts after I typed are affected. I suspect this is an issue just because of the sheer size of the project. It does fix when I go to a different file then go back though.
To Reproduce
Steps to reproduce the behavior:
Can't reproduce it yet
Expected behavior
I expect the syntax highlighting to finish updating after I finish typing.
Screenshots
If applicable, add screenshots to help explain your problem.
Workspace Environment
Output from 'dart info'
C:\Users\bscho\.puro\shared\caches\c4cd48e186460b32d44585ce3c103271ab676355\dart-sdk\bin\dart.exe info
General info
Process info
Output from 'flutter doctor'
C:\Users\bscho\.puro\envs\trn\flutter\bin\flutter.bat doctor -v
The text was updated successfully, but these errors were encountered: