Skip to content

Commit 5424df7

Browse files
committed
adjust typing directory
1 parent 12cdda1 commit 5424df7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/server/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ namespace ts.server {
179179
basePath = os.homedir();
180180
break;
181181
case "darwin":
182-
basePath = combinePaths(os.homedir(), "/Library/Application Support/")
182+
basePath = combinePaths(os.homedir(), "Library/Application Support/")
183183
break;
184184
}
185185
if (basePath) {
186-
this.cachePath = combinePaths(normalizeSlashes(basePath), "/Microsoft/TypeScript");
186+
this.cachePath = combinePaths(normalizeSlashes(basePath), "Microsoft/TypeScript");
187187
}
188188
}
189189

src/server/typingsInstaller/typingsInstaller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ namespace ts.server.typingsInstaller {
6060
this.runTsd(req.cachePath, typingsToInstall, installedTypings => {
6161
// TODO: record new missing package names
6262
// TODO: watch project directory
63-
installedTypings = installedTypings.map(x => getNormalizedAbsolutePath(x, req.cachePath));
63+
const typingDirectory = combinePaths(req.cachePath, "typings");
64+
installedTypings = installedTypings.map(x => combinePaths(typingDirectory, x));
6465
this.sendResponse(this.createResponse(req, currentlyCachedTypings.concat(installedTypings)));
6566
});
6667
}

0 commit comments

Comments
 (0)