Skip to content

fix: hide imports from document symbols - #3113

Open
colecrouter wants to merge 1 commit into
sveltejs:masterfrom
colecrouter:master
Open

fix: hide imports from document symbols#3113
colecrouter wants to merge 1 commit into
sveltejs:masterfrom
colecrouter:master

Conversation

@colecrouter

Copy link
Copy Markdown

While not explicitly outlined, VSCode's current behavior for the TS LSP is to omit top-level imports from document symbols (see #50829 and f1efd11). This has the nice side effect of reducing clutter in the "Outline" view.

Before:
image

After:
image

Expanded tests to cover default, namespace, named, renamed, type-only, and import = require imports, while preserving other symbols.

@changeset-bot

changeset-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 723e801

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-language-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant