Skip to content

Commit 2e0f325

Browse files
committed
Thread typesMapLocation down to the ProjectService
Fixes #22607
1 parent 6a86534 commit 2e0f325

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/server/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ namespace ts.server {
537537
canUseEvents,
538538
globalPlugins: options.globalPlugins,
539539
pluginProbeLocations: options.pluginProbeLocations,
540-
allowLocalPluginLoads: options.allowLocalPluginLoads
540+
allowLocalPluginLoads: options.allowLocalPluginLoads,
541+
typesMapLocation,
541542
});
542543

543544
this.eventPort = eventPort;

src/server/session.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ namespace ts.server {
300300
globalPlugins?: ReadonlyArray<string>;
301301
pluginProbeLocations?: ReadonlyArray<string>;
302302
allowLocalPluginLoads?: boolean;
303+
typesMapLocation?: string;
303304
}
304305

305306
export class Session implements EventSender {
@@ -354,7 +355,8 @@ namespace ts.server {
354355
eventHandler: this.eventHandler,
355356
globalPlugins: opts.globalPlugins,
356357
pluginProbeLocations: opts.pluginProbeLocations,
357-
allowLocalPluginLoads: opts.allowLocalPluginLoads
358+
allowLocalPluginLoads: opts.allowLocalPluginLoads,
359+
typesMapLocation: opts.typesMapLocation,
358360
};
359361
this.projectService = new ProjectService(settings);
360362
this.gcTimer = new GcTimer(this.host, /*delay*/ 7000, this.logger);

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7259,6 +7259,7 @@ declare namespace ts.server {
72597259
globalPlugins?: ReadonlyArray<string>;
72607260
pluginProbeLocations?: ReadonlyArray<string>;
72617261
allowLocalPluginLoads?: boolean;
7262+
typesMapLocation?: string;
72627263
}
72637264
class Session implements EventSender {
72647265
private readonly gcTimer;

0 commit comments

Comments
 (0)