Skip to content

(fix) allow empty initializationOptions #411

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

Merged
merged 1 commit into from
Aug 2, 2020

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