Skip to content

Commit fb6b95a

Browse files
committed
conditionally
1 parent 17e23bb commit fb6b95a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

server/src/server.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,13 @@ let compilerLogsWatcher = chokidar
235235
})
236236
.on("all", (_e, changedPath) => {
237237
if (changedPath.includes("build.ninja")) {
238-
let projectRoot = utils.findProjectRootOfFile(changedPath);
239-
if (projectRoot != null) {
240-
syncProjectConfigCache(projectRoot);
238+
if (
239+
config.extensionConfiguration.cache?.projectConfig?.enabled === true
240+
) {
241+
let projectRoot = utils.findProjectRootOfFile(changedPath);
242+
if (projectRoot != null) {
243+
syncProjectConfigCache(projectRoot);
244+
}
241245
}
242246
} else {
243247
sendUpdatedDiagnostics();

0 commit comments

Comments
 (0)