@@ -263,24 +263,21 @@ function triggerIncrementalCompilationOfFile(
263263 if ( debug ( ) ) console . log ( "Did not find open project for " + filePath ) ;
264264 return ;
265265 }
266- // projectRootPath is already the correct normalized key format
267- const actualProjectRootPath = projectRootPath ;
268266
269267 // computeWorkspaceRootPathFromLockfile returns null if lockfile found (local package) or if no parent found
270- const computedWorkspaceRoot = utils . computeWorkspaceRootPathFromLockfile (
271- actualProjectRootPath ,
272- ) ;
268+ const computedWorkspaceRoot =
269+ utils . computeWorkspaceRootPathFromLockfile ( projectRootPath ) ;
273270 // If null, it means either a lockfile was found (local package) or no parent project root exists
274271 // In both cases, we default to actualProjectRootPath
275272 const workspaceRootPath : NormalizedPath =
276- computedWorkspaceRoot ?? actualProjectRootPath ;
273+ computedWorkspaceRoot ?? projectRootPath ;
277274
278275 // Determine if lockfile was found for debug logging
279276 // If computedWorkspaceRoot is null and actualProjectRootPath is not null, check if parent exists
280277 const foundRewatchLockfileInProjectRoot =
281278 computedWorkspaceRoot == null &&
282- actualProjectRootPath != null &&
283- utils . findProjectRootOfFile ( actualProjectRootPath , true ) != null ;
279+ projectRootPath != null &&
280+ utils . findProjectRootOfFile ( projectRootPath , true ) != null ;
284281
285282 if ( foundRewatchLockfileInProjectRoot && debug ( ) ) {
286283 console . log (
@@ -306,14 +303,14 @@ function triggerIncrementalCompilationOfFile(
306303 : moduleName ;
307304
308305 const incrementalFolderPath : NormalizedPath = path . join (
309- actualProjectRootPath ,
306+ projectRootPath ,
310307 INCREMENTAL_FILE_FOLDER_LOCATION ,
311308 ) as NormalizedPath ;
312309
313310 let originalTypeFileLocation = path . resolve (
314- actualProjectRootPath ,
311+ projectRootPath ,
315312 c . compilerDirPartialPath ,
316- path . relative ( actualProjectRootPath , filePath ) ,
313+ path . relative ( projectRootPath , filePath ) ,
317314 ) ;
318315
319316 const parsed = path . parse ( originalTypeFileLocation ) ;
@@ -333,7 +330,7 @@ function triggerIncrementalCompilationOfFile(
333330 } ,
334331 project : {
335332 workspaceRootPath,
336- rootPath : actualProjectRootPath ,
333+ rootPath : projectRootPath ,
337334 callArgs : Promise . resolve ( [ ] ) ,
338335 bscBinaryLocation,
339336 incrementalFolderPath,
0 commit comments