Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Code Insiders is not recognised as en editor #3011

Closed
msathieu opened this issue Oct 11, 2017 · 8 comments
Closed

Visual Studio Code Insiders is not recognised as en editor #3011

msathieu opened this issue Oct 11, 2017 · 8 comments
Labels
enhancement help wanted Issues marked as ideal for external contributors

Comments

@msathieu
Copy link
Contributor

I recently updated to the insiders version of Visual Studio Code, but now Github Desktop says that there are no editors installed.

Version

GitHub Desktop version: [1.0.3]

OS version: [Windows 10]

Steps to Reproduce

  1. [Install Desktop and VSCode insiders]
  2. [Try to open a project in the editor]

Expected behavior: [Open the project in VSCode]

Actual behavior: [Gives an error about no editor]
Reproduces how often: [100%]

@shiftkey
Copy link
Member

@msathieu not surprising - these are the registry keys we use to find the VSCode install (64-bit or 32-bit), and this is how we identify it's the right app.

If they differ only by these details, it should be easy to extend it. Are you interested in digging up those details and contributing a PR? I'm happy to guide you along the way.

@shiftkey shiftkey added enhancement help wanted Issues marked as ideal for external contributors labels Oct 11, 2017
@msathieu
Copy link
Contributor Author

OK, I'll try @shiftkey . Should i try to detect it under ExternalEditor.VisualStudioCode or should i add something like ExternalEditor.VisualStudioCodeInsiders?

@lee-dohm
Copy link
Contributor

@msathieu Could you supply steps to reproduce the errant behavior here now that #3012 is merged?

@msathieu
Copy link
Contributor Author

msathieu commented Oct 28, 2017

Install Insiders and try to open a repo from Desktop. I don't know if the bug would be fixed when I reinstall desktop or not.

@lee-dohm lee-dohm reopened this Oct 28, 2017
@shiftkey
Copy link
Member

@msathieu if you look at the dev tools with verbose enabled, you'll see this message:

Command line interface for Visual Studio Code not found at 'C:\Program Files\Microsoft VS Code Insiders\bin\code.cmd'

This file is named code-insiders.cmd (probably to ensure it doesn't clash with an existing VSCode install), so the code needs to detect this as a fallback.

@msathieu
Copy link
Contributor Author

@shiftkey Should I make a new case, something like ExternalEditor.VisualStudioCodeInsiders?

@shiftkey
Copy link
Member

@msathieu maybe? I don't think we can have multiple enum values mapped to a single string (so we can separate the logic for ExternalEditor.VisualStudioCodeInsiders but make it appear in the UI as 'Visual Studio Code') so maybe we'll need to call it 'Visual Studio Code (Insiders)'.

@shiftkey
Copy link
Member

shiftkey commented Dec 3, 2017

This was resolved by #3441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Issues marked as ideal for external contributors
Projects
None yet
Development

No branches or pull requests

3 participants