hide _json.showAssociatedSchemaList command

This commit is contained in:
Martin Aeschlimann 2021-11-18 15:13:56 +01:00
parent 9fd6ee7095
commit cd0e926097
No known key found for this signature in database
GPG Key ID: 2609A01E695523E3
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
statusItem.name = localize('statusItem.name', "JSON Validation Status");
statusItem.severity = LanguageStatusSeverity.Information;
const showSchemasCommand = commands.registerCommand('json.showSchemasCommand', arg => {
const showSchemasCommand = commands.registerCommand('_json.showAssociatedSchemaList', arg => {
const items = arg.schemas.sort().map((a: string) => ({ label: a }));
const quickPick = window.createQuickPick<QuickPickItem>();
quickPick.title = localize('schemaPicker.title', 'Associated JSON Schemas');
@ -56,7 +56,7 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
} else {
statusItem.text = localize('status.multipleSchema', 'Validated with multiple JSON schemas');
statusItem.command = {
command: 'json.showSchemasCommand',
command: '_json.showAssociatedSchemaList',
title: localize('status.openSchemasLink', 'Show Schemas'),
arguments: [{ schemas }]
};

View File

@ -12,8 +12,7 @@
"icon": "icons/json.png",
"activationEvents": [
"onLanguage:json",
"onLanguage:jsonc",
"onCommand:json.showSchemas"
"onLanguage:jsonc"
],
"main": "./client/out/node/jsonClientMain",
"browser": "./client/dist/browser/jsonClientMain",