Skip to content

Conversation

@endenwer
Copy link
Contributor

@endenwer endenwer commented Aug 2, 2020

Allow to start the language server with empty initializationOptions. Right now it throws an error
Cannot read property 'dontFilterIncompleteCompletions' of null (Internal Error)

@dummdidumm
Copy link
Member

Nice catch, thanks!

@dummdidumm dummdidumm merged commit 79622f6 into sveltejs:master Aug 2, 2020
martinxyz added a commit to martinxyz/language-tools that referenced this pull request Aug 30, 2020
initializationOptions was null (it's optional but the vscode client
always sets it), which resulted in this traceback:

TypeError: Cannot read property 'svelte' of undefined
+    at LSConfigManager.update (.../dist/src/ls-config.js:61:46)
+    at PluginHost.updateConfig (.../PluginHost.js:29:21)
...snip...

Fixes regression from sveltejs#411
dummdidumm pushed a commit that referenced this pull request Aug 30, 2020
initializationOptions was null (it's optional but the vscode client
always sets it), which resulted in this traceback:

TypeError: Cannot read property 'svelte' of undefined
+    at LSConfigManager.update (.../dist/src/ls-config.js:61:46)
+    at PluginHost.updateConfig (.../PluginHost.js:29:21)
...snip...

Fixes regression from #411
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