Skip to content

Prevent some exceptions #1500

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 7 commits into from
Jun 16, 2021
Merged

Prevent some exceptions #1500

merged 7 commits into from
Jun 16, 2021

Conversation

andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented Jun 15, 2021

Fixes #1495, #1498, and #1476.

This was actually the documented parameter, but at some point it changed to take
a file. It was better to use the `_workspaceService` service directly and safely
attempt to get the file than to require the user to do that beforehand.
Used by the `MonacoLanguageClient`. Because it has no real file backing, we had
to check that no file was returned in the prior commit.
As it can fail if the editor is being re-initialized.
@andyleejordan
Copy link
Member Author

@rjmholt Applied.

@andyleejordan andyleejordan enabled auto-merge June 15, 2021 22:14
@ghost ghost added Area-Language Server Issue-Bug A bug to squash. labels Jun 15, 2021
@andyleejordan andyleejordan linked an issue Jun 15, 2021 that may be closed by this pull request
@andyleejordan andyleejordan merged commit f5006ae into master Jun 16, 2021
@andyleejordan andyleejordan deleted the andschwa/fixes branch June 16, 2021 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants