mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Make it clear that options are set via setDiagnosticOptions
This commit is contained in:
parent
ba7a261af3
commit
09b372338c
1 changed files with 8 additions and 8 deletions
16
src/monaco.d.ts
vendored
16
src/monaco.d.ts
vendored
|
|
@ -8,33 +8,33 @@ declare module monaco.languages.json {
|
||||||
/**
|
/**
|
||||||
* 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 validation as well as schema based validation.
|
||||||
*/
|
*/
|
||||||
validate?: boolean;
|
readonly validate?: boolean;
|
||||||
/**
|
/**
|
||||||
* If set, comments are tolerated. If set to false, syntax errors will be emmited for comments.
|
* If set, comments are tolerated. If set to false, syntax errors will be emmited for comments.
|
||||||
*/
|
*/
|
||||||
allowComments?: boolean;
|
readonly allowComments?: boolean;
|
||||||
/**
|
/**
|
||||||
* A list of known schemas and/or associations of schemas to file names.
|
* A list of known schemas and/or associations of schemas to file names.
|
||||||
*/
|
*/
|
||||||
schemas?: {
|
readonly schemas?: {
|
||||||
/**
|
/**
|
||||||
* The URI of the schema, which is also the identifier of the schema.
|
* The URI of the schema, which is also the identifier of the schema.
|
||||||
*/
|
*/
|
||||||
uri: string;
|
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 file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json'
|
||||||
*/
|
*/
|
||||||
fileMatch?: string[];
|
readonly fileMatch?: string[];
|
||||||
/**
|
/**
|
||||||
* The schema for the given URI.
|
* The schema for the given URI.
|
||||||
*/
|
*/
|
||||||
schema?: any;
|
readonly schema?: any;
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LanguageServiceDefaults {
|
export interface LanguageServiceDefaults {
|
||||||
onDidChange: IEvent<LanguageServiceDefaults>;
|
readonly onDidChange: IEvent<LanguageServiceDefaults>;
|
||||||
diagnosticsOptions: DiagnosticsOptions;
|
readonly diagnosticsOptions: DiagnosticsOptions;
|
||||||
setDiagnosticsOptions(options: DiagnosticsOptions): void;
|
setDiagnosticsOptions(options: DiagnosticsOptions): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue