File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ namespace ts.server {
472
472
this . globalPlugins = opts . globalPlugins || emptyArray ;
473
473
this . pluginProbeLocations = opts . pluginProbeLocations || emptyArray ;
474
474
this . allowLocalPluginLoads = ! ! opts . allowLocalPluginLoads ;
475
- this . typesMapLocation = ( opts . typesMapLocation === undefined ) ? combinePaths ( this . getExecutingFilePath ( ) , "../ typesMap.json" ) : opts . typesMapLocation ;
475
+ this . typesMapLocation = ( opts . typesMapLocation === undefined ) ? combinePaths ( getDirectoryPath ( this . getExecutingFilePath ( ) ) , "typesMap.json" ) : opts . typesMapLocation ;
476
476
this . syntaxOnly = opts . syntaxOnly ;
477
477
478
478
Debug . assert ( ! ! this . host . createHash , "'ServerHost.createHash' is required for ProjectService" ) ;
Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ namespace ts.server {
920
920
setStackTraceLimit ( ) ;
921
921
922
922
const typingSafeListLocation = findArgument ( Arguments . TypingSafeListLocation ) ! ; // TODO: GH#18217
923
- const typesMapLocation = findArgument ( Arguments . TypesMapLocation ) || combinePaths ( sys . getExecutingFilePath ( ) , "../ typesMap.json" ) ;
923
+ const typesMapLocation = findArgument ( Arguments . TypesMapLocation ) || combinePaths ( getDirectoryPath ( sys . getExecutingFilePath ( ) ) , "typesMap.json" ) ;
924
924
const npmLocation = findArgument ( Arguments . NpmLocation ) ;
925
925
926
926
function parseStringArray ( argName : string ) : ReadonlyArray < string > {
You can’t perform that action at this time.
0 commit comments