Fix LSP cancellation by Colengms · Pull Request #12592 · microsoft/vscode-cpptools · GitHub
Skip to content

Fix LSP cancellation#12592

Merged
Colengms merged 2 commits into
mainfrom
coleng/fix_lsp_cancel
Aug 20, 2024
Merged

Fix LSP cancellation#12592
Colengms merged 2 commits into
mainfrom
coleng/fix_lsp_cancel

Conversation

@Colengms

Copy link
Copy Markdown
Contributor

Addresses: #12591

There is also an associated native-side change to put the error message in the correct field.

With the error message in the correct field, cancellation (and any other user or an ErrorResponse) results in an exception on the TypeScript side. Unfortunately, VS Code does not automatically convert LSP cancellation to the new(ish) CancellationError exception type used in providers.

@Colengms Colengms merged commit a0f863c into main Aug 20, 2024
@Colengms Colengms deleted the coleng/fix_lsp_cancel branch August 20, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants