Skip to content

Conversation

@jasonlyu123
Copy link
Member

#2130

This allows for finding current component references from the script tag. The advantage of this is that you can now use the "Find All References" command for component references. This will always open in the sidebar without setting the references.preferredLocation config.

While we're on this topic, I also map the reference for a component to "find component references". Currently, these are only the references for the file that was requested. The reason is that the name of the generated component is suffixed, so any import will be an aliased default import. Thus, TypeScript only searches within the same file.

I plan to add code lens support, but that will be in a separate PR later.

@dummdidumm dummdidumm merged commit bf99a93 into sveltejs:master Sep 19, 2023
@dummdidumm
Copy link
Member

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants