From 3f0fb342447c9cb06ff5fd0f423fe205a9d0cfe8 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 12 May 2021 18:37:51 +0200 Subject: [PATCH] update `.d.ts` --- typedoc/monaco.d.ts | 17 +++++++++++++++-- website/playground/monaco.d.ts.txt | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/typedoc/monaco.d.ts b/typedoc/monaco.d.ts index 80ecc076..f4433124 100644 --- a/typedoc/monaco.d.ts +++ b/typedoc/monaco.d.ts @@ -7220,11 +7220,13 @@ declare namespace monaco.languages.css { declare namespace monaco.languages.json { export interface DiagnosticsOptions { /** - * If set, the validator will be enabled and perform syntax validation as well as schema based validation. + * If set, the validator will be enabled and perform syntax and schema based validation, + * unless `DiagnosticsOptions.schemaValidation` is set to `ignore`. */ readonly validate?: boolean; /** * If set, comments are tolerated. If set to false, syntax errors will be emitted for comments. + * `DiagnosticsOptions.allowComments` will override this setting. */ readonly allowComments?: boolean; /** @@ -7236,7 +7238,10 @@ declare namespace monaco.languages.json { */ readonly uri: string; /** - * A list of file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json' + * A list of glob patterns that describe for which file URIs the JSON schema will be used. + * '*' and '**' wildcards are supported. Exclusion patterns start with '!'. + * For example '*.schema.json', 'package.json', '!foo*.schema.json', 'foo/**\/BADRESP.json'. + * A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'. */ readonly fileMatch?: string[]; /** @@ -7256,6 +7261,14 @@ declare namespace monaco.languages.json { * The severity of problems that occurred when resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. */ readonly schemaRequest?: SeverityLevel; + /** + * The severity of reported trailing commas. If not set, trailing commas will be reported as errors. + */ + readonly trailingCommas?: SeverityLevel; + /** + * The severity of reported comments. If not set, 'DiagnosticsOptions.allowComments' defines whether comments are ignored or reported as errors. + */ + readonly comments?: SeverityLevel; } export type SeverityLevel = 'error' | 'warning' | 'ignore'; export interface ModeConfiguration { diff --git a/website/playground/monaco.d.ts.txt b/website/playground/monaco.d.ts.txt index 80ecc076..f4433124 100644 --- a/website/playground/monaco.d.ts.txt +++ b/website/playground/monaco.d.ts.txt @@ -7220,11 +7220,13 @@ declare namespace monaco.languages.css { declare namespace monaco.languages.json { export interface DiagnosticsOptions { /** - * If set, the validator will be enabled and perform syntax validation as well as schema based validation. + * If set, the validator will be enabled and perform syntax and schema based validation, + * unless `DiagnosticsOptions.schemaValidation` is set to `ignore`. */ readonly validate?: boolean; /** * If set, comments are tolerated. If set to false, syntax errors will be emitted for comments. + * `DiagnosticsOptions.allowComments` will override this setting. */ readonly allowComments?: boolean; /** @@ -7236,7 +7238,10 @@ declare namespace monaco.languages.json { */ readonly uri: string; /** - * A list of file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json' + * A list of glob patterns that describe for which file URIs the JSON schema will be used. + * '*' and '**' wildcards are supported. Exclusion patterns start with '!'. + * For example '*.schema.json', 'package.json', '!foo*.schema.json', 'foo/**\/BADRESP.json'. + * A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'. */ readonly fileMatch?: string[]; /** @@ -7256,6 +7261,14 @@ declare namespace monaco.languages.json { * The severity of problems that occurred when resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. */ readonly schemaRequest?: SeverityLevel; + /** + * The severity of reported trailing commas. If not set, trailing commas will be reported as errors. + */ + readonly trailingCommas?: SeverityLevel; + /** + * The severity of reported comments. If not set, 'DiagnosticsOptions.allowComments' defines whether comments are ignored or reported as errors. + */ + readonly comments?: SeverityLevel; } export type SeverityLevel = 'error' | 'warning' | 'ignore'; export interface ModeConfiguration {