mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-24 17:31:37 +01:00
Fix #44725
This commit is contained in:
@@ -43,6 +43,7 @@ export interface IGrammar {
|
||||
|
||||
export interface IJSONValidation {
|
||||
fileMatch: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface IKeyBinding {
|
||||
|
||||
@@ -730,8 +730,15 @@ export class ExtensionEditor extends BaseEditor {
|
||||
|
||||
const details = $('details', { open: true, ontoggle: onDetailsToggle },
|
||||
$('summary', null, localize('JSON Validation', "JSON Validation ({0})", contrib.length)),
|
||||
$('ul', null, ...contrib.map(v => $('li', null, v.fileMatch)))
|
||||
);
|
||||
$('table', null,
|
||||
$('tr', null,
|
||||
$('th', null, localize('fileMatch', "File Match")),
|
||||
$('th', null, localize('schema', "Schema"))
|
||||
),
|
||||
...contrib.map(v => $('tr', null,
|
||||
$('td', null, v.fileMatch),
|
||||
$('td', null, v.url)
|
||||
))));
|
||||
|
||||
append(container, details);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user