@codingame/monaco-vscode-editor-api 26.2.1 → 27.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": "26.2.1",
3
+ "version": "27.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": "26.2.1"
18
+ "@codingame/monaco-vscode-api": "27.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.
@@ -4411,7 +4422,7 @@ export namespace editor {
4411
4422
  */
4412
4423
  cycle?: boolean;
4413
4424
  }
4414
- export type QuickSuggestionsValue = "on" | "inline" | "off";
4425
+ export type QuickSuggestionsValue = "on" | "inline" | "off" | "offWhenInlineCompletions";
4415
4426
  /**
4416
4427
  * Configuration options for quick suggestions
4417
4428
  */
@@ -5039,7 +5050,8 @@ export namespace editor {
5039
5050
  inlineCompletionsAccessibilityVerbose = 169,
5040
5051
  effectiveEditContext = 170,
5041
5052
  scrollOnMiddleClick = 171,
5042
- effectiveAllowVariableFonts = 172
5053
+ effectiveAllowVariableFonts = 172,
5054
+ doubleClickSelectsBlock = 173
5043
5055
  }
5044
5056
  export const EditorOptions: {
5045
5057
  acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
@@ -5087,6 +5099,7 @@ export namespace editor {
5087
5099
  disableLayerHinting: IEditorOption<EditorOption.disableLayerHinting, boolean>;
5088
5100
  disableMonospaceOptimizations: IEditorOption<EditorOption.disableMonospaceOptimizations, boolean>;
5089
5101
  domReadOnly: IEditorOption<EditorOption.domReadOnly, boolean>;
5102
+ doubleClickSelectsBlock: IEditorOption<EditorOption.doubleClickSelectsBlock, boolean>;
5090
5103
  dragAndDrop: IEditorOption<EditorOption.dragAndDrop, boolean>;
5091
5104
  emptySelectionClipboard: IEditorOption<EditorOption.emptySelectionClipboard, boolean>;
5092
5105
  dropIntoEditor: IEditorOption<EditorOption.dropIntoEditor, Readonly<Required<IDropIntoEditorOptions>>>;
@@ -5176,7 +5189,7 @@ export namespace editor {
5176
5189
  showUnused: IEditorOption<EditorOption.showUnused, boolean>;
5177
5190
  showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>;
5178
5191
  inlayHints: IEditorOption<EditorOption.inlayHints, Readonly<Required<IEditorInlayHintsOptions>>>;
5179
- snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "top" | "bottom" | "inline">;
5192
+ snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "inline" | "top" | "bottom">;
5180
5193
  smartSelect: IEditorOption<EditorOption.smartSelect, Readonly<Required<ISmartSelectOptions>>>;
5181
5194
  smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
5182
5195
  stopRenderingLineAfter: IEditorOption<EditorOption.stopRenderingLineAfter, number>;
@@ -7205,6 +7218,16 @@ export namespace languages {
7205
7218
  name: string;
7206
7219
  id: string;
7207
7220
  }
7221
+ export interface IInlineCompletionProviderOption {
7222
+ readonly id: string;
7223
+ readonly label: string;
7224
+ readonly values: readonly IInlineCompletionProviderOptionValue[];
7225
+ readonly currentValueId: string;
7226
+ }
7227
+ export interface IInlineCompletionProviderOptionValue {
7228
+ readonly id: string;
7229
+ readonly label: string;
7230
+ }
7208
7231
  export class SelectedSuggestionInfo {
7209
7232
  readonly range: IRange;
7210
7233
  readonly text: string;
@@ -7350,6 +7373,9 @@ export namespace languages {
7350
7373
  modelInfo?: IInlineCompletionModelInfo;
7351
7374
  onDidModelInfoChange?: IEvent<void>;
7352
7375
  setModelId?(modelId: string): Promise<void>;
7376
+ providerOptions?: readonly IInlineCompletionProviderOption[];
7377
+ onDidProviderOptionsChange?: IEvent<void>;
7378
+ setProviderOption?(optionId: string, valueId: string): Promise<void>;
7353
7379
  toString?(): string;
7354
7380
  }
7355
7381
  export type InlineCompletionsDisposeReason = {