-
Notifications
You must be signed in to change notification settings - Fork 47
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 crashes for clients that don't support "workspace/configuration" requests #667
Conversation
]); | ||
}); | ||
|
||
it('ignores bsconfig.json files from vscode ignored paths', async () => { |
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.
Deleted this totally duplicate unit test
I know this is a bit unrelated to the PR, but do you think you can add another binary that expose the language server as a standalone application? |
Let's discuss this back in #665 |
}; | ||
//if supported, ask vscode for the `files.exclude` configuration |
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.
Shouldn't this comment use the generic "client" instead of specifically mentioning "vscode"?
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.
The files
and files.exclude
are specific to VSCode. I have no idea what other editors to do handle including/excluding files from the workspace, but they're probably doing it differently than this. So, the comment still makes sense, and we can enhance the comment in the future as we add support for other editors.
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.
That's true that the specific configuration options are not part of the standard. Although there are other clients such as Theia that model their settings after VS Code.
Prevent several crashes related to the language server incorrectly assuming that all clients support "workspace/configuration".