mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 10:38:31 -05:00
Merge from vscode fc10e26ea50f82cdd84e9141491357922e6f5fba (#4639)
This commit is contained in:
@@ -577,7 +577,7 @@ export class WorkbenchKeybindingService extends AbstractKeybindingService {
|
||||
let schemaId = 'vscode://schemas/keybindings';
|
||||
let commandsSchemas: IJSONSchema[] = [];
|
||||
let commandsEnum: string[] = [];
|
||||
let commandsEnumDescriptions: (string | null | undefined)[] = [];
|
||||
let commandsEnumDescriptions: (string | undefined)[] = [];
|
||||
let schema: IJSONSchema = {
|
||||
'id': schemaId,
|
||||
'type': 'array',
|
||||
@@ -636,7 +636,7 @@ function updateSchema() {
|
||||
commandsEnumDescriptions.length = 0;
|
||||
|
||||
const knownCommands = new Set<string>();
|
||||
const addKnownCommand = (commandId: string, description?: string | null) => {
|
||||
const addKnownCommand = (commandId: string, description?: string | undefined) => {
|
||||
if (!/^_/.test(commandId)) {
|
||||
if (!knownCommands.has(commandId)) {
|
||||
knownCommands.add(commandId);
|
||||
@@ -655,7 +655,7 @@ function updateSchema() {
|
||||
for (let commandId in allCommands) {
|
||||
const commandDescription = allCommands[commandId].description;
|
||||
|
||||
addKnownCommand(commandId, commandDescription && commandDescription.description);
|
||||
addKnownCommand(commandId, commandDescription ? commandDescription.description : undefined);
|
||||
|
||||
if (!commandDescription || !commandDescription.args || commandDescription.args.length !== 1 || !commandDescription.args[0].schema) {
|
||||
continue;
|
||||
@@ -684,7 +684,6 @@ function updateSchema() {
|
||||
for (let commandId in menuCommands) {
|
||||
addKnownCommand(commandId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const configurationRegistry = Registry.as<IConfigurationRegistry>(ConfigExtensions.Configuration);
|
||||
|
||||
Reference in New Issue
Block a user