Use Array.from's map directly instead of a second call to map

This commit is contained in:
Matt Bierner
2021-04-12 14:42:39 -07:00
parent 32a7858a63
commit d5f4e119e0
3 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ export class ResourceMap<T> {
}
public get values(): Iterable<T> {
return Array.from(this._map.values()).map(x => x.value);
return Array.from(this._map.values(), x => x.value);
}
public get entries(): Iterable<{ resource: vscode.Uri, value: T }> {