Fixes #11482: Autodetecting gulpfile.ts tasks

This commit is contained in:
Dirk Baeumer 2017-11-10 16:16:38 +01:00
parent 3c3395c685
commit 3a0fb3a97c

View file

@ -83,7 +83,7 @@ class FolderDetector {
} }
public start(): void { public start(): void {
let pattern = path.join(this._workspaceFolder.uri.fsPath, 'gulpfile{.babel.js,.js}'); let pattern = path.join(this._workspaceFolder.uri.fsPath, 'gulpfile{.babel.js,.js,.ts}');
this.fileWatcher = vscode.workspace.createFileSystemWatcher(pattern); this.fileWatcher = vscode.workspace.createFileSystemWatcher(pattern);
this.fileWatcher.onDidChange(() => this.promise = undefined); this.fileWatcher.onDidChange(() => this.promise = undefined);
this.fileWatcher.onDidCreate(() => this.promise = undefined); this.fileWatcher.onDidCreate(() => this.promise = undefined);