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

#6308: Close websocket channel when a language server connection is closed #6854

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

spoenemann
Copy link
Contributor

What it does

Fixes #6308.

How to test

Add the following line to json-starter.ts

setTimeout(() => process.exit(1), 5000);

Without this fix, the JSON language server stops working after 5 seconds. With the fix, the server is restarted every 5 seconds.

Review checklist

Reminder for reviewers

@spoenemann spoenemann requested a review from akosyakov January 9, 2020 12:27
@@ -54,3 +54,18 @@ export namespace MessagingService {
configure(service: MessagingService): void;
}
}

export interface WebSocketConnection extends IConnection {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be moved to vscode-ws-jsonrpc later.

@akosyakov akosyakov added core issues related to the core of the application messaging issues related to messaging labels Jan 10, 2020
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code changes looks good to me, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core issues related to the core of the application messaging issues related to messaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client is not notified when language server process terminates
3 participants