SudoKillMe / vscode-extensions-open-in-browser

81 stars 42 forks source link

Can not work on chrome #65

Open nameless-user12138 opened 4 years ago

nameless-user12138 commented 4 years ago

Can not work on chrome, my os is manjaro linux

vicjax commented 4 years ago

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.

nameless-user12138 commented 4 years ago

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 commented 4 years ago

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

benjaminv commented 3 years ago

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.

lakshits11 commented 2 years ago

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.