You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to autocomplete component properties I get this error:
TypeError: Cannot read properties of undefined (reading 'source')
at CompletionsProviderImpl.getCompletions (c:\Users\e-svetinar\.vscode\extensions\svelte.svelte-vscode-105.22.1\node_modules\svelte-language-server\dist\src\plugins\typescript\features\CompletionProvider.js:136:34)
at async TypeScriptPlugin.getCompletions (c:\Users\e-svetinar\.vscode\extensions\svelte.svelte-vscode-105.22.1\node_modules\svelte-language-server\dist\src\plugins\typescript\TypeScriptPlugin.js:137:29)
at async PluginHost.tryExecutePlugin (c:\Users\e-svetinar\.vscode\extensions\svelte.svelte-vscode-105.22.1\node_modules\svelte-language-server\dist\src\plugins\PluginHost.js:300:20)
at async c:\Users\e-svetinar\.vscode\extensions\svelte.svelte-vscode-105.22.1\node_modules\svelte-language-server\dist\src\plugins\PluginHost.js:55:28
at async Promise.all (index 3)
at async PluginHost.getCompletions (c:\Users\e-svetinar\.vscode\extensions\svelte.svelte-vscode-105.22.1\node_modules\svelte-language-server\dist\src\plugins\PluginHost.js:54:29)
As far as I could debug it I found that this pull #1609 introduced this bug.
Error is happening in line
I am using "carbon-components-svelte" maybe this is the problem since it works OK with my own components.
I created a github repo which if you try to autocomplete inside +page.svelte on a Header component there should be an error in output but if you try to autocomplete inside Component it's OK.
Describe the bug
When trying to autocomplete component properties I get this error:
As far as I could debug it I found that this pull #1609 introduced this bug.
Error is happening in line
language-tools/packages/language-server/src/plugins/typescript/features/CompletionProvider.ts
Line 274 in 0bffac8
Reproduction
I am using "carbon-components-svelte" maybe this is the problem since it works OK with my own components.
I created a github repo which if you try to autocomplete inside +page.svelte on a Header component there should be an error in output but if you try to autocomplete inside Component it's OK.
https://github.com/KaRkY/svelte-vscode-reproduction
Expected behaviour
Autocomplete should actually suggest useful suggestions.
System Info
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: