mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Rename and consolidate map iteration helpers
This commit is contained in:
@@ -1373,7 +1373,7 @@ namespace ts.server {
|
||||
}
|
||||
|
||||
// close projects that were missing in the input list
|
||||
forEachKeyInMap(projectsToClose, externalProjectName => {
|
||||
forEachKey(projectsToClose, externalProjectName => {
|
||||
this.closeExternalProject(externalProjectName, /*suppressRefresh*/ true)
|
||||
});
|
||||
|
||||
|
||||
@@ -619,12 +619,12 @@ namespace ts.server {
|
||||
const removed: string[] = [];
|
||||
const updated: string[] = arrayFrom(updatedFileNames.keys());
|
||||
|
||||
forEachKeyInMap(currentFiles, id => {
|
||||
forEachKey(currentFiles, id => {
|
||||
if (!lastReportedFileNames.has(id)) {
|
||||
added.push(id);
|
||||
}
|
||||
});
|
||||
forEachKeyInMap(lastReportedFileNames, id => {
|
||||
forEachKey(lastReportedFileNames, id => {
|
||||
if (!currentFiles.has(id)) {
|
||||
removed.push(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user