Skip to content

Conversation

@dummdidumm
Copy link
Member

#1352
This makes use of the Svelte AST that is now returned from svelte2tsx (privately, do not use this elsewhere!) by checking if the AST node at the given position is of type text. This also helped refactor some other checks into something less hacky

@jasonlyu123 what do think of this approach, using the Svelte AST more in the language server?

sveltejs#1352
This makes use of the Svelte AST that is now returned from svelte2tsx (privately, do not use this elsewhere!) by checking if the AST node at the given position is of type text. This also helped refactor some other checks into something less hacky
@jasonlyu123
Copy link
Member

Seem like a good idea. We probably can't use the AST from vscode-html-languageservice here as most of the svelte block and moustache is treated as text.

@dummdidumm dummdidumm merged commit 513b28c into sveltejs:master Feb 7, 2022
@dummdidumm dummdidumm deleted the no-completions-in-text branch February 7, 2022 14:44
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