microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.17k stars 28.54k forks source link

How do I do Edge and Chrome flavors? #223351

Closed TylerLeonhardt closed 1 month ago

TylerLeonhardt commented 1 month ago

Testing #220989

For workspace.externalBrowser...

I don't really wanna put in an absolute path but I wanna do like edge-dev edge-canary chrome-canary or whatever and that "just works".

connor4312 commented 1 month ago

That's the syntax of js-debug and I have a package to do that: https://www.npmjs.com/package/@vscode/js-debug-browsers If there's interest I could make that slightly more generic for usage here.

bpasero commented 1 month ago

Since we are using https://github.com/sindresorhus/open here, I would suggest to open a PR to them to support this. For the time being I suggest to use the path to the executable.