From 1bcb4910ca4fa17fc29db84f4e9244999b53eb7d Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Tue, 18 Sep 2018 10:30:15 -0700 Subject: [PATCH] Thread typesMapLocation down to the ProjectService Fixes #22607 --- src/server/session.ts | 2 ++ src/tsserver/server.ts | 1 + tests/baselines/reference/api/tsserverlibrary.d.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/src/server/session.ts b/src/server/session.ts index 14ad20d7aaeac..e62300bf7bc07 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -490,6 +490,7 @@ namespace ts.server { globalPlugins?: ReadonlyArray; pluginProbeLocations?: ReadonlyArray; allowLocalPluginLoads?: boolean; + typesMapLocation?: string; } export class Session implements EventSender { @@ -550,6 +551,7 @@ namespace ts.server { globalPlugins: opts.globalPlugins, pluginProbeLocations: opts.pluginProbeLocations, allowLocalPluginLoads: opts.allowLocalPluginLoads, + typesMapLocation: opts.typesMapLocation, syntaxOnly: opts.syntaxOnly, }; this.projectService = new ProjectService(settings); diff --git a/src/tsserver/server.ts b/src/tsserver/server.ts index 951b158c15240..c9b2d7981f7e4 100644 --- a/src/tsserver/server.ts +++ b/src/tsserver/server.ts @@ -510,6 +510,7 @@ namespace ts.server { globalPlugins, pluginProbeLocations, allowLocalPluginLoads, + typesMapLocation, }); this.eventPort = eventPort; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index cd590f8e76a35..3f9aefd776399 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8667,6 +8667,7 @@ declare namespace ts.server { globalPlugins?: ReadonlyArray; pluginProbeLocations?: ReadonlyArray; allowLocalPluginLoads?: boolean; + typesMapLocation?: string; } class Session implements EventSender { private readonly gcTimer;