Skip to content

Commit 0dc31b8

Browse files
committed
fix workspace lookup
1 parent 45f747b commit 0dc31b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/incrementalCompilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ function triggerIncrementalCompilationOfFile(
376376
return;
377377
}
378378
const workspaceRootPath = projectRootPath
379-
? utils.findProjectRootOfFile(projectRootPath)
379+
? utils.findProjectRootOfFileInDir(projectRootPath)
380380
: null;
381381

382382
const bscBinaryLocation = project.bscBinaryLocation;

server/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export let createFileInTempDir = (extension = "") => {
2525
return path.join(os.tmpdir(), tempFileName);
2626
};
2727

28-
let findProjectRootOfFileInDir = (
28+
export let findProjectRootOfFileInDir = (
2929
source: p.DocumentUri
3030
): null | p.DocumentUri => {
3131
let dir = path.dirname(source);

0 commit comments

Comments
 (0)