This commit is contained in:
Sandeep Somavarapu
2018-02-28 15:26:15 +01:00
parent 45e78ce0b8
commit 71efa04fb5
2 changed files with 10 additions and 2 deletions
@@ -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;