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 @@ -487,7 +487,7 @@ namespace ts.server {
487
487
this . globalPlugins = opts . globalPlugins || emptyArray ;
488
488
this . pluginProbeLocations = opts . pluginProbeLocations || emptyArray ;
489
489
this . allowLocalPluginLoads = ! ! opts . allowLocalPluginLoads ;
490
- this . typesMapLocation = ( opts . typesMapLocation === undefined ) ? combinePaths ( this . getExecutingFilePath ( ) , "../ typesMap.json" ) : opts . typesMapLocation ;
490
+ this . typesMapLocation = ( opts . typesMapLocation === undefined ) ? combinePaths ( getDirectoryPath ( this . getExecutingFilePath ( ) ) , "typesMap.json" ) : opts . typesMapLocation ;
491
491
this . syntaxOnly = opts . syntaxOnly ;
492
492
493
493
Debug . assert ( ! ! this . host . createHash , "'ServerHost.createHash' is required for ProjectService" ) ;
Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ namespace ts.server {
924
924
setStackTraceLimit ( ) ;
925
925
926
926
const typingSafeListLocation = findArgument ( Arguments . TypingSafeListLocation ) ! ; // TODO: GH#18217
927
- const typesMapLocation = findArgument ( Arguments . TypesMapLocation ) || combinePaths ( sys . getExecutingFilePath ( ) , "../ typesMap.json" ) ;
927
+ const typesMapLocation = findArgument ( Arguments . TypesMapLocation ) || combinePaths ( getDirectoryPath ( sys . getExecutingFilePath ( ) ) , "typesMap.json" ) ;
928
928
const npmLocation = findArgument ( Arguments . NpmLocation ) ;
929
929
930
930
function parseStringArray ( argName : string ) : ReadonlyArray < string > {
You can’t perform that action at this time.
0 commit comments