Fixes nightly release

This commit is contained in:
Henning Dieterichs 2022-01-24 11:49:42 +01:00
parent f50e0abe46
commit 2a243d07fe
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
5 changed files with 408 additions and 371 deletions

24
package-lock.json generated
View file

@ -61,9 +61,9 @@
"dev": true "dev": true
}, },
"acorn": { "acorn": {
"version": "8.5.0", "version": "8.7.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz",
"integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==",
"dev": true "dev": true
}, },
"acorn-globals": { "acorn-globals": {
@ -972,9 +972,9 @@
} }
}, },
"jsdom": { "jsdom": {
"version": "18.1.0", "version": "19.0.0",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-18.1.0.tgz", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-19.0.0.tgz",
"integrity": "sha512-q6QFAfSGLEUqRJ+GCV6vn6ItZCMARWh1d33wiJZPxc+wMNw7HK71JPmQ4C2lIZAsBH8TiJu4uplach/UcrC6bQ==", "integrity": "sha512-RYAyjCbxy/vri/CfnjUWJQQtZ3LKlLnDqj+9XLNnJPgEGeirZs3hllKR20re8LUZ6o1b1X4Jat+Qd26zmP41+A==",
"dev": true, "dev": true,
"requires": { "requires": {
"abab": "^2.0.5", "abab": "^2.0.5",
@ -1159,9 +1159,9 @@
} }
}, },
"monaco-editor-core": { "monaco-editor-core": {
"version": "0.32.0-dev.20220110", "version": "0.32.0-dev.20220124",
"resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.32.0-dev.20220110.tgz", "resolved": "https://registry.npmjs.org/monaco-editor-core/-/monaco-editor-core-0.32.0-dev.20220124.tgz",
"integrity": "sha512-XF6xIUAmziM57p+lorG3IXHg0jCuxIL6mqv0WhXcSmtg4oEJFAQy/aT9+3fDbDIyJ+b0oSJga2e38K5PH5ajJQ==", "integrity": "sha512-R1MawhuYlGGRNI2jF2jC1z894XGG9NyQnZ6TXLgo88ygaAQUvxp0q4pQp+rkL0x2Q0DZF1CbvclKJlxfniAdiw==",
"dev": true "dev": true
}, },
"mri": { "mri": {
@ -1962,9 +1962,9 @@
"dev": true "dev": true
}, },
"ws": { "ws": {
"version": "8.2.3", "version": "8.4.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
"integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", "integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
"dev": true "dev": true
}, },
"xml-name-validator": { "xml-name-validator": {

View file

@ -38,10 +38,10 @@
"esbuild-plugin-alias": "^0.2.1", "esbuild-plugin-alias": "^0.2.1",
"glob": "^7.2.0", "glob": "^7.2.0",
"husky": "^7.0.4", "husky": "^7.0.4",
"jsdom": "^18.1.0", "jsdom": "^19.0.0",
"jsonc-parser": "^3.0.0", "jsonc-parser": "^3.0.0",
"mocha": "^9.1.3", "mocha": "^9.1.3",
"monaco-editor-core": "0.32.0-dev.20220110", "monaco-editor-core": "0.32.0-dev.20220124",
"playwright": "^1.16.3", "playwright": "^1.16.3",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"pretty-quick": "^3.1.1", "pretty-quick": "^3.1.1",

View file

@ -21,13 +21,14 @@ global.self = global;
global.document.queryCommandSupported = function () { global.document.queryCommandSupported = function () {
return false; return false;
}; };
global.window = { global.window = {
location: {}, location: {},
navigator: tmp.window.navigator, navigator: tmp.window.navigator,
matchMedia: function () { matchMedia: function () {
return { return {
matches: false, matches: false,
addListener: function () {} addEventListener: function () {}
}; };
} }
}; };

View file

@ -1356,6 +1356,44 @@ declare namespace monaco.editor {
id: string; id: string;
} }
/**
* A single edit operation, that acts as a simple replace.
* i.e. Replace text at `range` with `text` in model.
*/
export interface ISingleEditOperation {
/**
* The range to replace. This can be empty to emulate a simple insert.
*/
range: IRange;
/**
* The text to replace with. This can be null to emulate a simple delete.
*/
text: string | null;
/**
* This indicates that this operation has "insert" semantics.
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
*/
forceMoveMarkers?: boolean;
}
/**
* Word inside a model.
*/
export interface IWordAtPosition {
/**
* The word.
*/
readonly word: string;
/**
* The column where the word starts.
*/
readonly startColumn: number;
/**
* The column where the word ends.
*/
readonly endColumn: number;
}
/** /**
* Vertical Lane in the overview ruler of the editor. * Vertical Lane in the overview ruler of the editor.
*/ */
@ -1511,6 +1549,18 @@ declare namespace monaco.editor {
* The data can be read when injected texts at a given position are queried. * The data can be read when injected texts at a given position are queried.
*/ */
readonly attachedData?: unknown; readonly attachedData?: unknown;
/**
* Configures cursor stops around injected text.
* Defaults to {@link InjectedTextCursorStops.Both}.
*/
readonly cursorStops?: InjectedTextCursorStops | null;
}
export enum InjectedTextCursorStops {
Both = 0,
Right = 1,
Left = 2,
None = 3
} }
/** /**
@ -1549,24 +1599,6 @@ declare namespace monaco.editor {
readonly options: IModelDecorationOptions; readonly options: IModelDecorationOptions;
} }
/**
* Word inside a model.
*/
export interface IWordAtPosition {
/**
* The word.
*/
readonly word: string;
/**
* The column where the word starts.
*/
readonly startColumn: number;
/**
* The column where the word ends.
*/
readonly endColumn: number;
}
/** /**
* End of line character preference. * End of line character preference.
*/ */
@ -1613,26 +1645,6 @@ declare namespace monaco.editor {
CRLF = 1 CRLF = 1
} }
/**
* A single edit operation, that acts as a simple replace.
* i.e. Replace text at `range` with `text` in model.
*/
export interface ISingleEditOperation {
/**
* The range to replace. This can be empty to emulate a simple insert.
*/
range: IRange;
/**
* The text to replace with. This can be null to emulate a simple delete.
*/
text: string | null;
/**
* This indicates that this operation has "insert" semantics.
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
*/
forceMoveMarkers?: boolean;
}
/** /**
* A single edit operation, that has an identifier. * A single edit operation, that has an identifier.
*/ */
@ -2082,6 +2094,37 @@ declare namespace monaco.editor {
isAttachedToEditor(): boolean; isAttachedToEditor(): boolean;
} }
/**
* A change
*/
export interface IChange {
readonly originalStartLineNumber: number;
readonly originalEndLineNumber: number;
readonly modifiedStartLineNumber: number;
readonly modifiedEndLineNumber: number;
}
/**
* A character level change.
*/
export interface ICharChange extends IChange {
readonly originalStartColumn: number;
readonly originalEndColumn: number;
readonly modifiedStartColumn: number;
readonly modifiedEndColumn: number;
}
/**
* A line change
*/
export interface ILineChange extends IChange {
readonly charChanges: ICharChange[] | undefined;
}
export interface IDimension {
width: number;
height: number;
}
/** /**
* A builder and helper for edit operations for a command. * A builder and helper for edit operations for a command.
*/ */
@ -2174,38 +2217,6 @@ declare namespace monaco.editor {
readonly newModelUrl: Uri | null; readonly newModelUrl: Uri | null;
} }
export interface IDimension {
width: number;
height: number;
}
/**
* A change
*/
export interface IChange {
readonly originalStartLineNumber: number;
readonly originalEndLineNumber: number;
readonly modifiedStartLineNumber: number;
readonly modifiedEndLineNumber: number;
}
/**
* A character level change.
*/
export interface ICharChange extends IChange {
readonly originalStartColumn: number;
readonly originalEndColumn: number;
readonly modifiedStartColumn: number;
readonly modifiedEndColumn: number;
}
/**
* A line change
*/
export interface ILineChange extends IChange {
readonly charChanges: ICharChange[] | undefined;
}
export interface IContentSizeChangedEvent { export interface IContentSizeChangedEvent {
readonly contentWidth: number; readonly contentWidth: number;
readonly contentHeight: number; readonly contentHeight: number;
@ -3220,6 +3231,11 @@ declare namespace monaco.editor {
* Defaults to true. * Defaults to true.
*/ */
foldingImportsByDefault?: boolean; foldingImportsByDefault?: boolean;
/**
* Maximum number of foldable regions.
* Defaults to 5000.
*/
foldingMaximumRegions?: number;
/** /**
* 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'.
@ -4185,97 +4201,98 @@ declare namespace monaco.editor {
foldingStrategy = 38, foldingStrategy = 38,
foldingHighlight = 39, foldingHighlight = 39,
foldingImportsByDefault = 40, foldingImportsByDefault = 40,
unfoldOnClickAfterEndOfLine = 41, foldingMaximumRegions = 41,
fontFamily = 42, unfoldOnClickAfterEndOfLine = 42,
fontInfo = 43, fontFamily = 43,
fontLigatures = 44, fontInfo = 44,
fontSize = 45, fontLigatures = 45,
fontWeight = 46, fontSize = 46,
formatOnPaste = 47, fontWeight = 47,
formatOnType = 48, formatOnPaste = 48,
glyphMargin = 49, formatOnType = 49,
gotoLocation = 50, glyphMargin = 50,
hideCursorInOverviewRuler = 51, gotoLocation = 51,
hover = 52, hideCursorInOverviewRuler = 52,
inDiffEditor = 53, hover = 53,
inlineSuggest = 54, inDiffEditor = 54,
letterSpacing = 55, inlineSuggest = 55,
lightbulb = 56, letterSpacing = 56,
lineDecorationsWidth = 57, lightbulb = 57,
lineHeight = 58, lineDecorationsWidth = 58,
lineNumbers = 59, lineHeight = 59,
lineNumbersMinChars = 60, lineNumbers = 60,
linkedEditing = 61, lineNumbersMinChars = 61,
links = 62, linkedEditing = 62,
matchBrackets = 63, links = 63,
minimap = 64, matchBrackets = 64,
mouseStyle = 65, minimap = 65,
mouseWheelScrollSensitivity = 66, mouseStyle = 66,
mouseWheelZoom = 67, mouseWheelScrollSensitivity = 67,
multiCursorMergeOverlapping = 68, mouseWheelZoom = 68,
multiCursorModifier = 69, multiCursorMergeOverlapping = 69,
multiCursorPaste = 70, multiCursorModifier = 70,
occurrencesHighlight = 71, multiCursorPaste = 71,
overviewRulerBorder = 72, occurrencesHighlight = 72,
overviewRulerLanes = 73, overviewRulerBorder = 73,
padding = 74, overviewRulerLanes = 74,
parameterHints = 75, padding = 75,
peekWidgetDefaultFocus = 76, parameterHints = 76,
definitionLinkOpensInPeek = 77, peekWidgetDefaultFocus = 77,
quickSuggestions = 78, definitionLinkOpensInPeek = 78,
quickSuggestionsDelay = 79, quickSuggestions = 79,
readOnly = 80, quickSuggestionsDelay = 80,
renameOnType = 81, readOnly = 81,
renderControlCharacters = 82, renameOnType = 82,
renderFinalNewline = 83, renderControlCharacters = 83,
renderLineHighlight = 84, renderFinalNewline = 84,
renderLineHighlightOnlyWhenFocus = 85, renderLineHighlight = 85,
renderValidationDecorations = 86, renderLineHighlightOnlyWhenFocus = 86,
renderWhitespace = 87, renderValidationDecorations = 87,
revealHorizontalRightPadding = 88, renderWhitespace = 88,
roundedSelection = 89, revealHorizontalRightPadding = 89,
rulers = 90, roundedSelection = 90,
scrollbar = 91, rulers = 91,
scrollBeyondLastColumn = 92, scrollbar = 92,
scrollBeyondLastLine = 93, scrollBeyondLastColumn = 93,
scrollPredominantAxis = 94, scrollBeyondLastLine = 94,
selectionClipboard = 95, scrollPredominantAxis = 95,
selectionHighlight = 96, selectionClipboard = 96,
selectOnLineNumbers = 97, selectionHighlight = 97,
showFoldingControls = 98, selectOnLineNumbers = 98,
showUnused = 99, showFoldingControls = 99,
snippetSuggestions = 100, showUnused = 100,
smartSelect = 101, snippetSuggestions = 101,
smoothScrolling = 102, smartSelect = 102,
stickyTabStops = 103, smoothScrolling = 103,
stopRenderingLineAfter = 104, stickyTabStops = 104,
suggest = 105, stopRenderingLineAfter = 105,
suggestFontSize = 106, suggest = 106,
suggestLineHeight = 107, suggestFontSize = 107,
suggestOnTriggerCharacters = 108, suggestLineHeight = 108,
suggestSelection = 109, suggestOnTriggerCharacters = 109,
tabCompletion = 110, suggestSelection = 110,
tabIndex = 111, tabCompletion = 111,
unicodeHighlighting = 112, tabIndex = 112,
unusualLineTerminators = 113, unicodeHighlighting = 113,
useShadowDOM = 114, unusualLineTerminators = 114,
useTabStops = 115, useShadowDOM = 115,
wordSeparators = 116, useTabStops = 116,
wordWrap = 117, wordSeparators = 117,
wordWrapBreakAfterCharacters = 118, wordWrap = 118,
wordWrapBreakBeforeCharacters = 119, wordWrapBreakAfterCharacters = 119,
wordWrapColumn = 120, wordWrapBreakBeforeCharacters = 120,
wordWrapOverride1 = 121, wordWrapColumn = 121,
wordWrapOverride2 = 122, wordWrapOverride1 = 122,
wrappingIndent = 123, wordWrapOverride2 = 123,
wrappingStrategy = 124, wrappingIndent = 124,
showDeprecated = 125, wrappingStrategy = 125,
inlayHints = 126, showDeprecated = 126,
editorClassName = 127, inlayHints = 127,
pixelRatio = 128, editorClassName = 128,
tabFocusMode = 129, pixelRatio = 129,
layoutInfo = 130, tabFocusMode = 130,
wrappingInfo = 131 layoutInfo = 131,
wrappingInfo = 132
} }
export const EditorOptions: { export const EditorOptions: {
@ -4321,6 +4338,7 @@ declare namespace monaco.editor {
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>; foldingImportsByDefault: IEditorOption<EditorOption.foldingImportsByDefault, boolean>;
foldingMaximumRegions: IEditorOption<EditorOption.foldingMaximumRegions, number>;
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>;
@ -4423,6 +4441,18 @@ declare namespace monaco.editor {
export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>; export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>;
export interface IEditorConstructionOptions extends IEditorOptions {
/**
* The initial editor dimension (to avoid measuring the container).
*/
dimension?: IDimension;
/**
* Place overflow widgets inside an external DOM node.
* Defaults to an internal DOM node.
*/
overflowWidgetsDomNode?: HTMLElement;
}
/** /**
* A view zone is a full horizontal rectangle that 'pushes' text down. * A view zone is a full horizontal rectangle that 'pushes' text down.
* The editor reserves space for view zones when rendering. * The editor reserves space for view zones when rendering.
@ -4823,18 +4853,6 @@ declare namespace monaco.editor {
readonly languageId: string | null; readonly languageId: string | null;
} }
export interface IEditorConstructionOptions extends IEditorOptions {
/**
* The initial editor dimension (to avoid measuring the container).
*/
dimension?: IDimension;
/**
* Place overflow widgets inside an external DOM node.
* Defaults to an internal DOM node.
*/
overflowWidgetsDomNode?: HTMLElement;
}
export interface IDiffEditorConstructionOptions extends IDiffEditorOptions { export interface IDiffEditorConstructionOptions extends IDiffEditorOptions {
/** /**
* The initial editor dimension (to avoid measuring the container). * The initial editor dimension (to avoid measuring the container).
@ -5320,7 +5338,6 @@ declare namespace monaco.editor {
export class BareFontInfo { export class BareFontInfo {
readonly _bareFontInfoBrand: void; readonly _bareFontInfoBrand: void;
readonly zoomLevel: number;
readonly pixelRatio: number; readonly pixelRatio: number;
readonly fontFamily: string; readonly fontFamily: string;
readonly fontWeight: string; readonly fontWeight: string;
@ -6851,8 +6868,9 @@ declare namespace monaco.languages {
export interface InlayHintLabelPart { export interface InlayHintLabelPart {
label: string; label: string;
collapsible?: boolean; tooltip?: string | IMarkdownString;
action?: Command | Location; command?: Command;
location?: Location;
} }
export interface InlayHint { export interface InlayHint {
@ -6860,8 +6878,8 @@ declare namespace monaco.languages {
tooltip?: string | IMarkdownString; tooltip?: string | IMarkdownString;
position: IPosition; position: IPosition;
kind: InlayHintKind; kind: InlayHintKind;
whitespaceBefore?: boolean; paddingLeft?: boolean;
whitespaceAfter?: boolean; paddingRight?: boolean;
} }
export interface InlayHintList { export interface InlayHintList {

View file

@ -1356,6 +1356,44 @@ declare namespace monaco.editor {
id: string; id: string;
} }
/**
* A single edit operation, that acts as a simple replace.
* i.e. Replace text at `range` with `text` in model.
*/
export interface ISingleEditOperation {
/**
* The range to replace. This can be empty to emulate a simple insert.
*/
range: IRange;
/**
* The text to replace with. This can be null to emulate a simple delete.
*/
text: string | null;
/**
* This indicates that this operation has "insert" semantics.
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
*/
forceMoveMarkers?: boolean;
}
/**
* Word inside a model.
*/
export interface IWordAtPosition {
/**
* The word.
*/
readonly word: string;
/**
* The column where the word starts.
*/
readonly startColumn: number;
/**
* The column where the word ends.
*/
readonly endColumn: number;
}
/** /**
* Vertical Lane in the overview ruler of the editor. * Vertical Lane in the overview ruler of the editor.
*/ */
@ -1511,6 +1549,18 @@ declare namespace monaco.editor {
* The data can be read when injected texts at a given position are queried. * The data can be read when injected texts at a given position are queried.
*/ */
readonly attachedData?: unknown; readonly attachedData?: unknown;
/**
* Configures cursor stops around injected text.
* Defaults to {@link InjectedTextCursorStops.Both}.
*/
readonly cursorStops?: InjectedTextCursorStops | null;
}
export enum InjectedTextCursorStops {
Both = 0,
Right = 1,
Left = 2,
None = 3
} }
/** /**
@ -1549,24 +1599,6 @@ declare namespace monaco.editor {
readonly options: IModelDecorationOptions; readonly options: IModelDecorationOptions;
} }
/**
* Word inside a model.
*/
export interface IWordAtPosition {
/**
* The word.
*/
readonly word: string;
/**
* The column where the word starts.
*/
readonly startColumn: number;
/**
* The column where the word ends.
*/
readonly endColumn: number;
}
/** /**
* End of line character preference. * End of line character preference.
*/ */
@ -1613,26 +1645,6 @@ declare namespace monaco.editor {
CRLF = 1 CRLF = 1
} }
/**
* A single edit operation, that acts as a simple replace.
* i.e. Replace text at `range` with `text` in model.
*/
export interface ISingleEditOperation {
/**
* The range to replace. This can be empty to emulate a simple insert.
*/
range: IRange;
/**
* The text to replace with. This can be null to emulate a simple delete.
*/
text: string | null;
/**
* This indicates that this operation has "insert" semantics.
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
*/
forceMoveMarkers?: boolean;
}
/** /**
* A single edit operation, that has an identifier. * A single edit operation, that has an identifier.
*/ */
@ -2082,6 +2094,37 @@ declare namespace monaco.editor {
isAttachedToEditor(): boolean; isAttachedToEditor(): boolean;
} }
/**
* A change
*/
export interface IChange {
readonly originalStartLineNumber: number;
readonly originalEndLineNumber: number;
readonly modifiedStartLineNumber: number;
readonly modifiedEndLineNumber: number;
}
/**
* A character level change.
*/
export interface ICharChange extends IChange {
readonly originalStartColumn: number;
readonly originalEndColumn: number;
readonly modifiedStartColumn: number;
readonly modifiedEndColumn: number;
}
/**
* A line change
*/
export interface ILineChange extends IChange {
readonly charChanges: ICharChange[] | undefined;
}
export interface IDimension {
width: number;
height: number;
}
/** /**
* A builder and helper for edit operations for a command. * A builder and helper for edit operations for a command.
*/ */
@ -2174,38 +2217,6 @@ declare namespace monaco.editor {
readonly newModelUrl: Uri | null; readonly newModelUrl: Uri | null;
} }
export interface IDimension {
width: number;
height: number;
}
/**
* A change
*/
export interface IChange {
readonly originalStartLineNumber: number;
readonly originalEndLineNumber: number;
readonly modifiedStartLineNumber: number;
readonly modifiedEndLineNumber: number;
}
/**
* A character level change.
*/
export interface ICharChange extends IChange {
readonly originalStartColumn: number;
readonly originalEndColumn: number;
readonly modifiedStartColumn: number;
readonly modifiedEndColumn: number;
}
/**
* A line change
*/
export interface ILineChange extends IChange {
readonly charChanges: ICharChange[] | undefined;
}
export interface IContentSizeChangedEvent { export interface IContentSizeChangedEvent {
readonly contentWidth: number; readonly contentWidth: number;
readonly contentHeight: number; readonly contentHeight: number;
@ -3220,6 +3231,11 @@ declare namespace monaco.editor {
* Defaults to true. * Defaults to true.
*/ */
foldingImportsByDefault?: boolean; foldingImportsByDefault?: boolean;
/**
* Maximum number of foldable regions.
* Defaults to 5000.
*/
foldingMaximumRegions?: number;
/** /**
* 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'.
@ -4185,97 +4201,98 @@ declare namespace monaco.editor {
foldingStrategy = 38, foldingStrategy = 38,
foldingHighlight = 39, foldingHighlight = 39,
foldingImportsByDefault = 40, foldingImportsByDefault = 40,
unfoldOnClickAfterEndOfLine = 41, foldingMaximumRegions = 41,
fontFamily = 42, unfoldOnClickAfterEndOfLine = 42,
fontInfo = 43, fontFamily = 43,
fontLigatures = 44, fontInfo = 44,
fontSize = 45, fontLigatures = 45,
fontWeight = 46, fontSize = 46,
formatOnPaste = 47, fontWeight = 47,
formatOnType = 48, formatOnPaste = 48,
glyphMargin = 49, formatOnType = 49,
gotoLocation = 50, glyphMargin = 50,
hideCursorInOverviewRuler = 51, gotoLocation = 51,
hover = 52, hideCursorInOverviewRuler = 52,
inDiffEditor = 53, hover = 53,
inlineSuggest = 54, inDiffEditor = 54,
letterSpacing = 55, inlineSuggest = 55,
lightbulb = 56, letterSpacing = 56,
lineDecorationsWidth = 57, lightbulb = 57,
lineHeight = 58, lineDecorationsWidth = 58,
lineNumbers = 59, lineHeight = 59,
lineNumbersMinChars = 60, lineNumbers = 60,
linkedEditing = 61, lineNumbersMinChars = 61,
links = 62, linkedEditing = 62,
matchBrackets = 63, links = 63,
minimap = 64, matchBrackets = 64,
mouseStyle = 65, minimap = 65,
mouseWheelScrollSensitivity = 66, mouseStyle = 66,
mouseWheelZoom = 67, mouseWheelScrollSensitivity = 67,
multiCursorMergeOverlapping = 68, mouseWheelZoom = 68,
multiCursorModifier = 69, multiCursorMergeOverlapping = 69,
multiCursorPaste = 70, multiCursorModifier = 70,
occurrencesHighlight = 71, multiCursorPaste = 71,
overviewRulerBorder = 72, occurrencesHighlight = 72,
overviewRulerLanes = 73, overviewRulerBorder = 73,
padding = 74, overviewRulerLanes = 74,
parameterHints = 75, padding = 75,
peekWidgetDefaultFocus = 76, parameterHints = 76,
definitionLinkOpensInPeek = 77, peekWidgetDefaultFocus = 77,
quickSuggestions = 78, definitionLinkOpensInPeek = 78,
quickSuggestionsDelay = 79, quickSuggestions = 79,
readOnly = 80, quickSuggestionsDelay = 80,
renameOnType = 81, readOnly = 81,
renderControlCharacters = 82, renameOnType = 82,
renderFinalNewline = 83, renderControlCharacters = 83,
renderLineHighlight = 84, renderFinalNewline = 84,
renderLineHighlightOnlyWhenFocus = 85, renderLineHighlight = 85,
renderValidationDecorations = 86, renderLineHighlightOnlyWhenFocus = 86,
renderWhitespace = 87, renderValidationDecorations = 87,
revealHorizontalRightPadding = 88, renderWhitespace = 88,
roundedSelection = 89, revealHorizontalRightPadding = 89,
rulers = 90, roundedSelection = 90,
scrollbar = 91, rulers = 91,
scrollBeyondLastColumn = 92, scrollbar = 92,
scrollBeyondLastLine = 93, scrollBeyondLastColumn = 93,
scrollPredominantAxis = 94, scrollBeyondLastLine = 94,
selectionClipboard = 95, scrollPredominantAxis = 95,
selectionHighlight = 96, selectionClipboard = 96,
selectOnLineNumbers = 97, selectionHighlight = 97,
showFoldingControls = 98, selectOnLineNumbers = 98,
showUnused = 99, showFoldingControls = 99,
snippetSuggestions = 100, showUnused = 100,
smartSelect = 101, snippetSuggestions = 101,
smoothScrolling = 102, smartSelect = 102,
stickyTabStops = 103, smoothScrolling = 103,
stopRenderingLineAfter = 104, stickyTabStops = 104,
suggest = 105, stopRenderingLineAfter = 105,
suggestFontSize = 106, suggest = 106,
suggestLineHeight = 107, suggestFontSize = 107,
suggestOnTriggerCharacters = 108, suggestLineHeight = 108,
suggestSelection = 109, suggestOnTriggerCharacters = 109,
tabCompletion = 110, suggestSelection = 110,
tabIndex = 111, tabCompletion = 111,
unicodeHighlighting = 112, tabIndex = 112,
unusualLineTerminators = 113, unicodeHighlighting = 113,
useShadowDOM = 114, unusualLineTerminators = 114,
useTabStops = 115, useShadowDOM = 115,
wordSeparators = 116, useTabStops = 116,
wordWrap = 117, wordSeparators = 117,
wordWrapBreakAfterCharacters = 118, wordWrap = 118,
wordWrapBreakBeforeCharacters = 119, wordWrapBreakAfterCharacters = 119,
wordWrapColumn = 120, wordWrapBreakBeforeCharacters = 120,
wordWrapOverride1 = 121, wordWrapColumn = 121,
wordWrapOverride2 = 122, wordWrapOverride1 = 122,
wrappingIndent = 123, wordWrapOverride2 = 123,
wrappingStrategy = 124, wrappingIndent = 124,
showDeprecated = 125, wrappingStrategy = 125,
inlayHints = 126, showDeprecated = 126,
editorClassName = 127, inlayHints = 127,
pixelRatio = 128, editorClassName = 128,
tabFocusMode = 129, pixelRatio = 129,
layoutInfo = 130, tabFocusMode = 130,
wrappingInfo = 131 layoutInfo = 131,
wrappingInfo = 132
} }
export const EditorOptions: { export const EditorOptions: {
@ -4321,6 +4338,7 @@ declare namespace monaco.editor {
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>; foldingImportsByDefault: IEditorOption<EditorOption.foldingImportsByDefault, boolean>;
foldingMaximumRegions: IEditorOption<EditorOption.foldingMaximumRegions, number>;
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>;
@ -4423,6 +4441,18 @@ declare namespace monaco.editor {
export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>; export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>;
export interface IEditorConstructionOptions extends IEditorOptions {
/**
* The initial editor dimension (to avoid measuring the container).
*/
dimension?: IDimension;
/**
* Place overflow widgets inside an external DOM node.
* Defaults to an internal DOM node.
*/
overflowWidgetsDomNode?: HTMLElement;
}
/** /**
* A view zone is a full horizontal rectangle that 'pushes' text down. * A view zone is a full horizontal rectangle that 'pushes' text down.
* The editor reserves space for view zones when rendering. * The editor reserves space for view zones when rendering.
@ -4823,18 +4853,6 @@ declare namespace monaco.editor {
readonly languageId: string | null; readonly languageId: string | null;
} }
export interface IEditorConstructionOptions extends IEditorOptions {
/**
* The initial editor dimension (to avoid measuring the container).
*/
dimension?: IDimension;
/**
* Place overflow widgets inside an external DOM node.
* Defaults to an internal DOM node.
*/
overflowWidgetsDomNode?: HTMLElement;
}
export interface IDiffEditorConstructionOptions extends IDiffEditorOptions { export interface IDiffEditorConstructionOptions extends IDiffEditorOptions {
/** /**
* The initial editor dimension (to avoid measuring the container). * The initial editor dimension (to avoid measuring the container).
@ -5320,7 +5338,6 @@ declare namespace monaco.editor {
export class BareFontInfo { export class BareFontInfo {
readonly _bareFontInfoBrand: void; readonly _bareFontInfoBrand: void;
readonly zoomLevel: number;
readonly pixelRatio: number; readonly pixelRatio: number;
readonly fontFamily: string; readonly fontFamily: string;
readonly fontWeight: string; readonly fontWeight: string;
@ -6851,8 +6868,9 @@ declare namespace monaco.languages {
export interface InlayHintLabelPart { export interface InlayHintLabelPart {
label: string; label: string;
collapsible?: boolean; tooltip?: string | IMarkdownString;
action?: Command | Location; command?: Command;
location?: Location;
} }
export interface InlayHint { export interface InlayHint {
@ -6860,8 +6878,8 @@ declare namespace monaco.languages {
tooltip?: string | IMarkdownString; tooltip?: string | IMarkdownString;
position: IPosition; position: IPosition;
kind: InlayHintKind; kind: InlayHintKind;
whitespaceBefore?: boolean; paddingLeft?: boolean;
whitespaceAfter?: boolean; paddingRight?: boolean;
} }
export interface InlayHintList { export interface InlayHintList {