Add VS Code fork detection & manual .exe selection to "Code Editor" Selection#9995
Add VS Code fork detection & manual .exe selection to "Code Editor" Selection#9995wpenistone wants to merge 7 commits intoFacepunch:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the editor selection/preferences UI and editor integration layer to better detect VS Code forks and allow users to manually map an editor executable when auto-detection fails (esp. non-HKLM installs).
Changes:
- Refactors VS Code integration into a shared
VSCodeBasewith registry/app-path discovery + manual override support. - Enhances the “Code Editor” selection widget to sort by install status, hide undetected VS Code forks, and add a “Browse for .exe” action.
- Adds executable-name matching helpers for Rider/VS/VSCode-based editors and adds Rider manual override support.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| game/addons/tools/Code/CodeEditors/CodeEditorControlWidget.cs | Rebuilds the code editor dropdown behavior and adds manual executable browsing/mapping. |
| game/addons/tools/Code/CodeEditors/CodeEditor.VSCode.cs | Introduces VSCodeBase, adds fork classes, improves discovery, caching, and launch behavior. |
| game/addons/tools/Code/CodeEditors/CodeEditor.Rider.cs | Adds Rider exe matching and a cookie-based manual path override. |
| game/addons/tools/Code/CodeEditors/CodeEditor.VisualStudio.cs | Adds Visual Studio exe matching helper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4fd4c9f to
d01241a
Compare
|
I would like to make two UI/UX suggestions. These relate both to the current implementation as well as your additions. First, the button seems to be slightly misaligned (though that might just be the screenshot). And secondly: Greying out the button doesn't seem to be a good option, since the dropdown's already kind of greyed out. I believe the distinction would be too minimal. Making the not-found editors title cursive might work. Alternatively, a Toast or Popup with a warning would also give user feedback as to 'why the hell this darn button ain't working'. |
Yes I agree, the browse button has no right padding and the combo box options don't differentiate between greyed out, someone from s&box maybe can answer why this happens (I am just using them, nothing custom) or I'll have a seperate PR fixing them if this seems to be unrelated. |
Ah, alright. Thanks for your work! |
…or-selector-improvements Button Spacing
|
As per Facepunch: |


Summary
This PR overhauls the code editor selection system to support manual .exe selection, detection of VSC forks, and improving discovery.
Motivation & Context
Many users now prefer specialized vibe-coding slop generators like the one I am currently using and Cursor, Windsurf, or Trae, there is no user-friendly way to add them and PRs to do so cause more bloat (like 192).
Sometimes people will have random issues and unable to use their existing IDE, letting them choose an .exe is very flexible because of this.
Additionally, portable or user-only installations of these editors often fail auto-detection because they don't register in the standard HKLM registry keys.
Implementation Details
HKLM) and per-user (HKCU) registry entries, improves auto-detection for portable or user-only installations.[I guess we don't "need" handling for VSC forks if they can just browse for it? nah good UX nevertheless]
Screenshots / Videos (if applicable)
Checklist