Skip to content

Commit

Permalink
Merge pull request #128 from tgodzik/fix-docs
Browse files Browse the repository at this point in the history
Show warning when using snaps
  • Loading branch information
tgodzik authored Jul 16, 2019
2 parents d1638cb + 3ea36b2 commit a3c6bc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ function fetchAndLaunchMetals(context: ExtensionContext, javaHome: string) {
const proxy =
`See https://scalameta.org/metals/docs/editors/vscode.html#http-proxy for instructions ` +
`if you are using an HTTP proxy.`;
if (process.env.FLATPAK_SANDBOX_DIR) {
if (process.env.FLATPAK_SANDBOX_DIR || process.env.SNAP_DATA) {
return (
`Failed to download Metals. It seems you are running Visual Studio Code inside the ` +
`Flatpak sandbox, which is known to interfere with the download of Metals. ` +
`Please, try running Visual Studio Code without Flatpak.`
`Flatpak or snap sandbox, which is known to interfere with the download of Metals. ` +
`Please, try running Visual Studio Code without Flatpak or snap.`
);
} else if (serverVersion === defaultServerVersion) {
return (
Expand Down

0 comments on commit a3c6bc1

Please sign in to comment.