diff --git a/package-lock.json b/package-lock.json index cfb481b9..227d7207 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bazel-stack-vscode", - "version": "1.0.1", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -365,6 +365,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/find-up/-/find-up-4.0.0.tgz", "integrity": "sha512-QlRNKeOPFWKisbNtKVOOGXw3AeLbkw8UmT/EyEGM6brfqpYffKBcch7f1y40NYN9O90aK2+K0xBMDJfOAsg2qg==", + "dev": true, "requires": { "find-up": "*" } diff --git a/package.json b/package.json index 5b7ba523..9f56db4c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bazel-stack-vscode", "displayName": "bazel-stack-vscode", "description": "Bazel Support for Visual Studio Code", - "version": "1.1.0", + "version": "1.1.1", "publisher": "StackBuild", "license": "Apache-2.0", "icon": "stackb-full.png", @@ -26,6 +26,8 @@ "onUri", "onCommand:bsv.openExtensionSetting", "onCommand:workbench.view.extension.bazel-explorer", + "onView:bsv.workspace", + "onView:bazel-explorer", "onLanguage:bazel", "onLanguage:bazelrc", "onLanguage:starlark" @@ -660,4 +662,4 @@ "tabWidth": 2, "arrowParens": "avoid" } -} \ No newline at end of file +} diff --git a/src/bezel/status.ts b/src/bezel/status.ts index 00a4a68c..44565d57 100644 --- a/src/bezel/status.ts +++ b/src/bezel/status.ts @@ -1,3 +1,4 @@ +import * as os from 'os'; import * as vscode from 'vscode'; import { ComponentConfiguration } from './configuration'; import { quote } from 'shell-quote'; @@ -291,7 +292,13 @@ export abstract class LaunchableComponent< const terminal = vscode.window.createTerminal(this.terminalName); this.terminal = terminal; - terminal.sendText(quote(args), true); + let command = ''; + if (os.platform() === 'win32') { + command = args.join(' '); + } else { + command = quote(args); + } + terminal.sendText(command, true); terminal.show(); this.setStatus(Status.LAUNCHING);