Skip to content

Sync with template: Fix duplicate server handlers on concurrent restarts#705

Merged
edvilme merged 1 commit into
mainfrom
sync/template-pr-259-c8b939bbaa7af851
Feb 25, 2026
Merged

Sync with template: Fix duplicate server handlers on concurrent restarts#705
edvilme merged 1 commit into
mainfrom
sync/template-pr-259-c8b939bbaa7af851

Conversation

@edvilme
Copy link
Copy Markdown
Contributor

@edvilme edvilme commented Feb 25, 2026

  • Move _disposables cleanup outside if(oldLsClient) in restartServer() so disposables are always cleaned up regardless of prior client state
  • Wrap lsClient.stop() in try/catch in deactivate() to handle errors during extension deactivation gracefully

==================================================================

Generated from template microsoft/vscode-python-tools-extension-template#259

- Move _disposables cleanup outside if(oldLsClient) in restartServer()
  so disposables are always cleaned up regardless of prior client state
- Wrap lsClient.stop() in try/catch in deactivate() to handle errors
  during extension deactivation gracefully

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edvilme
Copy link
Copy Markdown
Contributor Author

edvilme commented Feb 25, 2026

@copilot Does this use the getServerEnabled from settings.ts?

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

@edvilme I've opened a new pull request, #706, to work on those changes. Once the pull request is ready, I'll request review from you.

Comment thread src/extension.ts
@edvilme edvilme force-pushed the sync/template-pr-259-c8b939bbaa7af851 branch from c4613e0 to 31ea12e Compare February 25, 2026 22:51
@edvilme edvilme added bug Issue identified by VS Code Team member as probable bug debt Technical debt or repo cleanup labels Feb 25, 2026
@edvilme edvilme enabled auto-merge (squash) February 25, 2026 22:54
@edvilme edvilme merged commit 638171d into main Feb 25, 2026
37 of 39 checks passed
@edvilme edvilme deleted the sync/template-pr-259-c8b939bbaa7af851 branch February 25, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug debt Technical debt or repo cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants