Skip to content

Commit

Permalink
Thread typesMapLocation down to the ProjectService
Browse files Browse the repository at this point in the history
Fixes #22607
  • Loading branch information
amcasey committed Sep 18, 2018
1 parent cd5b9fa commit 1bcb491
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}

export class Session implements EventSender {
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/tsserver/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ namespace ts.server {
globalPlugins,
pluginProbeLocations,
allowLocalPluginLoads,
typesMapLocation,
});

this.eventPort = eventPort;
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/api/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8667,6 +8667,7 @@ declare namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}
class Session implements EventSender {
private readonly gcTimer;
Expand Down

0 comments on commit 1bcb491

Please sign in to comment.