@codingame/monaco-vscode-api 6.0.2 → 6.0.3

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/api.js CHANGED
@@ -29,7 +29,7 @@ function createProxy(key) {
29
29
  });
30
30
  }
31
31
  const api = {
32
- version: "1.90.1",
32
+ version: "1.90.2",
33
33
  tasks: createProxy('tasks'),
34
34
  notebooks: createProxy('notebooks'),
35
35
  scm: createProxy('scm'),
@@ -580,8 +580,8 @@ registerSingleton(IPathService, class PathService {
580
580
  registerSingleton(IProductService, class ProductService {
581
581
  constructor() {
582
582
  this._serviceBrand = undefined;
583
- this.version = "1.90.1";
584
- this.commit = "611f9bfce64f25108829dd295f54a6894e87339d";
583
+ this.version = "1.90.2";
584
+ this.commit = "5437499feb04f7a586f677b155b039bc2b3669eb";
585
585
  this.quality = 'oss';
586
586
  this.nameShort = 'Code - OSS Dev';
587
587
  this.nameLong = 'Code - OSS Dev';
package/monaco.d.ts CHANGED
@@ -19,7 +19,7 @@ import { KeybindingResolver } from './vscode/src/vs/platform/keybinding/common/k
19
19
  import { ResolvedKeybindingItem } from './vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js';
20
20
  import { Event } from './vscode/src/vs/base/common/event.js';
21
21
  import { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/keybinding.service.js';
22
- export { EditorAction, EditorCommand, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
22
+ export { EditorAction, EditorCommand, EditorContributionInstantiation, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
23
23
  export { IDiffEditorContribution, IEditorContribution } from './vscode/src/vs/editor/common/editorCommon.js';
24
24
 
25
25
  declare function writeFile(uri: URI, content: string): Promise<void>;
package/monaco.js CHANGED
@@ -45,7 +45,7 @@ import { ILogService } from './vscode/src/vs/platform/log/common/log.service.js'
45
45
  import { IQuickInputService } from './vscode/src/vs/platform/quickinput/common/quickInput.service.js';
46
46
  import { createInjectedClass } from './tools/injection.js';
47
47
  import { getService } from './services.js';
48
- export { EditorAction, EditorCommand, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
48
+ export { EditorAction, EditorCommand, EditorContributionInstantiation, registerDiffEditorContribution, registerEditorAction, registerEditorContribution, registerMultiEditorAction } from './vscode/src/vs/editor/browser/editorExtensions.js';
49
49
  function computeConfiguration(configuration, overrides) {
50
50
  const editorConfiguration = isObject(configuration.editor) ? deepClone(configuration.editor) : Object.create(null);
51
51
  Object.assign(editorConfiguration, deepClone(overrides));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "VSCode public API plugged on the monaco editor",
5
5
  "keywords": [],
6
6
  "author": {
@@ -99,12 +99,12 @@
99
99
  "dependencies": {
100
100
  "@vscode/iconv-lite-umd": "0.7.0",
101
101
  "jschardet": "3.0.0",
102
- "@codingame/monaco-vscode-files-service-override": "6.0.2",
103
- "@codingame/monaco-vscode-extensions-service-override": "6.0.2",
104
- "@codingame/monaco-vscode-quickaccess-service-override": "6.0.2",
105
- "@codingame/monaco-vscode-environment-service-override": "6.0.2",
106
- "@codingame/monaco-vscode-layout-service-override": "6.0.2",
107
- "@codingame/monaco-vscode-host-service-override": "6.0.2",
108
- "@codingame/monaco-vscode-base-service-override": "6.0.2"
102
+ "@codingame/monaco-vscode-extensions-service-override": "6.0.3",
103
+ "@codingame/monaco-vscode-files-service-override": "6.0.3",
104
+ "@codingame/monaco-vscode-quickaccess-service-override": "6.0.3",
105
+ "@codingame/monaco-vscode-environment-service-override": "6.0.3",
106
+ "@codingame/monaco-vscode-layout-service-override": "6.0.3",
107
+ "@codingame/monaco-vscode-host-service-override": "6.0.3",
108
+ "@codingame/monaco-vscode-base-service-override": "6.0.3"
109
109
  }
110
110
  }
package/services.js CHANGED
@@ -184,9 +184,9 @@ async function initialize(overrides, container = document.body, configuration =
184
184
  initialize$1(container, configuration, env);
185
185
  const instantiationService = StandaloneServices.initialize({
186
186
  [( IProductService.toString())]: mixin({
187
- version: "1.90.1",
187
+ version: "1.90.2",
188
188
  quality: 'stable',
189
- commit: "611f9bfce64f25108829dd295f54a6894e87339d",
189
+ commit: "5437499feb04f7a586f677b155b039bc2b3669eb",
190
190
  nameShort: 'Code - OSS',
191
191
  nameLong: 'Code - OSS',
192
192
  applicationName: 'code-oss',
@@ -4325,6 +4325,10 @@ export namespace editor {
4325
4325
  * Font size of section headers. Defaults to 9.
4326
4326
  */
4327
4327
  sectionHeaderFontSize?: number;
4328
+ /**
4329
+ * Spacing between the section header characters (in CSS px). Defaults to 1.
4330
+ */
4331
+ sectionHeaderLetterSpacing?: number;
4328
4332
  }
4329
4333
 
4330
4334
  /**
@@ -5394,12 +5398,21 @@ export namespace editor {
5394
5398
  * The position preference for the overlay widget.
5395
5399
  */
5396
5400
  preference: OverlayWidgetPositionPreference | IOverlayWidgetPositionCoordinates | null;
5401
+ /**
5402
+ * When set, stacks with other overlay widgets with the same preference,
5403
+ * in an order determined by the ordinal value.
5404
+ */
5405
+ stackOridinal?: number;
5397
5406
  }
5398
5407
 
5399
5408
  /**
5400
5409
  * An overlay widgets renders on top of the text.
5401
5410
  */
5402
5411
  export interface IOverlayWidget {
5412
+ /**
5413
+ * Event fired when the widget layout changes.
5414
+ */
5415
+ onDidLayout?: IEvent<void>;
5403
5416
  /**
5404
5417
  * Render this overlay widget in a location where it could overflow the editor's view dom node.
5405
5418
  */
@@ -5825,6 +5838,18 @@ export namespace editor {
5825
5838
  * @event
5826
5839
  */
5827
5840
  readonly onDidChangeHiddenAreas: IEvent<void>;
5841
+ /**
5842
+ * Some editor operations fire multiple events at once.
5843
+ * To allow users to react to multiple events fired by a single operation,
5844
+ * the editor fires a begin update before the operation and an end update after the operation.
5845
+ * Whenever the editor fires `onBeginUpdate`, it will also fire `onEndUpdate` once the operation finishes.
5846
+ * Note that not all operations are bracketed by `onBeginUpdate` and `onEndUpdate`.
5847
+ */
5848
+ readonly onBeginUpdate: IEvent<void>;
5849
+ /**
5850
+ * Fires after the editor completes the operation it fired `onBeginUpdate` for.
5851
+ */
5852
+ readonly onEndUpdate: IEvent<void>;
5828
5853
  /**
5829
5854
  * Saves current view state of the editor in a serializable object.
5830
5855
  */
@@ -6871,9 +6896,9 @@ export namespace languages {
6871
6896
 
6872
6897
  export interface HoverVerbosityRequest<THover = Hover> {
6873
6898
  /**
6874
- * Whether to increase or decrease the hover's verbosity
6899
+ * The delta by which to increase/decrease the hover verbosity level
6875
6900
  */
6876
- action: HoverVerbosityAction;
6901
+ verbosityDelta: number;
6877
6902
  /**
6878
6903
  * The previous hover for the same position
6879
6904
  */
@@ -7402,7 +7427,7 @@ export namespace languages {
7402
7427
  * A provider that can provide document highlights across multiple documents.
7403
7428
  */
7404
7429
  export interface MultiDocumentHighlightProvider {
7405
- selector: LanguageFilter;
7430
+ readonly selector: LanguageSelector;
7406
7431
  /**
7407
7432
  * Provide a Map of Uri --> document highlights, like all occurrences of a variable or
7408
7433
  * all exit-points of a function.
@@ -9033,9 +9058,10 @@ export namespace languages.typescript {
9033
9058
  length: number | undefined;
9034
9059
  messageText: string | DiagnosticMessageChain;
9035
9060
  }
9036
- interface EmitOutput {
9061
+ export interface EmitOutput {
9037
9062
  outputFiles: OutputFile[];
9038
9063
  emitSkipped: boolean;
9064
+ diagnostics?: Diagnostic[];
9039
9065
  }
9040
9066
  interface OutputFile {
9041
9067
  name: string;
@@ -9265,7 +9291,7 @@ export namespace languages.typescript {
9265
9291
  * Get transpiled output for the given file.
9266
9292
  * @returns `typescript.EmitOutput`
9267
9293
  */
9268
- getEmitOutput(fileName: string): Promise<EmitOutput>;
9294
+ getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): Promise<EmitOutput>;
9269
9295
  /**
9270
9296
  * Get possible code fixes at the given position in the file.
9271
9297
  * @param formatOptions `typescript.FormatCodeOptions`
@@ -223,7 +223,7 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
223
223
  doGetPicks(filter, options, disposables, token) {
224
224
  const configuration = { ...this.configuration, includeSymbols: options.includeSymbols ?? this.configuration.includeSymbols };
225
225
  const query = prepareQuery(filter);
226
- if (options.enableEditorSymbolSearch && options.includeSymbols) {
226
+ if (options.enableEditorSymbolSearch && options.includeSymbols !== false) {
227
227
  const editorSymbolPicks = this.getEditorSymbolPicks(query, disposables, token);
228
228
  if (editorSymbolPicks) {
229
229
  return editorSymbolPicks;