mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 08:10:11 +01:00
Prepares 0.26.0 release.
This commit is contained in:
parent
5bb59bb0b1
commit
97afb2259b
6 changed files with 156 additions and 59 deletions
|
|
@ -1448,6 +1448,24 @@ declare namespace monaco.editor {
|
|||
* If set, the decoration will be rendered after the text with this CSS class name.
|
||||
*/
|
||||
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).
|
||||
*/
|
||||
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).
|
||||
*/
|
||||
|
|
@ -3161,7 +3184,7 @@ declare namespace monaco.editor {
|
|||
matchBrackets?: 'never' | 'near' | 'always';
|
||||
/**
|
||||
* Enable rendering of whitespace.
|
||||
* Defaults to none.
|
||||
* Defaults to 'selection'.
|
||||
*/
|
||||
renderWhitespace?: 'none' | 'boundary' | 'selection' | 'trailing' | 'all';
|
||||
/**
|
||||
|
|
@ -3738,6 +3761,7 @@ declare namespace monaco.editor {
|
|||
/**
|
||||
* The size of arrows (if displayed).
|
||||
* Defaults to 11.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
arrowSize?: number;
|
||||
/**
|
||||
|
|
@ -3753,16 +3777,19 @@ declare namespace monaco.editor {
|
|||
/**
|
||||
* Cast horizontal and vertical shadows when the content is scrolled.
|
||||
* Defaults to true.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
useShadows?: boolean;
|
||||
/**
|
||||
* Render arrows at the top and bottom of the vertical scrollbar.
|
||||
* Defaults to false.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
verticalHasArrows?: boolean;
|
||||
/**
|
||||
* Render arrows at the left and right of the horizontal scrollbar.
|
||||
* Defaults to false.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
horizontalHasArrows?: boolean;
|
||||
/**
|
||||
|
|
@ -3773,6 +3800,7 @@ declare namespace monaco.editor {
|
|||
/**
|
||||
* Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
|
||||
* Defaults to true.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
alwaysConsumeMouseWheel?: boolean;
|
||||
/**
|
||||
|
|
@ -3788,11 +3816,13 @@ declare namespace monaco.editor {
|
|||
/**
|
||||
* Width in pixels for the vertical slider.
|
||||
* Defaults to `verticalScrollbarSize`.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
verticalSliderSize?: number;
|
||||
/**
|
||||
* Height in pixels for the horizontal slider.
|
||||
* Defaults to `horizontalScrollbarSize`.
|
||||
* **NOTE**: This option cannot be updated using `updateOptions()`
|
||||
*/
|
||||
horizontalSliderSize?: number;
|
||||
/**
|
||||
|
|
@ -3823,6 +3853,13 @@ declare namespace monaco.editor {
|
|||
* Enable or disable the rendering of automatic inline completions.
|
||||
*/
|
||||
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>>;
|
||||
|
|
@ -3863,6 +3900,10 @@ declare namespace monaco.editor {
|
|||
* Enable or disable the rendering of the suggestion preview.
|
||||
*/
|
||||
preview?: boolean;
|
||||
/**
|
||||
* Configures the mode of the preview. Defaults to `subwordDiff`.
|
||||
*/
|
||||
previewMode?: 'prefix' | 'subwordDiff';
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Register an inlay hints provider.
|
||||
*/
|
||||
export function registerInlayHintsProvider(languageId: string, provider: InlayHintsProvider): IDisposable;
|
||||
|
||||
/**
|
||||
* Contains additional diagnostic information about the context in which
|
||||
* a [code action](#CodeActionProvider.provideCodeActions) is run.
|
||||
|
|
@ -5667,22 +5713,9 @@ declare namespace monaco.languages {
|
|||
}
|
||||
|
||||
export interface CompletionItemLabel {
|
||||
/**
|
||||
* The function or variable. Rendered leftmost.
|
||||
*/
|
||||
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;
|
||||
label: string;
|
||||
detail?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export enum CompletionItemTag {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue