Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thread typesMapLocation down to the ProjectService
Browse files Browse the repository at this point in the history
amcasey committed Mar 21, 2018
1 parent 6a86534 commit 2e0f325
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
@@ -537,7 +537,8 @@ namespace ts.server {
canUseEvents,
globalPlugins: options.globalPlugins,
pluginProbeLocations: options.pluginProbeLocations,
allowLocalPluginLoads: options.allowLocalPluginLoads
allowLocalPluginLoads: options.allowLocalPluginLoads,
typesMapLocation,
});

this.eventPort = eventPort;
4 changes: 3 additions & 1 deletion src/server/session.ts
Original file line number Diff line number Diff line change
@@ -300,6 +300,7 @@ namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}

export class Session implements EventSender {
@@ -354,7 +355,8 @@ namespace ts.server {
eventHandler: this.eventHandler,
globalPlugins: opts.globalPlugins,
pluginProbeLocations: opts.pluginProbeLocations,
allowLocalPluginLoads: opts.allowLocalPluginLoads
allowLocalPluginLoads: opts.allowLocalPluginLoads,
typesMapLocation: opts.typesMapLocation,
};
this.projectService = new ProjectService(settings);
this.gcTimer = new GcTimer(this.host, /*delay*/ 7000, this.logger);
1 change: 1 addition & 0 deletions tests/baselines/reference/api/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
@@ -7259,6 +7259,7 @@ declare namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}
class Session implements EventSender {
private readonly gcTimer;

0 comments on commit 2e0f325

Please sign in to comment.