Skip to content

Conversation

@jasonlyu123
Copy link
Member

After the sort import version is released. I saw my side project language client for the visual studio crash because of the unknown CodeActionKind. I hesitate to fix it here as the protocol did specify that the language-server client should not panic when there's an unknown CodeActionKind but I can't find a way to fix it on my side.

This adds a initialize option to force the server to filter out code actions the client doesn't support. If another client also has a similar problem they could also pass this option to fix the problem. Didn't choose to only filter out the "sort import". Because it might throw another error once there's a new one that it's not yet supported in the future.

@dummdidumm What do you think about this?

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with this change 👍

@dummdidumm dummdidumm merged commit 44d2d65 into sveltejs:master May 17, 2022
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