Skip to content

Let VS Code infer extension host selection#78

Merged
Vizards merged 4 commits into
mainfrom
copilot/fix-extension-kind-ui-workspace
May 22, 2026
Merged

Let VS Code infer extension host selection#78
Vizards merged 4 commits into
mainfrom
copilot/fix-extension-kind-ui-workspace

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Summary

  • Remove the explicit extensionKind declaration and let VS Code choose the install/runtime host for the current window.
  • Add a compact startup diagnostics line with runtime placement signals: VS Code version, resolved extensionKind, remoteName, uiKind, platform, arch, and debugMode.

Verification

Tested the VSIX install flow on VS Code 1.121.0:

  • Local macOS window: installs locally, runs with extensionKind=1 remoteName=none uiKind=1 platform=darwin arch=arm64, provider works.
  • Remote-SSH Linux window: Install from VSIX installs on the SSH side, runs with extensionKind=2 remoteName=ssh-remote uiKind=1 platform=linux arch=x64, provider works.
  • Codespaces Linux window: Install from VSIX installs on the Codespace side, runs with extensionKind=2 remoteName=codespaces uiKind=1 platform=linux arch=x64, provider works.

This replaces the earlier UI-first direction. The tested behavior is better with no explicit extensionKind: local windows run locally, while Remote-SSH and Codespaces windows install and run the provider on the remote/workspace side.

Checks

  • npm run compile
  • npm run lint
  • npm run format:check

Copilot AI linked an issue May 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix extensionKind for Remote-SSH compatibility Fix Remote-SSH extension host selection May 15, 2026
Copilot AI requested a review from Vizards May 15, 2026 06:33
@Vizards Vizards force-pushed the copilot/fix-extension-kind-ui-workspace branch from 832a351 to 0841b53 Compare May 22, 2026 06:15
@Vizards Vizards changed the title Fix Remote-SSH extension host selection Let VS Code infer extension host selection May 22, 2026
@Vizards Vizards marked this pull request as ready for review May 22, 2026 06:22
Copilot AI review requested due to automatic review settings May 22, 2026 06:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the extension’s remote/local placement behavior by removing the explicit extensionKind manifest declaration so VS Code can infer the appropriate extension host, and adds a startup log line to help diagnose where/how the extension is running.

Changes:

  • Removed extensionKind from package.json to allow VS Code to choose the install/runtime host per window.
  • Extended activation logging with environment/runtime placement signals (VS Code version, extensionKind, remoteName, uiKind, platform/arch, debugMode).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/extension.ts Adds startup diagnostics log fields for runtime placement and environment.
package.json Removes explicit extensionKind to let VS Code infer host selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/extension.ts
Comment thread package.json
@Vizards Vizards merged commit 95e79ab into main May 22, 2026
5 checks passed
@Vizards Vizards deleted the copilot/fix-extension-kind-ui-workspace branch May 22, 2026 07:00
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.

ssh远程到服务器对话无反应

3 participants