Skip to content

Commit

Permalink
Fix bad grunt task in resolve task
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Aug 28, 2019
1 parent 4b0a83d commit ac565b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/grunt/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class FolderDetector {
let options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
let source = 'grunt';
let task = gruntTask.indexOf(' ') === -1
? new vscode.Task(kind, this.workspaceFolder, gruntTask, source, new vscode.ShellExecution(`${await this._gruntCommand} ${name}`, options))
: new vscode.Task(kind, this.workspaceFolder, gruntTask, source, new vscode.ShellExecution(`${await this._gruntCommand} "${name}"`, options));
? new vscode.Task(kind, this.workspaceFolder, gruntTask, source, new vscode.ShellExecution(`${await this._gruntCommand} ${gruntTask.name}`, options))
: new vscode.Task(kind, this.workspaceFolder, gruntTask, source, new vscode.ShellExecution(`${await this._gruntCommand} "${gruntTask.name}"`, options));
return task;
}
return undefined;
Expand Down Expand Up @@ -362,4 +362,4 @@ export function activate(_context: vscode.ExtensionContext): void {

export function deactivate(): void {
detector.dispose();
}
}

0 comments on commit ac565b4

Please sign in to comment.