Skip to content

Commit

Permalink
hide _json.showAssociatedSchemaList command
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Nov 19, 2021
1 parent 9fd6ee7 commit cd0e926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 }]
};
Expand Down
3 changes: 1 addition & 2 deletions extensions/json-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cd0e926

Please sign in to comment.