Present all possible local ts versions in the selector

Fixes #31877
This commit is contained in:
Matt Bierner
2017-08-01 17:11:36 -07:00
parent f748ce1f32
commit 22a6fe5c9c

View File

@@ -120,13 +120,9 @@ export class TypeScriptVersionProvider {
}
public get localVersions(): TypeScriptVersion[] {
const tsdkVersions = this.localTsdkVersions;
if (tsdkVersions && tsdkVersions.length) {
return [tsdkVersions[0]];
}
const allVersions = this.localTsdkVersions.concat(this.localNodeModulesVersions);
const paths = new Set<string>();
return this.localNodeModulesVersions.filter(x => {
return allVersions.filter(x => {
if (paths.has(x.path)) {
return false;
}