Skip to content

Commit

Permalink
Only check on initial startup when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Ronde committed Dec 9, 2023
1 parent 71bd077 commit 6deabe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ function startIntegratedChecker(
const serverLiveFor = Date.now() - startedAtTime.getTime();
// Wait a while after start with checking so as to now tax the system too much
await wait(Math.max(5000 - serverLiveFor, 0));
void phpstan.checkProject();
if ((await getConfiguration(connection, workspaceFolder)).enabled) {
void phpstan.checkProject();
}
})();

return {
Expand Down

0 comments on commit 6deabe5

Please sign in to comment.