Skip to content

Commit

Permalink
Fix gulp and jake resolve task
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Jul 31, 2019
1 parent 7c5e080 commit 1e27e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions extensions/gulp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ class FolderDetector {
public async getTask(_task: vscode.Task): Promise<vscode.Task | undefined> {
const gulpTask = (<any>_task.definition).task;
if (gulpTask) {
let kind: GulpTaskDefinition = {
type: 'gulp',
task: gulpTask
};
let kind: GulpTaskDefinition = (<any>_task.definition);
let options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
let task = new vscode.Task(kind, this.workspaceFolder, gulpTask, 'gulp', new vscode.ShellExecution(await this._gulpCommand, [gulpTask], options));
return task;
Expand Down Expand Up @@ -342,4 +339,4 @@ export function activate(_context: vscode.ExtensionContext): void {

export function deactivate(): void {
detector.dispose();
}
}
7 changes: 2 additions & 5 deletions extensions/jake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ class FolderDetector {
public async getTask(_task: vscode.Task): Promise<vscode.Task | undefined> {
const jakeTask = (<any>_task.definition).task;
if (jakeTask) {
let kind: JakeTaskDefinition = {
type: 'jake',
task: jakeTask
};
let kind: JakeTaskDefinition = (<any>_task.definition);
let options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
let task = new vscode.Task(kind, this.workspaceFolder, jakeTask, 'jake', new vscode.ShellExecution(await this._jakeCommand, [jakeTask], options));
return task;
Expand Down Expand Up @@ -341,4 +338,4 @@ export function activate(_context: vscode.ExtensionContext): void {

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

0 comments on commit 1e27e71

Please sign in to comment.