File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { fileCodeActions } from "./codeActions";
14
14
import { projectsFiles } from "./projectFiles" ;
15
15
import { getRewatchBscArgs , RewatchCompilerArgs } from "./bsc-args/rewatch" ;
16
16
import { BsbCompilerArgs , getBsbBscArgs } from "./bsc-args/bsb" ;
17
+ import { workspaceFolders } from "./server" ;
17
18
18
19
export function debug ( ) {
19
20
return (
@@ -262,6 +263,12 @@ function triggerIncrementalCompilationOfFile(
262
263
}
263
264
264
265
const projectRewatchLockfiles = [
266
+ ...Array . from ( workspaceFolders ) . map ( ( w ) =>
267
+ path . resolve ( w , c . rewatchLockPartialPath ) ,
268
+ ) ,
269
+ ...Array . from ( workspaceFolders ) . map ( ( w ) =>
270
+ path . resolve ( w , c . rescriptLockPartialPath ) ,
271
+ ) ,
265
272
path . resolve ( projectRootPath , c . rewatchLockPartialPath ) ,
266
273
path . resolve ( projectRootPath , c . rescriptLockPartialPath ) ,
267
274
] ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { projectsFiles } from "./projectFiles";
31
31
32
32
// Absolute paths to all the workspace folders
33
33
// Configured during the initialize request
34
- const workspaceFolders = new Set < string > ( ) ;
34
+ export const workspaceFolders = new Set < string > ( ) ;
35
35
36
36
// This holds client capabilities specific to our extension, and not necessarily
37
37
// related to the LS protocol. It's for enabling/disabling features that might
You can’t perform that action at this time.
0 commit comments