File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ let projectsFiles: Map<
47
47
// automatically, if there's no build currently running for the project. We
48
48
// only want to prompt the user about this once, or it becomes
49
49
// annoying.
50
- hasPromptedToStartBuild : boolean ;
50
+ // The type `never` means that we won't show the prompt if the project is inside node_modules
51
+ hasPromptedToStartBuild : boolean | "never" ;
51
52
}
52
53
> = new Map ( ) ;
53
54
// ^ caching AND states AND distributed system. Why does LSP has to be stupid like this
@@ -188,7 +189,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
188
189
openFiles : new Set ( ) ,
189
190
filesWithDiagnostics : new Set ( ) ,
190
191
bsbWatcherByEditor : null ,
191
- hasPromptedToStartBuild : false ,
192
+ hasPromptedToStartBuild : / ( \/ | \\ ) n o d e _ m o d u l e s ( \/ | \\ ) / . test ( projectRootPath ) ? "never" : false ,
192
193
} ;
193
194
projectsFiles . set ( projectRootPath , projectRootState ) ;
194
195
compilerLogsWatcher . add (
You can’t perform that action at this time.
0 commit comments