@codingame/monaco-vscode-editor-api 26.2.2 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - monaco-editor compatible api",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.0.0"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": "./esm/vs/editor/editor.api.js",
|
|
@@ -2211,6 +2211,12 @@ export namespace editor {
|
|
|
2211
2211
|
* @param ownerId If set, it will ignore decorations belonging to other owners.
|
|
2212
2212
|
*/
|
|
2213
2213
|
getCustomLineHeightsDecorations(ownerId?: number): IModelDecoration[];
|
|
2214
|
+
/**
|
|
2215
|
+
* Gets all the decorations that contain custom line heights.
|
|
2216
|
+
* @param range The range to search in
|
|
2217
|
+
* @param ownerId If set, it will ignore decorations belonging to other owners.
|
|
2218
|
+
*/
|
|
2219
|
+
getCustomLineHeightsDecorationsInRange(range: Range, ownerId?: number): IModelDecoration[];
|
|
2214
2220
|
/**
|
|
2215
2221
|
* Normalize a string containing whitespace according to indentation rules (converts to spaces or to tabs).
|
|
2216
2222
|
*/
|
|
@@ -3494,7 +3500,7 @@ export namespace editor {
|
|
|
3494
3500
|
* Enable quick suggestions (shadow suggestions)
|
|
3495
3501
|
* Defaults to true.
|
|
3496
3502
|
*/
|
|
3497
|
-
quickSuggestions?: boolean | IQuickSuggestionsOptions;
|
|
3503
|
+
quickSuggestions?: boolean | QuickSuggestionsValue | IQuickSuggestionsOptions;
|
|
3498
3504
|
/**
|
|
3499
3505
|
* Quick suggestions show delay (in ms)
|
|
3500
3506
|
* Defaults to 10 (ms)
|
|
@@ -3564,6 +3570,11 @@ export namespace editor {
|
|
|
3564
3570
|
* Defaults to false.
|
|
3565
3571
|
*/
|
|
3566
3572
|
formatOnPaste?: boolean;
|
|
3573
|
+
/**
|
|
3574
|
+
* Controls whether double-clicking next to a bracket or quote selects the content inside.
|
|
3575
|
+
* Defaults to true.
|
|
3576
|
+
*/
|
|
3577
|
+
doubleClickSelectsBlock?: boolean;
|
|
3567
3578
|
/**
|
|
3568
3579
|
* Controls if the editor should allow to move selections via drag and drop.
|
|
3569
3580
|
* Defaults to false.
|
|
@@ -4132,6 +4143,11 @@ export namespace editor {
|
|
|
4132
4143
|
* Defaults to false.
|
|
4133
4144
|
*/
|
|
4134
4145
|
above?: boolean;
|
|
4146
|
+
/**
|
|
4147
|
+
* Should long line warning hovers be shown (tokenization skipped, rendering paused)?
|
|
4148
|
+
* Defaults to true.
|
|
4149
|
+
*/
|
|
4150
|
+
showLongLineWarning?: boolean;
|
|
4135
4151
|
}
|
|
4136
4152
|
/**
|
|
4137
4153
|
* A description for the overview ruler position.
|
|
@@ -4411,7 +4427,7 @@ export namespace editor {
|
|
|
4411
4427
|
*/
|
|
4412
4428
|
cycle?: boolean;
|
|
4413
4429
|
}
|
|
4414
|
-
export type QuickSuggestionsValue = "on" | "inline" | "off";
|
|
4430
|
+
export type QuickSuggestionsValue = "on" | "inline" | "off" | "offWhenInlineCompletions";
|
|
4415
4431
|
/**
|
|
4416
4432
|
* Configuration options for quick suggestions
|
|
4417
4433
|
*/
|
|
@@ -5039,7 +5055,8 @@ export namespace editor {
|
|
|
5039
5055
|
inlineCompletionsAccessibilityVerbose = 169,
|
|
5040
5056
|
effectiveEditContext = 170,
|
|
5041
5057
|
scrollOnMiddleClick = 171,
|
|
5042
|
-
effectiveAllowVariableFonts = 172
|
|
5058
|
+
effectiveAllowVariableFonts = 172,
|
|
5059
|
+
doubleClickSelectsBlock = 173
|
|
5043
5060
|
}
|
|
5044
5061
|
export const EditorOptions: {
|
|
5045
5062
|
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
|
|
@@ -5087,6 +5104,7 @@ export namespace editor {
|
|
|
5087
5104
|
disableLayerHinting: IEditorOption<EditorOption.disableLayerHinting, boolean>;
|
|
5088
5105
|
disableMonospaceOptimizations: IEditorOption<EditorOption.disableMonospaceOptimizations, boolean>;
|
|
5089
5106
|
domReadOnly: IEditorOption<EditorOption.domReadOnly, boolean>;
|
|
5107
|
+
doubleClickSelectsBlock: IEditorOption<EditorOption.doubleClickSelectsBlock, boolean>;
|
|
5090
5108
|
dragAndDrop: IEditorOption<EditorOption.dragAndDrop, boolean>;
|
|
5091
5109
|
emptySelectionClipboard: IEditorOption<EditorOption.emptySelectionClipboard, boolean>;
|
|
5092
5110
|
dropIntoEditor: IEditorOption<EditorOption.dropIntoEditor, Readonly<Required<IDropIntoEditorOptions>>>;
|
|
@@ -5176,7 +5194,7 @@ export namespace editor {
|
|
|
5176
5194
|
showUnused: IEditorOption<EditorOption.showUnused, boolean>;
|
|
5177
5195
|
showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>;
|
|
5178
5196
|
inlayHints: IEditorOption<EditorOption.inlayHints, Readonly<Required<IEditorInlayHintsOptions>>>;
|
|
5179
|
-
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "
|
|
5197
|
+
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "inline" | "top" | "bottom">;
|
|
5180
5198
|
smartSelect: IEditorOption<EditorOption.smartSelect, Readonly<Required<ISmartSelectOptions>>>;
|
|
5181
5199
|
smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
|
|
5182
5200
|
stopRenderingLineAfter: IEditorOption<EditorOption.stopRenderingLineAfter, number>;
|
|
@@ -7205,6 +7223,16 @@ export namespace languages {
|
|
|
7205
7223
|
name: string;
|
|
7206
7224
|
id: string;
|
|
7207
7225
|
}
|
|
7226
|
+
export interface IInlineCompletionProviderOption {
|
|
7227
|
+
readonly id: string;
|
|
7228
|
+
readonly label: string;
|
|
7229
|
+
readonly values: readonly IInlineCompletionProviderOptionValue[];
|
|
7230
|
+
readonly currentValueId: string;
|
|
7231
|
+
}
|
|
7232
|
+
export interface IInlineCompletionProviderOptionValue {
|
|
7233
|
+
readonly id: string;
|
|
7234
|
+
readonly label: string;
|
|
7235
|
+
}
|
|
7208
7236
|
export class SelectedSuggestionInfo {
|
|
7209
7237
|
readonly range: IRange;
|
|
7210
7238
|
readonly text: string;
|
|
@@ -7350,6 +7378,9 @@ export namespace languages {
|
|
|
7350
7378
|
modelInfo?: IInlineCompletionModelInfo;
|
|
7351
7379
|
onDidModelInfoChange?: IEvent<void>;
|
|
7352
7380
|
setModelId?(modelId: string): Promise<void>;
|
|
7381
|
+
providerOptions?: readonly IInlineCompletionProviderOption[];
|
|
7382
|
+
onDidProviderOptionsChange?: IEvent<void>;
|
|
7383
|
+
setProviderOption?(optionId: string, valueId: string): Promise<void>;
|
|
7353
7384
|
toString?(): string;
|
|
7354
7385
|
}
|
|
7355
7386
|
export type InlineCompletionsDisposeReason = {
|