File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,11 @@ namespace ts.server {
179
179
basePath = os . homedir ( ) ;
180
180
break ;
181
181
case "darwin" :
182
- basePath = combinePaths ( os . homedir ( ) , "/ Library/Application Support/" )
182
+ basePath = combinePaths ( os . homedir ( ) , "Library/Application Support/" )
183
183
break ;
184
184
}
185
185
if ( basePath ) {
186
- this . cachePath = combinePaths ( normalizeSlashes ( basePath ) , "/ Microsoft/TypeScript" ) ;
186
+ this . cachePath = combinePaths ( normalizeSlashes ( basePath ) , "Microsoft/TypeScript" ) ;
187
187
}
188
188
}
189
189
Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ namespace ts.server.typingsInstaller {
60
60
this . runTsd ( req . cachePath , typingsToInstall , installedTypings => {
61
61
// TODO: record new missing package names
62
62
// 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 ) ) ;
64
65
this . sendResponse ( this . createResponse ( req , currentlyCachedTypings . concat ( installedTypings ) ) ) ;
65
66
} ) ;
66
67
}
You can’t perform that action at this time.
0 commit comments