Updates changelog & monaco.d.ts.

This commit is contained in:
Henning Dieterichs 2021-08-16 12:17:47 +02:00
parent 05dea33db8
commit d0132fe244
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
3 changed files with 284 additions and 201 deletions

View file

@ -1,9 +1,34 @@
# Monaco Editor Changelog # Monaco Editor Changelog
## [0.27.0] (16.08.2021)
* added property `inlineClassName` to style injected text
* added option `foldingImportsByDefault`
* added more JSON diagnostic options.
### Breaking Change
* changed `seedSearchStringFromSelection` from boolean to `'never' | 'always' 'selection'`
* changed suggestion preview mode `subwordDiff` to `subwordSmart`, introduced `subword`
### Thank you
Contributions to `monaco-editor`:
* [@Surm4 (Marcin)](https://github.com/Surm4): Exposed colors sample update in the playground. [PR #2561](https://github.com/microsoft/monaco-editor/pull/2561)
Contributions to `monaco-languages`:
* [@alefragnani (Alessandro Fragnani)](https://github.com/alefragnani): Adds `strict` keyword to Pascal language [PR #153](https://github.com/microsoft/monaco-languages/pull/153)
* [@jonatanklosko (Jonatan Kłosko)](https://github.com/jonatanklosko): Properly tokenize fence closing in GitHub style code blocks [PR #149](https://github.com/microsoft/monaco-languages/pull/149)
* [@kupiakos (Alyssa Haroldsen)](https://github.com/kupiakos): Remove ' as an auto-closing pair for Rust [PR #151](https://github.com/microsoft/monaco-languages/pull/151)
* [@lofcz (Matěj Štágl)](https://github.com/lofcz): Fix razor + liquid render of tags with a dash symbol [PR #150](https://github.com/microsoft/monaco-languages/pull/150)
## [0.26.0] (15.07.2021) ## [0.26.0] (15.07.2021)
* added support for injected text. Use `IModelDecorationOptions.before`/`after`. * added support for injected text. Use `IModelDecorationOptions.before`/`after`.
* adds support for inlay hints provider. * added support for inlay hints provider.
### Breaking Changes ### Breaking Changes

227
typedoc/monaco.d.ts vendored
View file

@ -1466,6 +1466,14 @@ declare namespace monaco.editor {
* Sets the text to inject. Must be a single line. * Sets the text to inject. Must be a single line.
*/ */
readonly content: string; readonly content: string;
/**
* If set, the decoration will be rendered inline with the text with this CSS class name.
*/
readonly inlineClassName?: string | null;
/**
* If there is an `inlineClassName` which affects letter spacing.
*/
readonly inlineClassNameAffectsLetterSpacing?: boolean;
} }
/** /**
@ -3167,6 +3175,11 @@ declare namespace monaco.editor {
* Defaults to true. * Defaults to true.
*/ */
foldingHighlight?: boolean; foldingHighlight?: boolean;
/**
* Auto fold imports folding regions.
* Defaults to true.
*/
foldingImportsByDefault?: boolean;
/** /**
* Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
* Defaults to 'mouseover'. * Defaults to 'mouseover'.
@ -3436,7 +3449,7 @@ declare namespace monaco.editor {
/** /**
* Controls if we seed search string in the Find Widget with editor selection. * Controls if we seed search string in the Find Widget with editor selection.
*/ */
seedSearchStringFromSelection?: boolean; seedSearchStringFromSelection?: 'never' | 'always' | 'selection';
/** /**
* Controls if Find in Selection flag is turned on in the editor. * Controls if Find in Selection flag is turned on in the editor.
*/ */
@ -3856,10 +3869,11 @@ declare namespace monaco.editor {
/** /**
* Configures the mode. * Configures the mode.
* Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text. * Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text.
* Use `subwordDiff` to only show ghost text if the replace text is a subword of the suggestion text and diffing should be used to compute the ghost text. * Use `subword` to only show ghost text if the replace text is a subword of the suggestion text.
* Use `subwordSmart` to only show ghost text if the replace text is a subword of the suggestion text, but the subword must start after the cursor position.
* Defaults to `prefix`. * Defaults to `prefix`.
*/ */
mode?: 'prefix' | 'subwordDiff'; mode?: 'prefix' | 'subword' | 'subwordSmart';
} }
export type InternalInlineSuggestOptions = Readonly<Required<IInlineSuggestOptions>>; export type InternalInlineSuggestOptions = Readonly<Required<IInlineSuggestOptions>>;
@ -3901,9 +3915,9 @@ declare namespace monaco.editor {
*/ */
preview?: boolean; preview?: boolean;
/** /**
* Configures the mode of the preview. Defaults to `subwordDiff`. * Configures the mode of the preview.
*/ */
previewMode?: 'prefix' | 'subwordDiff'; previewMode?: 'prefix' | 'subword' | 'subwordSmart';
/** /**
* Show details inline with the label. Defaults to true. * Show details inline with the label. Defaults to true.
*/ */
@ -4098,98 +4112,99 @@ declare namespace monaco.editor {
folding = 35, folding = 35,
foldingStrategy = 36, foldingStrategy = 36,
foldingHighlight = 37, foldingHighlight = 37,
unfoldOnClickAfterEndOfLine = 38, foldingImportsByDefault = 38,
fontFamily = 39, unfoldOnClickAfterEndOfLine = 39,
fontInfo = 40, fontFamily = 40,
fontLigatures = 41, fontInfo = 41,
fontSize = 42, fontLigatures = 42,
fontWeight = 43, fontSize = 43,
formatOnPaste = 44, fontWeight = 44,
formatOnType = 45, formatOnPaste = 45,
glyphMargin = 46, formatOnType = 46,
gotoLocation = 47, glyphMargin = 47,
hideCursorInOverviewRuler = 48, gotoLocation = 48,
highlightActiveIndentGuide = 49, hideCursorInOverviewRuler = 49,
hover = 50, highlightActiveIndentGuide = 50,
inDiffEditor = 51, hover = 51,
inlineSuggest = 52, inDiffEditor = 52,
letterSpacing = 53, inlineSuggest = 53,
lightbulb = 54, letterSpacing = 54,
lineDecorationsWidth = 55, lightbulb = 55,
lineHeight = 56, lineDecorationsWidth = 56,
lineNumbers = 57, lineHeight = 57,
lineNumbersMinChars = 58, lineNumbers = 58,
linkedEditing = 59, lineNumbersMinChars = 59,
links = 60, linkedEditing = 60,
matchBrackets = 61, links = 61,
minimap = 62, matchBrackets = 62,
mouseStyle = 63, minimap = 63,
mouseWheelScrollSensitivity = 64, mouseStyle = 64,
mouseWheelZoom = 65, mouseWheelScrollSensitivity = 65,
multiCursorMergeOverlapping = 66, mouseWheelZoom = 66,
multiCursorModifier = 67, multiCursorMergeOverlapping = 67,
multiCursorPaste = 68, multiCursorModifier = 68,
occurrencesHighlight = 69, multiCursorPaste = 69,
overviewRulerBorder = 70, occurrencesHighlight = 70,
overviewRulerLanes = 71, overviewRulerBorder = 71,
padding = 72, overviewRulerLanes = 72,
parameterHints = 73, padding = 73,
peekWidgetDefaultFocus = 74, parameterHints = 74,
definitionLinkOpensInPeek = 75, peekWidgetDefaultFocus = 75,
quickSuggestions = 76, definitionLinkOpensInPeek = 76,
quickSuggestionsDelay = 77, quickSuggestions = 77,
readOnly = 78, quickSuggestionsDelay = 78,
renameOnType = 79, readOnly = 79,
renderControlCharacters = 80, renameOnType = 80,
renderIndentGuides = 81, renderControlCharacters = 81,
renderFinalNewline = 82, renderIndentGuides = 82,
renderLineHighlight = 83, renderFinalNewline = 83,
renderLineHighlightOnlyWhenFocus = 84, renderLineHighlight = 84,
renderValidationDecorations = 85, renderLineHighlightOnlyWhenFocus = 85,
renderWhitespace = 86, renderValidationDecorations = 86,
revealHorizontalRightPadding = 87, renderWhitespace = 87,
roundedSelection = 88, revealHorizontalRightPadding = 88,
rulers = 89, roundedSelection = 89,
scrollbar = 90, rulers = 90,
scrollBeyondLastColumn = 91, scrollbar = 91,
scrollBeyondLastLine = 92, scrollBeyondLastColumn = 92,
scrollPredominantAxis = 93, scrollBeyondLastLine = 93,
selectionClipboard = 94, scrollPredominantAxis = 94,
selectionHighlight = 95, selectionClipboard = 95,
selectOnLineNumbers = 96, selectionHighlight = 96,
showFoldingControls = 97, selectOnLineNumbers = 97,
showUnused = 98, showFoldingControls = 98,
snippetSuggestions = 99, showUnused = 99,
smartSelect = 100, snippetSuggestions = 100,
smoothScrolling = 101, smartSelect = 101,
stickyTabStops = 102, smoothScrolling = 102,
stopRenderingLineAfter = 103, stickyTabStops = 103,
suggest = 104, stopRenderingLineAfter = 104,
suggestFontSize = 105, suggest = 105,
suggestLineHeight = 106, suggestFontSize = 106,
suggestOnTriggerCharacters = 107, suggestLineHeight = 107,
suggestSelection = 108, suggestOnTriggerCharacters = 108,
tabCompletion = 109, suggestSelection = 109,
tabIndex = 110, tabCompletion = 110,
unusualLineTerminators = 111, tabIndex = 111,
useShadowDOM = 112, unusualLineTerminators = 112,
useTabStops = 113, useShadowDOM = 113,
wordSeparators = 114, useTabStops = 114,
wordWrap = 115, wordSeparators = 115,
wordWrapBreakAfterCharacters = 116, wordWrap = 116,
wordWrapBreakBeforeCharacters = 117, wordWrapBreakAfterCharacters = 117,
wordWrapColumn = 118, wordWrapBreakBeforeCharacters = 118,
wordWrapOverride1 = 119, wordWrapColumn = 119,
wordWrapOverride2 = 120, wordWrapOverride1 = 120,
wrappingIndent = 121, wordWrapOverride2 = 121,
wrappingStrategy = 122, wrappingIndent = 122,
showDeprecated = 123, wrappingStrategy = 123,
inlayHints = 124, showDeprecated = 124,
editorClassName = 125, inlayHints = 125,
pixelRatio = 126, editorClassName = 126,
tabFocusMode = 127, pixelRatio = 127,
layoutInfo = 128, tabFocusMode = 128,
wrappingInfo = 129 layoutInfo = 129,
wrappingInfo = 130
} }
export const EditorOptions: { export const EditorOptions: {
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>; acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
@ -4231,6 +4246,7 @@ declare namespace monaco.editor {
folding: IEditorOption<EditorOption.folding, boolean>; folding: IEditorOption<EditorOption.folding, boolean>;
foldingStrategy: IEditorOption<EditorOption.foldingStrategy, 'auto' | 'indentation'>; foldingStrategy: IEditorOption<EditorOption.foldingStrategy, 'auto' | 'indentation'>;
foldingHighlight: IEditorOption<EditorOption.foldingHighlight, boolean>; foldingHighlight: IEditorOption<EditorOption.foldingHighlight, boolean>;
foldingImportsByDefault: IEditorOption<EditorOption.foldingImportsByDefault, boolean>;
unfoldOnClickAfterEndOfLine: IEditorOption<EditorOption.unfoldOnClickAfterEndOfLine, boolean>; unfoldOnClickAfterEndOfLine: IEditorOption<EditorOption.unfoldOnClickAfterEndOfLine, boolean>;
fontFamily: IEditorOption<EditorOption.fontFamily, string>; fontFamily: IEditorOption<EditorOption.fontFamily, string>;
fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>; fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>;
@ -7413,11 +7429,13 @@ declare namespace monaco.languages.css {
declare namespace monaco.languages.json { declare namespace monaco.languages.json {
export interface DiagnosticsOptions { 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; readonly validate?: boolean;
/** /**
* If set, comments are tolerated. If set to false, syntax errors will be emitted for comments. * 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; readonly allowComments?: boolean;
/** /**
@ -7429,7 +7447,10 @@ declare namespace monaco.languages.json {
*/ */
readonly 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 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[]; readonly fileMatch?: string[];
/** /**
@ -7449,6 +7470,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. * 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; 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 type SeverityLevel = 'error' | 'warning' | 'ignore';
export interface ModeConfiguration { export interface ModeConfiguration {

View file

@ -1466,6 +1466,14 @@ declare namespace monaco.editor {
* Sets the text to inject. Must be a single line. * Sets the text to inject. Must be a single line.
*/ */
readonly content: string; readonly content: string;
/**
* If set, the decoration will be rendered inline with the text with this CSS class name.
*/
readonly inlineClassName?: string | null;
/**
* If there is an `inlineClassName` which affects letter spacing.
*/
readonly inlineClassNameAffectsLetterSpacing?: boolean;
} }
/** /**
@ -3167,6 +3175,11 @@ declare namespace monaco.editor {
* Defaults to true. * Defaults to true.
*/ */
foldingHighlight?: boolean; foldingHighlight?: boolean;
/**
* Auto fold imports folding regions.
* Defaults to true.
*/
foldingImportsByDefault?: boolean;
/** /**
* Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
* Defaults to 'mouseover'. * Defaults to 'mouseover'.
@ -3436,7 +3449,7 @@ declare namespace monaco.editor {
/** /**
* Controls if we seed search string in the Find Widget with editor selection. * Controls if we seed search string in the Find Widget with editor selection.
*/ */
seedSearchStringFromSelection?: boolean; seedSearchStringFromSelection?: 'never' | 'always' | 'selection';
/** /**
* Controls if Find in Selection flag is turned on in the editor. * Controls if Find in Selection flag is turned on in the editor.
*/ */
@ -3856,10 +3869,11 @@ declare namespace monaco.editor {
/** /**
* Configures the mode. * Configures the mode.
* Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text. * Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text.
* Use `subwordDiff` to only show ghost text if the replace text is a subword of the suggestion text and diffing should be used to compute the ghost text. * Use `subword` to only show ghost text if the replace text is a subword of the suggestion text.
* Use `subwordSmart` to only show ghost text if the replace text is a subword of the suggestion text, but the subword must start after the cursor position.
* Defaults to `prefix`. * Defaults to `prefix`.
*/ */
mode?: 'prefix' | 'subwordDiff'; mode?: 'prefix' | 'subword' | 'subwordSmart';
} }
export type InternalInlineSuggestOptions = Readonly<Required<IInlineSuggestOptions>>; export type InternalInlineSuggestOptions = Readonly<Required<IInlineSuggestOptions>>;
@ -3901,9 +3915,9 @@ declare namespace monaco.editor {
*/ */
preview?: boolean; preview?: boolean;
/** /**
* Configures the mode of the preview. Defaults to `subwordDiff`. * Configures the mode of the preview.
*/ */
previewMode?: 'prefix' | 'subwordDiff'; previewMode?: 'prefix' | 'subword' | 'subwordSmart';
/** /**
* Show details inline with the label. Defaults to true. * Show details inline with the label. Defaults to true.
*/ */
@ -4098,98 +4112,99 @@ declare namespace monaco.editor {
folding = 35, folding = 35,
foldingStrategy = 36, foldingStrategy = 36,
foldingHighlight = 37, foldingHighlight = 37,
unfoldOnClickAfterEndOfLine = 38, foldingImportsByDefault = 38,
fontFamily = 39, unfoldOnClickAfterEndOfLine = 39,
fontInfo = 40, fontFamily = 40,
fontLigatures = 41, fontInfo = 41,
fontSize = 42, fontLigatures = 42,
fontWeight = 43, fontSize = 43,
formatOnPaste = 44, fontWeight = 44,
formatOnType = 45, formatOnPaste = 45,
glyphMargin = 46, formatOnType = 46,
gotoLocation = 47, glyphMargin = 47,
hideCursorInOverviewRuler = 48, gotoLocation = 48,
highlightActiveIndentGuide = 49, hideCursorInOverviewRuler = 49,
hover = 50, highlightActiveIndentGuide = 50,
inDiffEditor = 51, hover = 51,
inlineSuggest = 52, inDiffEditor = 52,
letterSpacing = 53, inlineSuggest = 53,
lightbulb = 54, letterSpacing = 54,
lineDecorationsWidth = 55, lightbulb = 55,
lineHeight = 56, lineDecorationsWidth = 56,
lineNumbers = 57, lineHeight = 57,
lineNumbersMinChars = 58, lineNumbers = 58,
linkedEditing = 59, lineNumbersMinChars = 59,
links = 60, linkedEditing = 60,
matchBrackets = 61, links = 61,
minimap = 62, matchBrackets = 62,
mouseStyle = 63, minimap = 63,
mouseWheelScrollSensitivity = 64, mouseStyle = 64,
mouseWheelZoom = 65, mouseWheelScrollSensitivity = 65,
multiCursorMergeOverlapping = 66, mouseWheelZoom = 66,
multiCursorModifier = 67, multiCursorMergeOverlapping = 67,
multiCursorPaste = 68, multiCursorModifier = 68,
occurrencesHighlight = 69, multiCursorPaste = 69,
overviewRulerBorder = 70, occurrencesHighlight = 70,
overviewRulerLanes = 71, overviewRulerBorder = 71,
padding = 72, overviewRulerLanes = 72,
parameterHints = 73, padding = 73,
peekWidgetDefaultFocus = 74, parameterHints = 74,
definitionLinkOpensInPeek = 75, peekWidgetDefaultFocus = 75,
quickSuggestions = 76, definitionLinkOpensInPeek = 76,
quickSuggestionsDelay = 77, quickSuggestions = 77,
readOnly = 78, quickSuggestionsDelay = 78,
renameOnType = 79, readOnly = 79,
renderControlCharacters = 80, renameOnType = 80,
renderIndentGuides = 81, renderControlCharacters = 81,
renderFinalNewline = 82, renderIndentGuides = 82,
renderLineHighlight = 83, renderFinalNewline = 83,
renderLineHighlightOnlyWhenFocus = 84, renderLineHighlight = 84,
renderValidationDecorations = 85, renderLineHighlightOnlyWhenFocus = 85,
renderWhitespace = 86, renderValidationDecorations = 86,
revealHorizontalRightPadding = 87, renderWhitespace = 87,
roundedSelection = 88, revealHorizontalRightPadding = 88,
rulers = 89, roundedSelection = 89,
scrollbar = 90, rulers = 90,
scrollBeyondLastColumn = 91, scrollbar = 91,
scrollBeyondLastLine = 92, scrollBeyondLastColumn = 92,
scrollPredominantAxis = 93, scrollBeyondLastLine = 93,
selectionClipboard = 94, scrollPredominantAxis = 94,
selectionHighlight = 95, selectionClipboard = 95,
selectOnLineNumbers = 96, selectionHighlight = 96,
showFoldingControls = 97, selectOnLineNumbers = 97,
showUnused = 98, showFoldingControls = 98,
snippetSuggestions = 99, showUnused = 99,
smartSelect = 100, snippetSuggestions = 100,
smoothScrolling = 101, smartSelect = 101,
stickyTabStops = 102, smoothScrolling = 102,
stopRenderingLineAfter = 103, stickyTabStops = 103,
suggest = 104, stopRenderingLineAfter = 104,
suggestFontSize = 105, suggest = 105,
suggestLineHeight = 106, suggestFontSize = 106,
suggestOnTriggerCharacters = 107, suggestLineHeight = 107,
suggestSelection = 108, suggestOnTriggerCharacters = 108,
tabCompletion = 109, suggestSelection = 109,
tabIndex = 110, tabCompletion = 110,
unusualLineTerminators = 111, tabIndex = 111,
useShadowDOM = 112, unusualLineTerminators = 112,
useTabStops = 113, useShadowDOM = 113,
wordSeparators = 114, useTabStops = 114,
wordWrap = 115, wordSeparators = 115,
wordWrapBreakAfterCharacters = 116, wordWrap = 116,
wordWrapBreakBeforeCharacters = 117, wordWrapBreakAfterCharacters = 117,
wordWrapColumn = 118, wordWrapBreakBeforeCharacters = 118,
wordWrapOverride1 = 119, wordWrapColumn = 119,
wordWrapOverride2 = 120, wordWrapOverride1 = 120,
wrappingIndent = 121, wordWrapOverride2 = 121,
wrappingStrategy = 122, wrappingIndent = 122,
showDeprecated = 123, wrappingStrategy = 123,
inlayHints = 124, showDeprecated = 124,
editorClassName = 125, inlayHints = 125,
pixelRatio = 126, editorClassName = 126,
tabFocusMode = 127, pixelRatio = 127,
layoutInfo = 128, tabFocusMode = 128,
wrappingInfo = 129 layoutInfo = 129,
wrappingInfo = 130
} }
export const EditorOptions: { export const EditorOptions: {
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>; acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
@ -4231,6 +4246,7 @@ declare namespace monaco.editor {
folding: IEditorOption<EditorOption.folding, boolean>; folding: IEditorOption<EditorOption.folding, boolean>;
foldingStrategy: IEditorOption<EditorOption.foldingStrategy, 'auto' | 'indentation'>; foldingStrategy: IEditorOption<EditorOption.foldingStrategy, 'auto' | 'indentation'>;
foldingHighlight: IEditorOption<EditorOption.foldingHighlight, boolean>; foldingHighlight: IEditorOption<EditorOption.foldingHighlight, boolean>;
foldingImportsByDefault: IEditorOption<EditorOption.foldingImportsByDefault, boolean>;
unfoldOnClickAfterEndOfLine: IEditorOption<EditorOption.unfoldOnClickAfterEndOfLine, boolean>; unfoldOnClickAfterEndOfLine: IEditorOption<EditorOption.unfoldOnClickAfterEndOfLine, boolean>;
fontFamily: IEditorOption<EditorOption.fontFamily, string>; fontFamily: IEditorOption<EditorOption.fontFamily, string>;
fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>; fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>;
@ -7413,11 +7429,13 @@ declare namespace monaco.languages.css {
declare namespace monaco.languages.json { declare namespace monaco.languages.json {
export interface DiagnosticsOptions { 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; readonly validate?: boolean;
/** /**
* If set, comments are tolerated. If set to false, syntax errors will be emitted for comments. * 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; readonly allowComments?: boolean;
/** /**
@ -7429,7 +7447,10 @@ declare namespace monaco.languages.json {
*/ */
readonly 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 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[]; readonly fileMatch?: string[];
/** /**
@ -7449,6 +7470,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. * 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; 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 type SeverityLevel = 'error' | 'warning' | 'ignore';
export interface ModeConfiguration { export interface ModeConfiguration {