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";
1414import { projectsFiles } from "./projectFiles" ;
1515import { getRewatchBscArgs , RewatchCompilerArgs } from "./bsc-args/rewatch" ;
1616import { BsbCompilerArgs , getBsbBscArgs } from "./bsc-args/bsb" ;
17+ import { workspaceFolders } from "./server" ;
1718
1819export function debug ( ) {
1920 return (
@@ -262,6 +263,12 @@ function triggerIncrementalCompilationOfFile(
262263 }
263264
264265 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+ ) ,
265272 path . resolve ( projectRootPath , c . rewatchLockPartialPath ) ,
266273 path . resolve ( projectRootPath , c . rescriptLockPartialPath ) ,
267274 ] ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { projectsFiles } from "./projectFiles";
3131
3232// Absolute paths to all the workspace folders
3333// Configured during the initialize request
34- const workspaceFolders = new Set < string > ( ) ;
34+ export const workspaceFolders = new Set < string > ( ) ;
3535
3636// This holds client capabilities specific to our extension, and not necessarily
3737// 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