Skip to content

Support VS Code Insiders with auto-detection and variant picker#938

Merged
KirillOsenkov merged 1 commit intoKirillOsenkov:mainfrom
AndyGerlicher:support-vscode-insiders
Mar 27, 2026
Merged

Support VS Code Insiders with auto-detection and variant picker#938
KirillOsenkov merged 1 commit intoKirillOsenkov:mainfrom
AndyGerlicher:support-vscode-insiders

Conversation

@AndyGerlicher
Copy link
Copy Markdown
Contributor

@AndyGerlicher AndyGerlicher commented Mar 27, 2026

Summary

Auto-detect both VS Code (stable) and VS Code Insiders installations so the Open in VS Code button works for users who only have Insiders installed.

When multiple variants are found, a small dropdown arrow appears next to the button to let the user switch. The choice is persisted across sessions.

Closes #935

Changes

File What changed
SettingsService.cs New PreferredVSCodeVariant setting persisted in Settings.txt
BuildControl.xaml.cs New VSCodeInstallation class; FindVSCodeInstallations() detects stable + Insiders paths and PATH; OpenInVSCode() uses correct URI scheme; EnsureExtensionInstalled() uses variant-specific CLI
MainWindow.xaml Split-button UI: main button + dropdown arrow (hidden when only one variant)
MainWindow.xaml.cs Lazy detection on first build load, dropdown menu, selection persistence, dynamic button label

Behavior

  • Only stable installed — button says Open in VS Code, no dropdown
  • Only Insiders installed — button says Open in VS Code Insiders, no dropdown
  • Both installed — dropdown arrow appears to switch; choice remembered across sessions
  • URI scheme switches between vscode:// and vscode-insiders:// automatically

Auto-detect both VS Code (stable) and VS Code Insiders installations.
When multiple variants are found, a dropdown arrow appears next to the
button letting the user choose. The selection is persisted via
SettingsService. The button label adapts to show the active variant
name. URI scheme switches between vscode:// and vscode-insiders://
based on the selected installation.

Closes KirillOsenkov#935

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

Just wanted to try out the feature but didn't have regular Code installed. Feature worked well!

I wrote an mcp sever just for fun as well if @YuliiaKovalova or others are interested.
https://github.com/[AndyGerlicher/BinlogMCP](https://github.com/AndyGerlicher/BinlogMCP)

I was mostly interested in the AI David feature to try to automate @dfederm. But turns out we still need him.

@KirillOsenkov
Copy link
Copy Markdown
Owner

yes please @YuliiaKovalova or @JanKrivanek please review and if this looks good I'll merge!

@YuliiaKovalova
Copy link
Copy Markdown
Contributor

Owner

@AndyGerlicher and @KirillOsenkov , it looks great, thank you for maintaining it :)

@KirillOsenkov KirillOsenkov merged commit 4ea0e9b into KirillOsenkov:main Mar 27, 2026
1 check failed
@KirillOsenkov
Copy link
Copy Markdown
Owner

I published 2.3.154

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.

Add "Open in VS Code Insiders"

3 participants