mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-02 14:58:43 +00:00
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user