mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Use Array.from's map directly instead of a second call to map
This commit is contained in:
@@ -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 }> {
|
||||
|
||||
Reference in New Issue
Block a user