Skip to content
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

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

TwitchBronBron
Copy link
Member

Prevent several crashes related to the language server incorrectly assuming that all clients support "workspace/configuration".

]);
});

it('ignores bsconfig.json files from vscode ignored paths', async () => {
Copy link
Member Author

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

@ZeeD
Copy link
Contributor

ZeeD commented Aug 17, 2022

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?
Or do you prefer to keep it outside the project?

@TwitchBronBron
Copy link
Member Author

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? Or do you prefer to keep it outside the project?

Let's discuss this back in #665

@TwitchBronBron TwitchBronBron merged commit de1e560 into master Aug 17, 2022
@TwitchBronBron TwitchBronBron deleted the vscode-agnostic-language-server branch August 17, 2022 15:00
};
//if supported, ask vscode for the `files.exclude` configuration

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"?

Copy link
Member Author

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.

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.

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.

4 participants