-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Editor becomes unusable for a short while when stepping into VS Code api call #132802
Comments
/dupliate #123257 |
@connor4312 I don't think it's the same issue. This is specific to stepping into minified files. Normal debugging works fine for me. Also some of this seems to be related to just opening a large minified file in the editor. I can reproduce some of the hangs just by opening that file without a debug session I'm reopening but let me know if you still think this is a duplicate |
How can I reproduce this with Code OSS? |
If I understand this correctly, this has nothing to do with debugging, and just opening the file exhibits slowness. I've taken an It looks like the file contains 115 lines of code, with many long lines (16k characters, 12k characters, etc.). These lines fall short of our default 20k characters limit (
Given these numbers, I think we should consider reducing the For example, if I change the grammar to Go (I know it doesn't make sense, but just to see what the influence of the grammar is) -- at most the UI thread is blocked for 165ms:
|
@hediet One way to tackle this would be to make this check be language dependent -- vscode/src/vs/workbench/services/textMate/browser/abstractTextMateService.ts Lines 448 to 451 in ad9e300
[typescript]: { "editor.maxTokenizationLineLength" } and [javascript]: { "editor.maxTokenizationLineLength" } , maybe something like 2000-3000 given the times I see with this grammar. (the JS grammar is basically the TS grammar)
|
Are default values per language supported? |
Yes, here is an example from markdown configuring editor.wordWrap. |
Much better performing now. Thanks for the fix! |
Issue Type: Bug
registerCommand
Bug
This steps into a minified copy of
extensionHostProcess.js
The entire editor freezes for a few seconds (I believe while syntax highlighting is kicking in)
The debugger remains frozen for a longer period, so that clicking step out doesn't appear to do anything
Eventually everything becomes interactive again but I hit this issue pretty consistently and it makes debugging an extension kind of painful
VS Code version: Code - Insiders 1.61.0-insider (Universal) (aa93eef, 2021-09-09T05:13:32.970Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
Extensions (55)
(2 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: