Skip to content

Commit 235e1c5

Browse files
committed
There is no need to ensure project structure when tryiong to get inferred project
The project operations will validate if its valid anyways
1 parent 9dc3c93 commit 235e1c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/harness/unittests/typingsInstaller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace ts.projectSystem {
188188
checkProjectActualFiles(p, [file1.path]);
189189

190190
installer.installAll(/*expectedCount*/ 1);
191-
191+
host.checkTimeoutQueueLengthAndRun(2);
192192
checkNumberOfProjects(projectService, { inferredProjects: 1 });
193193
checkProjectActualFiles(p, [file1.path, jquery.path]);
194194
});
@@ -961,6 +961,7 @@ namespace ts.projectSystem {
961961
assert.isTrue(host.fileExists(node.path), "typings for 'node' should be created");
962962
assert.isTrue(host.fileExists(commander.path), "typings for 'commander' should be created");
963963

964+
host.checkTimeoutQueueLengthAndRun(2);
964965
checkProjectActualFiles(service.inferredProjects[0], [file.path, node.path, commander.path]);
965966
});
966967

@@ -1106,7 +1107,7 @@ namespace ts.projectSystem {
11061107
checkProjectActualFiles(p, [file1.path]);
11071108

11081109
installer.installAll(/*expectedCount*/ 1);
1109-
1110+
host.checkTimeoutQueueLengthAndRun(2);
11101111
checkNumberOfProjects(projectService, { inferredProjects: 1 });
11111112
checkProjectActualFiles(p, [file1.path, jquery.path]);
11121113
});

src/server/editorServices.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,6 @@ namespace ts.server {
633633
return undefined;
634634
}
635635
if (isInferredProjectName(projectName)) {
636-
this.ensureProjectStructuresUptoDate();
637636
return findProjectByName(projectName, this.inferredProjects);
638637
}
639638
return this.findExternalProjectByProjectName(projectName) || this.findConfiguredProjectByProjectName(toNormalizedPath(projectName));

0 commit comments

Comments
 (0)