File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function activate(_context: vscode.ExtensionContext): void {
2020 if ( ! workspaceRoot ) {
2121 return ;
2222 }
23- let pattern = path . join ( workspaceRoot , 'Gruntfile .js' ) ;
23+ let pattern = path . join ( workspaceRoot , '[Gg]runtfile .js' ) ;
2424 let detectorPromise : Thenable < vscode . Task [ ] > | undefined = undefined ;
2525 let fileWatcher = vscode . workspace . createFileSystemWatcher ( pattern ) ;
2626 fileWatcher . onDidChange ( ( ) => detectorPromise = undefined ) ;
@@ -115,8 +115,7 @@ async function getGruntTasks(): Promise<vscode.Task[]> {
115115 if ( ! workspaceRoot ) {
116116 return emptyTasks ;
117117 }
118- let gruntfile = path . join ( workspaceRoot , 'Gruntfile.js' ) ;
119- if ( ! await exists ( gruntfile ) ) {
118+ if ( ! await exists ( path . join ( workspaceRoot , 'gruntfile.js' ) ) && ! await exists ( path . join ( workspaceRoot , 'Gruntfile.js' ) ) ) {
120119 return emptyTasks ;
121120 }
122121
You can’t perform that action at this time.
0 commit comments