-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Fix #1341 - Make sure initializationOptions is at least empty object #1897
Conversation
server/src/services/vls.ts
Outdated
@@ -83,6 +83,7 @@ export class VLS { | |||
} | |||
|
|||
async init(params: InitializeParams) { | |||
params.initializationOptions = params.initializationOptions || {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required to use VLS in Eclipse LSP4E, probably other simple implementation also. This field normally not exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer needed since we now use ?.
to access it
@@ -118,6 +118,18 @@ export function getDefaultVLSConfig(): VLSConfig { | |||
experimental: { | |||
templateInterpolationService: false | |||
} | |||
} | |||
}, | |||
css: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VLS just forward config.emmet and others to sub-services. Even undefined, after this sass <style lang="scss">
is operational.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will take this PR then
15ea6a0
to
93b7f7f
Compare
No longer applies, and should already be fixed by #1705. |
Thank you and sorry for the delay 👍 |
Simple change that allows me to register vls in eclipse LSP4E