Skip to content

fix: don't debounce document symbol request#2382

Merged
dummdidumm merged 1 commit into
sveltejs:masterfrom
jasonlyu123:doc-symbol-cancel
May 29, 2024
Merged

fix: don't debounce document symbol request#2382
dummdidumm merged 1 commit into
sveltejs:masterfrom
jasonlyu123:doc-symbol-cancel

Conversation

@jasonlyu123

Copy link
Copy Markdown
Member

#2353

The reason is that VSCode requested document symbols twice for the outline view and the sticky scroll. We cancelled one of them so the outline view shows "no symbols found in document 'A.svelte'". It seems the VSCode ts extension also caches the result from tsserver, mostly because it'll also be used in code lens. But the result is mostly fast enough. A 5000-line file takes like 100ms so we probably don't need it now. We can probably reconsider if #2378 lands and see if there is a large performance regression.

@dummdidumm dummdidumm merged commit 15a4aab into sveltejs:master May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants