mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
Fix bad grunt task in resolve task
This commit is contained in:
parent
4b0a83d581
commit
ac565b419d
|
@ -127,8 +127,8 @@ class FolderDetector {
|
||||||
let options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
|
let options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
|
||||||
let source = 'grunt';
|
let source = 'grunt';
|
||||||
let task = gruntTask.indexOf(' ') === -1
|
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} ${gruntTask.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));
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
@ -362,4 +362,4 @@ export function activate(_context: vscode.ExtensionContext): void {
|
||||||
|
|
||||||
export function deactivate(): void {
|
export function deactivate(): void {
|
||||||
detector.dispose();
|
detector.dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue