From 1793652373c4dad232b2a32df4d65fff312a48f9 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Mon, 20 Nov 2017 18:51:07 -0800 Subject: [PATCH] Correct project root path passed to Typings Installer `createInstallTypingsRequest` has its own logic for extracting the project root path from the project name and it disagrees with the versions in the project flavors. In particular, it only drops the last component of the name if it exists. For folder projects and JS-only contexts, this will not be the case, but the last entry should still be dropped. TL;DR: stop creating filewatchers for "c:/foo/foo.csproj*jscontent/node_modules" --- src/server/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utilities.ts b/src/server/utilities.ts index c57d3b40dee..d76ff1bf6d0 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -43,7 +43,7 @@ namespace ts.server { return ""; case ProjectKind.External: const projectName = normalizeSlashes(project.getProjectName()); - return project.projectService.host.fileExists(projectName) ? getDirectoryPath(projectName) : projectName; + return getDirectoryPath(projectName); } }