Gate pluginProbeLocations to only global ts installs

This commit is contained in:
Matt Bierner
2017-04-27 12:05:49 -07:00
parent 3fac605425
commit 669b5ecb28

View File

@@ -573,7 +573,9 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
const plugins = this.getContributedTypeScriptServerPlugins();
if (plugins.length) {
args.push('--globalPlugins', plugins.map(x => x.name).join(','));
args.push('--pluginProbeLocations', plugins.map(x => x.path).join(','));
if (modulePath === this.globalTypescriptPath) {
args.push('--pluginProbeLocations', plugins.map(x => x.path).join(','));
}
}
}