diff --git a/src/server/server.ts b/src/server/server.ts index c1f7b86680383..79dc4ce1a298d 100644 --- a/src/server/server.ts +++ b/src/server/server.ts @@ -537,7 +537,8 @@ namespace ts.server { canUseEvents, globalPlugins: options.globalPlugins, pluginProbeLocations: options.pluginProbeLocations, - allowLocalPluginLoads: options.allowLocalPluginLoads + allowLocalPluginLoads: options.allowLocalPluginLoads, + typesMapLocation, }); this.eventPort = eventPort; diff --git a/src/server/session.ts b/src/server/session.ts index 1999360e34b06..74cb004bc8c96 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -300,6 +300,7 @@ namespace ts.server { globalPlugins?: ReadonlyArray; pluginProbeLocations?: ReadonlyArray; allowLocalPluginLoads?: boolean; + typesMapLocation?: string; } export class Session implements EventSender { @@ -354,7 +355,8 @@ namespace ts.server { eventHandler: this.eventHandler, globalPlugins: opts.globalPlugins, pluginProbeLocations: opts.pluginProbeLocations, - allowLocalPluginLoads: opts.allowLocalPluginLoads + allowLocalPluginLoads: opts.allowLocalPluginLoads, + typesMapLocation: opts.typesMapLocation, }; this.projectService = new ProjectService(settings); this.gcTimer = new GcTimer(this.host, /*delay*/ 7000, this.logger); diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 5f64bd02ea0d1..785c5620e6d1a 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -7259,6 +7259,7 @@ declare namespace ts.server { globalPlugins?: ReadonlyArray; pluginProbeLocations?: ReadonlyArray; allowLocalPluginLoads?: boolean; + typesMapLocation?: string; } class Session implements EventSender { private readonly gcTimer;