vscode-extensions-open-in-browser icon indicating copy to clipboard operation
vscode-extensions-open-in-browser copied to clipboard

Can not work on chrome

Open nameless-user12138 opened this issue 4 years ago • 5 comments

Can not work on chrome, my os is manjaro linux

nameless-user12138 avatar May 02 '20 10:05 nameless-user12138

The start command of Google Chrome in manjaro is google-chrome-stable, so you need to edit the file~/.vscode-oss/extensions/techer.open-in-browser-2.0.0/out/config.js, and change the google-chrome to google-chrome-stable in line 12 around.

vicjax avatar Jun 08 '20 15:06 vicjax

thanks,i have do it at last week, but forget to post new issue. thank you very much,you are a kind gay;

nameless-user12138 avatar Jun 10 '20 11:06 nameless-user12138

我和中国人说什么英语,我的天

nameless-user12138 avatar Jun 10 '20 12:06 nameless-user12138

Q: How to make Big Sur Microsoft Edge working? A: I was able to locate the config.js file as in, /Users/myusername/.vscode/extensions/techer.open-in-browser-2.0.0/out/config.js

modify the definition of edgeItem as follows,

const edgeItem = {
    description: "Windows, Mac",
    detail: "A modern browser aiming to replace ie",
    label: "Microsoft Edge",
    standardName: platform === 'win32'
        ? 'MicrosoftEdge'
        : (platform === 'darwin'
            ? 'Microsoft Edge'
            : 'microsoft-edge'),
    acceptName: ['edge', 'msedge', 'microsoftedge', 'Microsoft Edge', 'microsoft edge', 'microsoft-edge']
};

and then add the launch command (for example after line of browsers.push(safariItem);) in the bottom of the file,

browsers.push(edgeItem);

Reload files in VSCode, or quite and launch VSCode again to take effect.

benjaminv avatar Jul 04 '21 12:07 benjaminv

The start command of Google Chrome in manjaro is google-chrome-stable, so you need to edit the file~/.vscode-oss/extensions/techer.open-in-browser-2.0.0/out/config.js, and change the google-chrome to google-chrome-stable in line 12 around.

Hello, I am using Manjaro KDE Plasma and I did this but still it shows error.

lakshits11 avatar Nov 01 '21 11:11 lakshits11