Skip to content

feat: workspace symbols support#2769

Merged
dummdidumm merged 3 commits intosveltejs:masterfrom
jasonlyu123:workspace-symbols
Jun 19, 2025
Merged

feat: workspace symbols support#2769
dummdidumm merged 3 commits intosveltejs:masterfrom
jasonlyu123:workspace-symbols

Conversation

@jasonlyu123
Copy link
Member

#2375.
Adding support in the Svelte language server so that you don't need to open ts/js files to use this feature. You can trigger this feature with Ctrl + T and search for symbol names. Some of the handling is also synced to the typescript-plugin so that it's more consistent, which also means vscode can better deduplicate the results from both tsserver and Svelte language server.

If users are using an lsp client that doesn't deduplicate results from different language servers, you can also disable this feature so that it doesn't show duplicate entries. Or if your client allows you to write your own middleware, you can skip the calculation if the ts extension is running.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@dummdidumm dummdidumm merged commit 291b484 into sveltejs:master Jun 19, 2025
3 checks passed
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