mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
chore - ES6, use for-of instead of forEach
This commit is contained in:
@@ -204,12 +204,12 @@ export class ExtHostCommands implements ExtHostCommandsShape {
|
||||
|
||||
$getContributedCommandHandlerDescriptions(): Promise<{ [id: string]: string | ICommandHandlerDescription }> {
|
||||
const result: { [id: string]: string | ICommandHandlerDescription } = Object.create(null);
|
||||
this._commands.forEach((command, id) => {
|
||||
for (let [id, command] of this._commands) {
|
||||
let { description } = command;
|
||||
if (description) {
|
||||
result[id] = description;
|
||||
}
|
||||
});
|
||||
}
|
||||
return Promise.resolve(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user