We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295b494 commit 45c6119Copy full SHA for 45c6119
1 file changed
server/src/incrementalCompilation.ts
@@ -556,6 +556,14 @@ async function compileContents(
556
`${stderr}\n#Done()`,
557
);
558
559
+ // reverify: Token may have changed during the await above
560
+ if (!verifyTriggerToken(entry.file.sourceFilePath, triggerToken)) {
561
+ getLogger().log(
562
+ `Discarding stale compilation results for ${entry.file.sourceFileName} (token mismatch after parsing)`,
563
+ );
564
+ return;
565
+ }
566
+
567
const actions = Object.values(codeActions)[0] ?? [];
568
569
// Code actions will point to the locally saved incremental file, so we must remap
0 commit comments