mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
When attaching JSDoc diagnostics, make sure to only include diagnostics that actually belong with the JSDoc (#57271)
This commit is contained in:
@@ -8760,7 +8760,7 @@ namespace Parser {
|
||||
if (!jsDocDiagnostics) {
|
||||
jsDocDiagnostics = [];
|
||||
}
|
||||
jsDocDiagnostics.push(...parseDiagnostics);
|
||||
addRange(jsDocDiagnostics, parseDiagnostics, saveParseDiagnosticsLength);
|
||||
}
|
||||
currentToken = saveToken;
|
||||
parseDiagnostics.length = saveParseDiagnosticsLength;
|
||||
|
||||
Reference in New Issue
Block a user