@ -1448,6 +1448,24 @@ declare namespace monaco.editor {
* If set , the decoration will be rendered after the text with this CSS class name .
* If set , the decoration will be rendered after the text with this CSS class name .
* /
* /
afterContentClassName? : string | null ;
afterContentClassName? : string | null ;
/ * *
* If set , text will be injected in the view after the range .
* /
after? : InjectedTextOptions | null ;
/ * *
* If set , text will be injected in the view before the range .
* /
before? : InjectedTextOptions | null ;
}
/ * *
* Configures text that is injected into the view without changing the underlying document .
* /
export interface InjectedTextOptions {
/ * *
* Sets the text to inject . Must be a single line .
* /
readonly content : string ;
}
}
/ * *
/ * *
@ -1913,6 +1931,11 @@ declare namespace monaco.editor {
* @param filterOutValidation If set , it will ignore decorations specific to validation ( i . e . warnings , errors ) .
* @param filterOutValidation If set , it will ignore decorations specific to validation ( i . e . warnings , errors ) .
* /
* /
getOverviewRulerDecorations ( ownerId? : number , filterOutValidation? : boolean ) : IModelDecoration [ ] ;
getOverviewRulerDecorations ( ownerId? : number , filterOutValidation? : boolean ) : IModelDecoration [ ] ;
/ * *
* Gets all the decorations that contain injected text .
* @param ownerId If set , it will ignore decorations belonging to other owners .
* /
getInjectedTextDecorations ( ownerId? : number ) : IModelDecoration [ ] ;
/ * *
/ * *
* Normalize a string containing whitespace according to indentation rules ( converts to spaces or to tabs ) .
* Normalize a string containing whitespace according to indentation rules ( converts to spaces or to tabs ) .
* /
* /
@ -3161,7 +3184,7 @@ declare namespace monaco.editor {
matchBrackets ? : 'never' | 'near' | 'always' ;
matchBrackets ? : 'never' | 'near' | 'always' ;
/ * *
/ * *
* Enable rendering of whitespace .
* Enable rendering of whitespace .
* Defaults to none .
* Defaults to 'selection' .
* /
* /
renderWhitespace ? : 'none' | 'boundary' | 'selection' | 'trailing' | 'all' ;
renderWhitespace ? : 'none' | 'boundary' | 'selection' | 'trailing' | 'all' ;
/ * *
/ * *
@ -3738,6 +3761,7 @@ declare namespace monaco.editor {
/ * *
/ * *
* The size of arrows ( if displayed ) .
* The size of arrows ( if displayed ) .
* Defaults to 11 .
* Defaults to 11 .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
arrowSize? : number ;
arrowSize? : number ;
/ * *
/ * *
@ -3753,16 +3777,19 @@ declare namespace monaco.editor {
/ * *
/ * *
* Cast horizontal and vertical shadows when the content is scrolled .
* Cast horizontal and vertical shadows when the content is scrolled .
* Defaults to true .
* Defaults to true .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
useShadows? : boolean ;
useShadows? : boolean ;
/ * *
/ * *
* Render arrows at the top and bottom of the vertical scrollbar .
* Render arrows at the top and bottom of the vertical scrollbar .
* Defaults to false .
* Defaults to false .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
verticalHasArrows? : boolean ;
verticalHasArrows? : boolean ;
/ * *
/ * *
* Render arrows at the left and right of the horizontal scrollbar .
* Render arrows at the left and right of the horizontal scrollbar .
* Defaults to false .
* Defaults to false .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
horizontalHasArrows? : boolean ;
horizontalHasArrows? : boolean ;
/ * *
/ * *
@ -3773,6 +3800,7 @@ declare namespace monaco.editor {
/ * *
/ * *
* Always consume mouse wheel events ( always call preventDefault ( ) and stopPropagation ( ) on the browser events ) .
* Always consume mouse wheel events ( always call preventDefault ( ) and stopPropagation ( ) on the browser events ) .
* Defaults to true .
* Defaults to true .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
alwaysConsumeMouseWheel? : boolean ;
alwaysConsumeMouseWheel? : boolean ;
/ * *
/ * *
@ -3788,11 +3816,13 @@ declare namespace monaco.editor {
/ * *
/ * *
* Width in pixels for the vertical slider .
* Width in pixels for the vertical slider .
* Defaults to ` verticalScrollbarSize ` .
* Defaults to ` verticalScrollbarSize ` .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
verticalSliderSize? : number ;
verticalSliderSize? : number ;
/ * *
/ * *
* Height in pixels for the horizontal slider .
* Height in pixels for the horizontal slider .
* Defaults to ` horizontalScrollbarSize ` .
* Defaults to ` horizontalScrollbarSize ` .
* * * NOTE * * : This option cannot be updated using ` updateOptions() `
* /
* /
horizontalSliderSize? : number ;
horizontalSliderSize? : number ;
/ * *
/ * *
@ -3823,6 +3853,13 @@ declare namespace monaco.editor {
* Enable or disable the rendering of automatic inline completions .
* Enable or disable the rendering of automatic inline completions .
* /
* /
enabled? : boolean ;
enabled? : boolean ;
/ * *
* Configures the mode .
* 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 .
* Defaults to ` prefix ` .
* /
mode ? : 'prefix' | 'subwordDiff' ;
}
}
export type InternalInlineSuggestOptions = Readonly < Required < IInlineSuggestOptions > > ;
export type InternalInlineSuggestOptions = Readonly < Required < IInlineSuggestOptions > > ;
@ -3863,6 +3900,10 @@ declare namespace monaco.editor {
* Enable or disable the rendering of the suggestion preview .
* Enable or disable the rendering of the suggestion preview .
* /
* /
preview? : boolean ;
preview? : boolean ;
/ * *
* Configures the mode of the preview . Defaults to ` subwordDiff ` .
* /
previewMode ? : 'prefix' | 'subwordDiff' ;
/ * *
/ * *
* Show details inline with the label . Defaults to true .
* Show details inline with the label . Defaults to true .
* /
* /
@ -5343,6 +5384,11 @@ declare namespace monaco.languages {
* /
* /
export function registerInlineCompletionsProvider ( languageId : string , provider : InlineCompletionsProvider ) : IDisposable ;
export function registerInlineCompletionsProvider ( languageId : string , provider : InlineCompletionsProvider ) : IDisposable ;
/ * *
* Register an inlay hints provider .
* /
export function registerInlayHintsProvider ( languageId : string , provider : InlayHintsProvider ) : IDisposable ;
/ * *
/ * *
* Contains additional diagnostic information about the context in which
* Contains additional diagnostic information about the context in which
* a [ code action ] ( # CodeActionProvider . provideCodeActions ) is run .
* a [ code action ] ( # CodeActionProvider . provideCodeActions ) is run .
@ -5667,22 +5713,9 @@ declare namespace monaco.languages {
}
}
export interface CompletionItemLabel {
export interface CompletionItemLabel {
/ * *
label : string ;
* The function or variable . Rendered leftmost .
detail? : string ;
* /
description? : string ;
name : string ;
/ * *
* The parameters without the return type . Render after ` name ` .
* /
parameters? : string ;
/ * *
* The fully qualified name , like package name or file path . Rendered after ` signature ` .
* /
qualifier? : string ;
/ * *
* The return - type of a function or type of a property / variable . Rendered rightmost .
* /
type ? : string ;
}
}
export enum CompletionItemTag {
export enum CompletionItemTag {