mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Fix typo (#39585)
This commit is contained in:
@@ -1408,7 +1408,7 @@ namespace ts {
|
||||
//
|
||||
// Each LS has a reference to file 'foo.ts' at version 1. LS2 then updates
|
||||
// it's version of 'foo.ts' to version 2. This will cause LS2 and the
|
||||
// DocumentRegistry to have version 2 of the document. HOwever, LS1 will
|
||||
// DocumentRegistry to have version 2 of the document. However, LS1 will
|
||||
// have version 1. And *importantly* this source file will be *corrupt*.
|
||||
// The act of creating version 2 of the file irrevocably damages the version
|
||||
// 1 file.
|
||||
@@ -1451,7 +1451,7 @@ namespace ts {
|
||||
|
||||
function dispose(): void {
|
||||
if (program) {
|
||||
// Use paths to ensure we are using correct key and paths as document registry could bre created with different current directory than host
|
||||
// Use paths to ensure we are using correct key and paths as document registry could be created with different current directory than host
|
||||
const key = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions());
|
||||
forEach(program.getSourceFiles(), f =>
|
||||
documentRegistry.releaseDocumentWithKey(f.resolvedPath, key));
|
||||
|
||||
Reference in New Issue
Block a user