Skip to content

Commit 1bcb491

Browse files
committed
Thread typesMapLocation down to the ProjectService
Fixes microsoft#22607
1 parent cd5b9fa commit 1bcb491

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/server/session.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ namespace ts.server {
490490
globalPlugins?: ReadonlyArray<string>;
491491
pluginProbeLocations?: ReadonlyArray<string>;
492492
allowLocalPluginLoads?: boolean;
493+
typesMapLocation?: string;
493494
}
494495

495496
export class Session implements EventSender {
@@ -550,6 +551,7 @@ namespace ts.server {
550551
globalPlugins: opts.globalPlugins,
551552
pluginProbeLocations: opts.pluginProbeLocations,
552553
allowLocalPluginLoads: opts.allowLocalPluginLoads,
554+
typesMapLocation: opts.typesMapLocation,
553555
syntaxOnly: opts.syntaxOnly,
554556
};
555557
this.projectService = new ProjectService(settings);

src/tsserver/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ namespace ts.server {
510510
globalPlugins,
511511
pluginProbeLocations,
512512
allowLocalPluginLoads,
513+
typesMapLocation,
513514
});
514515

515516
this.eventPort = eventPort;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8667,6 +8667,7 @@ declare namespace ts.server {
86678667
globalPlugins?: ReadonlyArray<string>;
86688668
pluginProbeLocations?: ReadonlyArray<string>;
86698669
allowLocalPluginLoads?: boolean;
8670+
typesMapLocation?: string;
86708671
}
86718672
class Session implements EventSender {
86728673
private readonly gcTimer;

0 commit comments

Comments
 (0)