Merge pull request #22776 from amcasey/GH22607

Thread typesMapLocation down to the ProjectService
This commit is contained in:
Andrew Casey 2018-09-19 10:57:49 -07:00 committed by GitHub
commit eaf6c692e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -490,6 +490,7 @@ namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}
export class Session implements EventSender {
@ -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);

View File

@ -520,6 +520,7 @@ namespace ts.server {
globalPlugins,
pluginProbeLocations,
allowLocalPluginLoads,
typesMapLocation,
});
this.eventPort = eventPort;

View File

@ -8679,6 +8679,7 @@ declare namespace ts.server {
globalPlugins?: ReadonlyArray<string>;
pluginProbeLocations?: ReadonlyArray<string>;
allowLocalPluginLoads?: boolean;
typesMapLocation?: string;
}
class Session implements EventSender {
private readonly gcTimer;