Skip to content

Commit 6082514

Browse files
committed
respond to comments
1 parent 7d1d22c commit 6082514

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3203,7 +3203,7 @@
32033203
},
32043204
"Reusing resolution of module '{0}' to file '{1}' from old program.": {
32053205
"category": "Message",
3206-
"code": 618
3206+
"code": 6183
32073207
},
32083208
"Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program.": {
32093209
"category": "Message",

src/compiler/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ namespace ts {
531531

532532
for (let i = 0; i < moduleNames.length; i++) {
533533
const moduleName = moduleNames[i];
534-
// TODO: if we want to reuse resolutions more aggressively, refine this to check for whether the
534+
// If we want to reuse resolutions more aggressively, we can refine this to check for whether the
535535
// text of the corresponding modulenames has changed.
536536
if (file === oldSourceFile) {
537537
const oldResolvedModule = oldSourceFile && oldSourceFile.resolvedModules.get(moduleName);
@@ -596,7 +596,7 @@ namespace ts {
596596

597597
return result;
598598

599-
// TODO: if we change our policy of rechecking failed lookups on each program create,
599+
// If we change our policy of rechecking failed lookups on each program create,
600600
// we should adjust the value returned here.
601601
function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName: string, oldProgramState: OldProgramState): boolean {
602602
const resolutionToFile = getResolvedModule(oldProgramState.file, moduleName);

0 commit comments

Comments
 (0)