mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
Make it clear that options are set via setOptions
This commit is contained in:
parent
3b0a3b3b41
commit
58f6b54d96
1 changed files with 14 additions and 14 deletions
28
src/monaco.d.ts
vendored
28
src/monaco.d.ts
vendored
|
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
declare module monaco.languages.html {
|
declare module monaco.languages.html {
|
||||||
export interface HTMLFormatConfiguration {
|
export interface HTMLFormatConfiguration {
|
||||||
tabSize: number;
|
readonly tabSize: number;
|
||||||
insertSpaces: boolean;
|
readonly insertSpaces: boolean;
|
||||||
wrapLineLength: number;
|
readonly wrapLineLength: number;
|
||||||
unformatted: string;
|
readonly unformatted: string;
|
||||||
indentInnerHtml: boolean;
|
readonly indentInnerHtml: boolean;
|
||||||
preserveNewLines: boolean;
|
readonly preserveNewLines: boolean;
|
||||||
maxPreserveNewLines: number;
|
readonly maxPreserveNewLines: number;
|
||||||
indentHandlebars: boolean;
|
readonly indentHandlebars: boolean;
|
||||||
endWithNewline: boolean;
|
readonly endWithNewline: boolean;
|
||||||
extraLiners: string;
|
readonly extraLiners: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CompletionConfiguration {
|
export interface CompletionConfiguration {
|
||||||
|
|
@ -25,16 +25,16 @@ declare module monaco.languages.html {
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
*/
|
*/
|
||||||
format?: HTMLFormatConfiguration;
|
readonly format?: HTMLFormatConfiguration;
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
*/
|
*/
|
||||||
suggest?: CompletionConfiguration;
|
readonly suggest?: CompletionConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LanguageServiceDefaults {
|
export interface LanguageServiceDefaults {
|
||||||
onDidChange: IEvent<LanguageServiceDefaults>;
|
readonly onDidChange: IEvent<LanguageServiceDefaults>;
|
||||||
options: Options;
|
readonly options: Options;
|
||||||
setOptions(options: Options): void;
|
setOptions(options: Options): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue