-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Go To Definition for CSS #169
Comments
Here are my quick thoughts about it: General thingsThis is the interface I would leave out the "class in template moustache tags" ( From template to cssStep 1 - get name at positionOption 1: Use the svelte compiler/parser output. The AST contains info about where classes are used I think. Drawback: Will not work if the code is in a state where svelte parser will throw an error. Step 2 - Find name in cssDon't know if we can leverage the existing CSS language service inside From css to templateStep 1 - get name at positionI think the CSS language service inside Step 2 - find name in templateOption 1: traverse svelte compiler/parser AST Architectural considerations
|
thanks for the great thoughts - this seems a bit bigger than i can handle right now i think. i may hunt around for something smaller to try tackling, maybe someone else can tackle this (or me in future) |
I would like this feature very much! (by DeepL translation) |
Linking #1518 |
I don't know why, but for me moving style tag to custom <style lang="scss">
@import './MyComponent.scss';
</style> Now I can navigate from |
Any progress on this? In Vue I found this feature very helpful. |
just helping to pick up issues from #83
go to definition
i have no knowledge of how to do this but happy to give it a try
The text was updated successfully, but these errors were encountered: