Skip to content

Commit eaf6c69

Browse files
authored
Merge pull request microsoft#22776 from amcasey/GH22607
Thread typesMapLocation down to the ProjectService
2 parents 6ac38fe + 1bcb491 commit eaf6c69

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
@@ -520,6 +520,7 @@ namespace ts.server {
520520
globalPlugins,
521521
pluginProbeLocations,
522522
allowLocalPluginLoads,
523+
typesMapLocation,
523524
});
524525

525526
this.eventPort = eventPort;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8679,6 +8679,7 @@ declare namespace ts.server {
86798679
globalPlugins?: ReadonlyArray<string>;
86808680
pluginProbeLocations?: ReadonlyArray<string>;
86818681
allowLocalPluginLoads?: boolean;
8682+
typesMapLocation?: string;
86828683
}
86838684
class Session implements EventSender {
86848685
private readonly gcTimer;

0 commit comments

Comments
 (0)