Let VS Code infer extension host selection#78
Merged
Conversation
Closed
Copilot
AI
changed the title
[WIP] Fix extensionKind for Remote-SSH compatibility
Fix Remote-SSH extension host selection
May 15, 2026
…ompatibility Agent-Logs-Url: https://github.com/Vizards/deepseek-v4-for-copilot/sessions/cb1cee98-d619-41d6-a2f3-90e2217dbef3 Co-authored-by: Vizards <13443193+Vizards@users.noreply.github.com>
832a351 to
0841b53
Compare
Vizards
approved these changes
May 22, 2026
There was a problem hiding this comment.
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
extensionKindfrompackage.jsonto 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extensionKinddeclaration and let VS Code choose the install/runtime host for the current window.extensionKind,remoteName,uiKind,platform,arch, anddebugMode.Verification
Tested the VSIX install flow on VS Code 1.121.0:
extensionKind=1 remoteName=none uiKind=1 platform=darwin arch=arm64, provider works.Install from VSIXinstalls on the SSH side, runs withextensionKind=2 remoteName=ssh-remote uiKind=1 platform=linux arch=x64, provider works.Install from VSIXinstalls on the Codespace side, runs withextensionKind=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 compilenpm run lintnpm run format:check