mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode cfc1ab4c5f816765b91fb7ead3c3427a7c8581a3
This commit is contained in:
@@ -10,6 +10,7 @@ import { Event, Emitter } from 'vs/base/common/event';
|
||||
import { LinkedList } from 'vs/base/common/linkedList';
|
||||
import { IJSONSchema } from 'vs/base/common/jsonSchema';
|
||||
import { keys } from 'vs/base/common/map';
|
||||
import { Iterable } from 'vs/base/common/iterator';
|
||||
|
||||
export const ICommandService = createDecorator<ICommandService>('commandService');
|
||||
|
||||
@@ -119,7 +120,7 @@ export const CommandsRegistry: ICommandRegistry = new class implements ICommandR
|
||||
if (!list || list.isEmpty()) {
|
||||
return undefined;
|
||||
}
|
||||
return list.iterator().next().value;
|
||||
return Iterable.first(list);
|
||||
}
|
||||
|
||||
getCommands(): ICommandsMap {
|
||||
|
||||
Reference in New Issue
Block a user