mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
hide _json.showAssociatedSchemaList command
This commit is contained in:
parent
9fd6ee7095
commit
cd0e926097
|
@ -15,7 +15,7 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
|
||||||
statusItem.name = localize('statusItem.name', "JSON Validation Status");
|
statusItem.name = localize('statusItem.name', "JSON Validation Status");
|
||||||
statusItem.severity = LanguageStatusSeverity.Information;
|
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 items = arg.schemas.sort().map((a: string) => ({ label: a }));
|
||||||
const quickPick = window.createQuickPick<QuickPickItem>();
|
const quickPick = window.createQuickPick<QuickPickItem>();
|
||||||
quickPick.title = localize('schemaPicker.title', 'Associated JSON Schemas');
|
quickPick.title = localize('schemaPicker.title', 'Associated JSON Schemas');
|
||||||
|
@ -56,7 +56,7 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
|
||||||
} else {
|
} else {
|
||||||
statusItem.text = localize('status.multipleSchema', 'Validated with multiple JSON schemas');
|
statusItem.text = localize('status.multipleSchema', 'Validated with multiple JSON schemas');
|
||||||
statusItem.command = {
|
statusItem.command = {
|
||||||
command: 'json.showSchemasCommand',
|
command: '_json.showAssociatedSchemaList',
|
||||||
title: localize('status.openSchemasLink', 'Show Schemas'),
|
title: localize('status.openSchemasLink', 'Show Schemas'),
|
||||||
arguments: [{ schemas }]
|
arguments: [{ schemas }]
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
"icon": "icons/json.png",
|
"icon": "icons/json.png",
|
||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"onLanguage:json",
|
"onLanguage:json",
|
||||||
"onLanguage:jsonc",
|
"onLanguage:jsonc"
|
||||||
"onCommand:json.showSchemas"
|
|
||||||
],
|
],
|
||||||
"main": "./client/out/node/jsonClientMain",
|
"main": "./client/out/node/jsonClientMain",
|
||||||
"browser": "./client/dist/browser/jsonClientMain",
|
"browser": "./client/dist/browser/jsonClientMain",
|
||||||
|
|
Loading…
Reference in a new issue