Skip to content

Refactor/vscode-extension-mcp-restructure#834

Merged
nasdan merged 4 commits intofeature/#812-implement-vscode-ext-and-mcpfrom
refactor/vscode-extension-mcp-restructure
May 8, 2026
Merged

Refactor/vscode-extension-mcp-restructure#834
nasdan merged 4 commits intofeature/#812-implement-vscode-ext-and-mcpfrom
refactor/vscode-extension-mcp-restructure

Conversation

@Ivanruii
Copy link
Copy Markdown
Collaborator

No description provided.

export * from './server-definition-provider';
export * from './document-bridge';
export * from './external-clients';
export * from './setup';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we only need to export the setup file, isn't it??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed


context.subscriptions.push({
dispose: () => {
server.close();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

server.close() stops accepting new connections but does not close existing ones, so any in-flight request at deactivation time is left hanging briefly.

If the Node version allows it (18.2+), consider adding server.closeAllConnections() before server.close():

dispose: () => {
  server.closeAllConnections?.();
  server.close();
  try { unlinkSync(portFile); } catch {}
},

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. The minimum Node.js version for the minimum supported VS Code version is 22, so closeAllConnections is safe to use.

@nasdan nasdan merged commit 7d14768 into feature/#812-implement-vscode-ext-and-mcp May 8, 2026
2 of 3 checks passed
@nasdan nasdan deleted the refactor/vscode-extension-mcp-restructure branch May 8, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants