Skip to content

Await in protocol filter#10306

Merged
Colengms merged 5 commits intomainfrom
coleng/await_in_protocol_filter
Jan 19, 2023
Merged

Await in protocol filter#10306
Colengms merged 5 commits intomainfrom
coleng/await_in_protocol_filter

Conversation

@Colengms
Copy link
Contributor

Based on discussion related to: #10257

This is a more complete fix for: #10035
Previously worked around by: #10227

This fix is now possible due to an underlying issue in VS Code (actually vscode-languageclient) getting fixed: microsoft/vscode-languageserver-node#1146

Basically, all filters in protocolFilter.ts are now async, and use await to ensure filtered LSP messages are synchronized with other language client operations.

@Colengms Colengms merged commit 8431b37 into main Jan 19, 2023
@Colengms Colengms deleted the coleng/await_in_protocol_filter branch January 19, 2023 20:30
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP Middleware may late-evaluate parameters in async handlers, causing incorrect results

4 participants