mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
JSON language status isn't "pin friendly". Fixes #146561
This commit is contained in:
@@ -101,10 +101,12 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
|
|||||||
const schemas = (await statusRequest(document.uri.toString())).schemas;
|
const schemas = (await statusRequest(document.uri.toString())).schemas;
|
||||||
statusItem.detail = undefined;
|
statusItem.detail = undefined;
|
||||||
if (schemas.length === 0) {
|
if (schemas.length === 0) {
|
||||||
statusItem.text = localize('status.noSchema', 'Validated without JSON schema');
|
statusItem.text = localize('status.noSchema.short', "No Schema Validation");
|
||||||
|
statusItem.detail = localize('status.noSchema', 'No JSON schema configured.');
|
||||||
} else if (schemas.length === 1) {
|
} else if (schemas.length === 1) {
|
||||||
const item = renderShowSchemasItem(schemas[0]);
|
const item = renderShowSchemasItem(schemas[0]);
|
||||||
statusItem.text = localize('status.singleSchema', 'Validated with JSON schema');
|
statusItem.text = localize('status.withSchema.short', "Schema Validated");
|
||||||
|
statusItem.detail = localize('status.singleSchema', 'JSON schema configured.');
|
||||||
statusItem.command = {
|
statusItem.command = {
|
||||||
command: 'vscode.open',
|
command: 'vscode.open',
|
||||||
title: localize('status.openSchemaLink', 'Open Schema'),
|
title: localize('status.openSchemaLink', 'Open Schema'),
|
||||||
@@ -112,7 +114,8 @@ export function createLanguageStatusItem(documentSelector: string[], statusReque
|
|||||||
arguments: [item.uri]
|
arguments: [item.uri]
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
statusItem.text = localize('status.multipleSchema', 'Validated with multiple JSON schemas');
|
statusItem.text = localize('status.withSchemas.short', "Schema Validated");
|
||||||
|
statusItem.detail = localize('status.multipleSchema', 'Multiple JSON schemas configured.');
|
||||||
statusItem.command = {
|
statusItem.command = {
|
||||||
command: '_json.showAssociatedSchemaList',
|
command: '_json.showAssociatedSchemaList',
|
||||||
title: localize('status.openSchemasLink', 'Show Schemas'),
|
title: localize('status.openSchemasLink', 'Show Schemas'),
|
||||||
|
|||||||
Reference in New Issue
Block a user