We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6717c79 commit df13b8fCopy full SHA for df13b8f
1 file changed
src/compiler/checker.ts
@@ -11684,6 +11684,9 @@ namespace ts {
11684
var cancellationToken: CancellationTokenObject;
11685
function getDiagnostics(sourceFile: SourceFile, ct: CancellationTokenObject): Diagnostic[] {
11686
try {
11687
+ // Record the cancellation token so it can be checked later on during checkSourceElement.
11688
+ // Do this in a finally block so we can ensure that it gets reset back to nothing after
11689
+ // this call is done.
11690
cancellationToken = ct;
11691
return getDiagnosticsWorker(sourceFile);
11692
}
0 commit comments