@ng-util/monaco-editor 14.0.0 → 15.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.
@@ -124,9 +124,9 @@ export class NuMonacoEditorBase {
124
124
  }
125
125
  }
126
126
  }
127
- /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
128
- /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
127
+ /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
128
+ /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
130
130
  type: Component,
131
131
  args: [{
132
132
  selector: 'nu-monaco-base',
@@ -25,9 +25,9 @@ export class NuMonacoEditorDiffComponent extends NuMonacoEditorBase {
25
25
  this.notifyEvent('init');
26
26
  }
27
27
  }
28
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
29
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
28
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
29
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
31
31
  type: Component,
32
32
  args: [{
33
33
  selector: 'nu-monaco-diff-editor',
@@ -67,15 +67,15 @@ export class NuMonacoEditorComponent extends NuMonacoEditorBase {
67
67
  this.setDisabled();
68
68
  }
69
69
  }
70
- /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
71
- /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
70
+ /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
71
+ /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
72
72
  {
73
73
  provide: NG_VALUE_ACCESSOR,
74
74
  useExisting: forwardRef((() => NuMonacoEditorComponent)),
75
75
  multi: true,
76
76
  },
77
77
  ], exportAs: ["nuMonacoEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
79
79
  type: Component,
80
80
  args: [{
81
81
  selector: 'nu-monaco-editor',
@@ -13,10 +13,10 @@ export class NuMonacoEditorModule {
13
13
  };
14
14
  }
15
15
  }
16
- /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
- /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
18
- /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
16
+ /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
18
+ /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
20
20
  type: NgModule,
21
21
  args: [{
22
22
  imports: [CommonModule, ...COMPONENTS],
@@ -127,9 +127,9 @@ class NuMonacoEditorBase {
127
127
  }
128
128
  }
129
129
  }
130
- /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
131
- /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
130
+ /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
131
+ /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
133
133
  type: Component,
134
134
  args: [{
135
135
  selector: 'nu-monaco-base',
@@ -221,15 +221,15 @@ class NuMonacoEditorComponent extends NuMonacoEditorBase {
221
221
  this.setDisabled();
222
222
  }
223
223
  }
224
- /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
225
- /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
224
+ /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
225
+ /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
226
226
  {
227
227
  provide: NG_VALUE_ACCESSOR,
228
228
  useExisting: forwardRef((() => NuMonacoEditorComponent)),
229
229
  multi: true,
230
230
  },
231
231
  ], exportAs: ["nuMonacoEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
233
233
  type: Component,
234
234
  args: [{
235
235
  selector: 'nu-monaco-editor',
@@ -279,9 +279,9 @@ class NuMonacoEditorDiffComponent extends NuMonacoEditorBase {
279
279
  this.notifyEvent('init');
280
280
  }
281
281
  }
282
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
283
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
282
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
283
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
285
285
  type: Component,
286
286
  args: [{
287
287
  selector: 'nu-monaco-diff-editor',
@@ -309,10 +309,10 @@ class NuMonacoEditorModule {
309
309
  };
310
310
  }
311
311
  }
312
- /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
- /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
314
- /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
312
+ /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
+ /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
314
+ /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
316
316
  type: NgModule,
317
317
  args: [{
318
318
  imports: [CommonModule, ...COMPONENTS],
@@ -326,3 +326,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImpor
326
326
 
327
327
  export { NU_MONACO_EDITOR_CONFIG, NuMonacoEditorComponent, NuMonacoEditorDiffComponent, NuMonacoEditorModule };
328
328
  //# sourceMappingURL=ng-util-monaco-editor.mjs.map
329
+ //# sourceMappingURL=ng-util-monaco-editor.mjs.map
@@ -129,9 +129,9 @@ class NuMonacoEditorBase {
129
129
  }
130
130
  }
131
131
  }
132
- /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
133
- /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
132
+ /** @nocollapse */ NuMonacoEditorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, deps: [{ token: i0.ElementRef }, { token: NU_MONACO_EDITOR_CONFIG }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
133
+ /** @nocollapse */ NuMonacoEditorBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorBase, isStandalone: true, selector: "nu-monaco-base", inputs: { height: "height", delay: "delay", disabled: "disabled", options: "options" }, outputs: { event: "event" }, usesOnChanges: true, ngImport: i0, template: ``, isInline: true });
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorBase, decorators: [{
135
135
  type: Component,
136
136
  args: [{
137
137
  selector: 'nu-monaco-base',
@@ -221,15 +221,15 @@ class NuMonacoEditorComponent extends NuMonacoEditorBase {
221
221
  this.setDisabled();
222
222
  }
223
223
  }
224
- /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
225
- /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
224
+ /** @nocollapse */ NuMonacoEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
225
+ /** @nocollapse */ NuMonacoEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorComponent, isStandalone: true, selector: "nu-monaco-editor", inputs: { model: "model", autoFormat: "autoFormat" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, providers: [
226
226
  {
227
227
  provide: NG_VALUE_ACCESSOR,
228
228
  useExisting: forwardRef((() => NuMonacoEditorComponent)),
229
229
  multi: true,
230
230
  },
231
231
  ], exportAs: ["nuMonacoEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorComponent, decorators: [{
233
233
  type: Component,
234
234
  args: [{
235
235
  selector: 'nu-monaco-editor',
@@ -279,9 +279,9 @@ class NuMonacoEditorDiffComponent extends NuMonacoEditorBase {
279
279
  this.notifyEvent('init');
280
280
  }
281
281
  }
282
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
283
- /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
282
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
283
+ /** @nocollapse */ NuMonacoEditorDiffComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NuMonacoEditorDiffComponent, isStandalone: true, selector: "nu-monaco-diff-editor", inputs: { old: "old", new: "new" }, host: { properties: { "style.display": "'block'", "style.height": "height" } }, exportAs: ["nuMonacoDiffEditor"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorDiffComponent, decorators: [{
285
285
  type: Component,
286
286
  args: [{
287
287
  selector: 'nu-monaco-diff-editor',
@@ -309,10 +309,10 @@ class NuMonacoEditorModule {
309
309
  };
310
310
  }
311
311
  }
312
- /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
- /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
314
- /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
312
+ /** @nocollapse */ NuMonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
+ /** @nocollapse */ NuMonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, NuMonacoEditorComponent, NuMonacoEditorDiffComponent], exports: [NuMonacoEditorComponent, NuMonacoEditorDiffComponent] });
314
+ /** @nocollapse */ NuMonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, imports: [CommonModule, COMPONENTS] });
315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NuMonacoEditorModule, decorators: [{
316
316
  type: NgModule,
317
317
  args: [{
318
318
  imports: [CommonModule, ...COMPONENTS],
@@ -326,3 +326,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImpor
326
326
 
327
327
  export { NU_MONACO_EDITOR_CONFIG, NuMonacoEditorComponent, NuMonacoEditorDiffComponent, NuMonacoEditorModule };
328
328
  //# sourceMappingURL=ng-util-monaco-editor.mjs.map
329
+ //# sourceMappingURL=ng-util-monaco-editor.mjs.map
@@ -32,5 +32,5 @@ export declare abstract class NuMonacoEditorBase implements AfterViewInit, OnCha
32
32
  } & SimpleChanges): void;
33
33
  ngOnDestroy(): void;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<NuMonacoEditorBase, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorBase, "nu-monaco-base", never, { "height": "height"; "delay": "delay"; "disabled": "disabled"; "options": "options"; }, { "event": "event"; }, never, never, true>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorBase, "nu-monaco-base", never, { "height": "height"; "delay": "delay"; "disabled": "disabled"; "options": "options"; }, { "event": "event"; }, never, never, true, never>;
36
36
  }
@@ -7,5 +7,5 @@ export declare class NuMonacoEditorDiffComponent extends NuMonacoEditorBase {
7
7
  get editor(): monaco.editor.IStandaloneDiffEditor;
8
8
  initMonaco(options: monaco.editor.IStandaloneEditorConstructionOptions, initEvent: boolean): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<NuMonacoEditorDiffComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorDiffComponent, "nu-monaco-diff-editor", ["nuMonacoDiffEditor"], { "old": "old"; "new": "new"; }, {}, never, never, true>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorDiffComponent, "nu-monaco-diff-editor", ["nuMonacoDiffEditor"], { "old": "old"; "new": "new"; }, {}, never, never, true, never>;
11
11
  }
@@ -15,5 +15,5 @@ export declare class NuMonacoEditorComponent extends NuMonacoEditorBase implemen
15
15
  registerOnTouched(fn: any): void;
16
16
  setDisabledState(_isDisabled: boolean): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<NuMonacoEditorComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorComponent, "nu-monaco-editor", ["nuMonacoEditor"], { "model": "model"; "autoFormat": "autoFormat"; }, {}, never, never, true>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<NuMonacoEditorComponent, "nu-monaco-editor", ["nuMonacoEditor"], { "model": "model"; "autoFormat": "autoFormat"; }, {}, never, never, true, never>;
19
19
  }
package/monaco.d.ts CHANGED
@@ -895,6 +895,22 @@ declare namespace monaco.editor {
895
895
  */
896
896
  export function onDidCreateEditor(listener: (codeEditor: ICodeEditor) => void): IDisposable;
897
897
 
898
+ /**
899
+ * Emitted when an diff editor is created.
900
+ * @event
901
+ */
902
+ export function onDidCreateDiffEditor(listener: (diffEditor: IDiffEditor) => void): IDisposable;
903
+
904
+ /**
905
+ * Get all the created editors.
906
+ */
907
+ export function getEditors(): readonly ICodeEditor[];
908
+
909
+ /**
910
+ * Get all the created diff editors.
911
+ */
912
+ export function getDiffEditors(): readonly IDiffEditor[];
913
+
898
914
  /**
899
915
  * Create a new diff editor under `domElement`.
900
916
  * `domElement` should be empty (not contain other dom nodes).
@@ -910,6 +926,50 @@ declare namespace monaco.editor {
910
926
 
911
927
  export function createDiffNavigator(diffEditor: IStandaloneDiffEditor, opts?: IDiffNavigatorOptions): IDiffNavigator;
912
928
 
929
+ /**
930
+ * Description of a command contribution
931
+ */
932
+ export interface ICommandDescriptor {
933
+ /**
934
+ * An unique identifier of the contributed command.
935
+ */
936
+ id: string;
937
+ /**
938
+ * Callback that will be executed when the command is triggered.
939
+ */
940
+ run: ICommandHandler;
941
+ }
942
+
943
+ /**
944
+ * Add a command.
945
+ */
946
+ export function addCommand(descriptor: ICommandDescriptor): IDisposable;
947
+
948
+ /**
949
+ * Add an action to all editors.
950
+ */
951
+ export function addEditorAction(descriptor: IActionDescriptor): IDisposable;
952
+
953
+ /**
954
+ * A keybinding rule.
955
+ */
956
+ export interface IKeybindingRule {
957
+ keybinding: number;
958
+ command?: string | null;
959
+ commandArgs?: any;
960
+ when?: string | null;
961
+ }
962
+
963
+ /**
964
+ * Add a keybinding rule.
965
+ */
966
+ export function addKeybindingRule(rule: IKeybindingRule): IDisposable;
967
+
968
+ /**
969
+ * Add keybinding rules.
970
+ */
971
+ export function addKeybindingRules(rules: IKeybindingRule[]): IDisposable;
972
+
913
973
  /**
914
974
  * Create a new editor model.
915
975
  * You can specify the language that should be set for this model or let the language be inferred from the `uri`.
@@ -926,6 +986,11 @@ declare namespace monaco.editor {
926
986
  */
927
987
  export function setModelMarkers(model: ITextModel, owner: string, markers: IMarkerData[]): void;
928
988
 
989
+ /**
990
+ * Remove all markers of an owner.
991
+ */
992
+ export function removeAllMarkers(owner: string): void;
993
+
929
994
  /**
930
995
  * Get markers for owner and/or resource
931
996
  *
@@ -978,7 +1043,7 @@ declare namespace monaco.editor {
978
1043
  * Create a new web worker that has model syncing capabilities built in.
979
1044
  * Specify an AMD module to load that will `create` an object that will be proxied.
980
1045
  */
981
- export function createWebWorker<T>(opts: IWebWorkerOptions): MonacoWebWorker<T>;
1046
+ export function createWebWorker<T extends object>(opts: IWebWorkerOptions): MonacoWebWorker<T>;
982
1047
 
983
1048
  /**
984
1049
  * Colorize the contents of `domNode` using attribute `data-lang`.
@@ -1020,7 +1085,7 @@ declare namespace monaco.editor {
1020
1085
  */
1021
1086
  export function registerCommand(id: string, handler: (accessor: any, ...args: any[]) => void): IDisposable;
1022
1087
 
1023
- export type BuiltinTheme = 'vs' | 'vs-dark' | 'hc-black';
1088
+ export type BuiltinTheme = 'vs' | 'vs-dark' | 'hc-black' | 'hc-light';
1024
1089
 
1025
1090
  export interface IStandaloneThemeData {
1026
1091
  base: BuiltinTheme;
@@ -1190,7 +1255,7 @@ declare namespace monaco.editor {
1190
1255
  maxTokenizationLineLength?: number;
1191
1256
  /**
1192
1257
  * Theme to be used for rendering.
1193
- * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
1258
+ * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light'.
1194
1259
  * You can create custom themes via `monaco.editor.defineTheme`.
1195
1260
  * To switch a theme, use `monaco.editor.setTheme`.
1196
1261
  * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
@@ -1223,7 +1288,7 @@ declare namespace monaco.editor {
1223
1288
  language?: string;
1224
1289
  /**
1225
1290
  * Initial theme to be used for rendering.
1226
- * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
1291
+ * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light.
1227
1292
  * You can create custom themes via `monaco.editor.defineTheme`.
1228
1293
  * To switch a theme, use `monaco.editor.setTheme`.
1229
1294
  * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
@@ -1254,7 +1319,7 @@ declare namespace monaco.editor {
1254
1319
  export interface IStandaloneDiffEditorConstructionOptions extends IDiffEditorConstructionOptions {
1255
1320
  /**
1256
1321
  * Initial theme to be used for rendering.
1257
- * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
1322
+ * The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light.
1258
1323
  * You can create custom themes via `monaco.editor.defineTheme`.
1259
1324
  * To switch a theme, use `monaco.editor.setTheme`.
1260
1325
  * **NOTE**: The theme might be overwritten if the OS is in high contrast mode, unless `autoDetectHighContrast` is set to false.
@@ -1270,13 +1335,13 @@ declare namespace monaco.editor {
1270
1335
  export interface IStandaloneCodeEditor extends ICodeEditor {
1271
1336
  updateOptions(newOptions: IEditorOptions & IGlobalEditorOptions): void;
1272
1337
  addCommand(keybinding: number, handler: ICommandHandler, context?: string): string | null;
1273
- createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
1338
+ createContextKey<T extends ContextKeyValue = ContextKeyValue>(key: string, defaultValue: T): IContextKey<T>;
1274
1339
  addAction(descriptor: IActionDescriptor): IDisposable;
1275
1340
  }
1276
1341
 
1277
1342
  export interface IStandaloneDiffEditor extends IDiffEditor {
1278
1343
  addCommand(keybinding: number, handler: ICommandHandler, context?: string): string | null;
1279
- createContextKey<T>(key: string, defaultValue: T): IContextKey<T>;
1344
+ createContextKey<T extends ContextKeyValue = ContextKeyValue>(key: string, defaultValue: T): IContextKey<T>;
1280
1345
  addAction(descriptor: IActionDescriptor): IDisposable;
1281
1346
  getOriginalEditor(): IStandaloneCodeEditor;
1282
1347
  getModifiedEditor(): IStandaloneCodeEditor;
@@ -1285,12 +1350,14 @@ declare namespace monaco.editor {
1285
1350
  (...args: any[]): void;
1286
1351
  }
1287
1352
 
1288
- export interface IContextKey<T> {
1353
+ export interface IContextKey<T extends ContextKeyValue = ContextKeyValue> {
1289
1354
  set(value: T): void;
1290
1355
  reset(): void;
1291
1356
  get(): T | undefined;
1292
1357
  }
1293
1358
 
1359
+ export type ContextKeyValue = null | undefined | boolean | number | string | Array<null | undefined | boolean | number | string> | Record<string, null | undefined | boolean | number | string>;
1360
+
1294
1361
  export interface IEditorOverrideServices {
1295
1362
  [index: string]: any;
1296
1363
  }
@@ -1465,6 +1532,7 @@ declare namespace monaco.editor {
1465
1532
  * CSS class name describing the decoration.
1466
1533
  */
1467
1534
  className?: string | null;
1535
+ blockClassName?: string | null;
1468
1536
  /**
1469
1537
  * Message to be rendered when hovering over the glyph margin decoration.
1470
1538
  */
@@ -1477,6 +1545,10 @@ declare namespace monaco.editor {
1477
1545
  * Should the decoration expand to encompass a whole line.
1478
1546
  */
1479
1547
  isWholeLine?: boolean;
1548
+ /**
1549
+ * Always render the decoration (even when the range it encompasses is collapsed).
1550
+ */
1551
+ showIfCollapsed?: boolean;
1480
1552
  /**
1481
1553
  * Specifies the stack order of a decoration.
1482
1554
  * A decoration with greater stack order is always in front of a decoration with
@@ -1691,6 +1763,7 @@ declare namespace monaco.editor {
1691
1763
 
1692
1764
  export interface BracketPairColorizationOptions {
1693
1765
  enabled: boolean;
1766
+ independentColorPoolPerBracketType: boolean;
1694
1767
  }
1695
1768
 
1696
1769
  export interface ITextModelUpdateOptions {
@@ -1718,6 +1791,15 @@ declare namespace monaco.editor {
1718
1791
  GrowsOnlyWhenTypingAfter = 3
1719
1792
  }
1720
1793
 
1794
+ /**
1795
+ * Text snapshot that works like an iterator.
1796
+ * Will try to return chunks of roughly ~64KB size.
1797
+ * Will return null when finished.
1798
+ */
1799
+ export interface ITextSnapshot {
1800
+ read(): string | null;
1801
+ }
1802
+
1721
1803
  /**
1722
1804
  * A model.
1723
1805
  */
@@ -1749,7 +1831,7 @@ declare namespace monaco.editor {
1749
1831
  /**
1750
1832
  * Replace the entire text buffer value contained in this model.
1751
1833
  */
1752
- setValue(newValue: string): void;
1834
+ setValue(newValue: string | ITextSnapshot): void;
1753
1835
  /**
1754
1836
  * Get the text stored in this model.
1755
1837
  * @param eol The end of line character preference. Defaults to `EndOfLinePreference.TextDefined`.
@@ -1757,6 +1839,12 @@ declare namespace monaco.editor {
1757
1839
  * @return The text.
1758
1840
  */
1759
1841
  getValue(eol?: EndOfLinePreference, preserveBOM?: boolean): string;
1842
+ /**
1843
+ * Get the text stored in this model.
1844
+ * @param preserverBOM Preserve a BOM character if it was detected when the model was constructed.
1845
+ * @return The text snapshot (it is safe to consume it asynchronously).
1846
+ */
1847
+ createSnapshot(preserveBOM?: boolean): ITextSnapshot;
1760
1848
  /**
1761
1849
  * Get the length of the text stored in this model.
1762
1850
  */
@@ -2100,7 +2188,15 @@ declare namespace monaco.editor {
2100
2188
  /**
2101
2189
  * No preference.
2102
2190
  */
2103
- None = 2
2191
+ None = 2,
2192
+ /**
2193
+ * If the given position is on injected text, prefers the position left of it.
2194
+ */
2195
+ LeftOfInjectedText = 3,
2196
+ /**
2197
+ * If the given position is on injected text, prefers the position right of it.
2198
+ */
2199
+ RightOfInjectedText = 4
2104
2200
  }
2105
2201
 
2106
2202
  /**
@@ -2351,7 +2447,7 @@ declare namespace monaco.editor {
2351
2447
  /**
2352
2448
  * Restores the view state of the editor from a serializable object generated by `saveViewState`.
2353
2449
  */
2354
- restoreViewState(state: IEditorViewState): void;
2450
+ restoreViewState(state: IEditorViewState | null): void;
2355
2451
  /**
2356
2452
  * Given a position, returns a column number that takes tab-widths into account.
2357
2453
  */
@@ -2502,6 +2598,47 @@ declare namespace monaco.editor {
2502
2598
  * It is safe to call setModel(null) to simply detach the current model from the editor.
2503
2599
  */
2504
2600
  setModel(model: IEditorModel | null): void;
2601
+ /**
2602
+ * Create a collection of decorations. All decorations added through this collection
2603
+ * will get the ownerId of the editor (meaning they will not show up in other editors).
2604
+ * These decorations will be automatically cleared when the editor's model changes.
2605
+ */
2606
+ createDecorationsCollection(decorations?: IModelDeltaDecoration[]): IEditorDecorationsCollection;
2607
+ }
2608
+
2609
+ /**
2610
+ * A collection of decorations
2611
+ */
2612
+ export interface IEditorDecorationsCollection {
2613
+ /**
2614
+ * An event emitted when decorations change in the editor,
2615
+ * but the change is not caused by us setting or clearing the collection.
2616
+ */
2617
+ onDidChange: IEvent<IModelDecorationsChangedEvent>;
2618
+ /**
2619
+ * Get the decorations count.
2620
+ */
2621
+ length: number;
2622
+ /**
2623
+ * Get the range for a decoration.
2624
+ */
2625
+ getRange(index: number): Range | null;
2626
+ /**
2627
+ * Get all ranges for decorations.
2628
+ */
2629
+ getRanges(): Range[];
2630
+ /**
2631
+ * Determine if a decoration is in this collection.
2632
+ */
2633
+ has(decoration: IModelDecoration): boolean;
2634
+ /**
2635
+ * Replace all previous decorations with `newDecorations`.
2636
+ */
2637
+ set(newDecorations: IModelDeltaDecoration[]): void;
2638
+ /**
2639
+ * Remove all previous decorations.
2640
+ */
2641
+ clear(): void;
2505
2642
  }
2506
2643
 
2507
2644
  /**
@@ -2862,6 +2999,10 @@ declare namespace monaco.editor {
2862
2999
  * Control the behavior and rendering of the scrollbars.
2863
3000
  */
2864
3001
  scrollbar?: IEditorScrollbarOptions;
3002
+ /**
3003
+ * Control the behavior of experimental options
3004
+ */
3005
+ experimental?: IEditorExperimentalOptions;
2865
3006
  /**
2866
3007
  * Control the behavior and rendering of the minimap.
2867
3008
  */
@@ -3256,7 +3397,7 @@ declare namespace monaco.editor {
3256
3397
  * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
3257
3398
  * Defaults to 'mouseover'.
3258
3399
  */
3259
- showFoldingControls?: 'always' | 'mouseover';
3400
+ showFoldingControls?: 'always' | 'never' | 'mouseover';
3260
3401
  /**
3261
3402
  * Controls whether clicking on the empty content after a folded line will unfold the line.
3262
3403
  * Defaults to false.
@@ -3350,6 +3491,12 @@ declare namespace monaco.editor {
3350
3491
  * Configures bracket pair colorization (disabled by default).
3351
3492
  */
3352
3493
  bracketPairColorization?: IBracketPairColorizationOptions;
3494
+ /**
3495
+ * Controls dropping into the editor from an external source.
3496
+ *
3497
+ * When enabled, this shows a preview of the drop location and triggers an `onDropIntoEditor` event.
3498
+ */
3499
+ dropIntoEditor?: IDropIntoEditorOptions;
3353
3500
  }
3354
3501
 
3355
3502
  export interface IDiffEditorBaseOptions {
@@ -3383,6 +3530,11 @@ declare namespace monaco.editor {
3383
3530
  * Defaults to true.
3384
3531
  */
3385
3532
  renderIndicators?: boolean;
3533
+ /**
3534
+ * Shows icons in the glyph margin to revert changes.
3535
+ * Default to true.
3536
+ */
3537
+ renderMarginRevertIcon?: boolean;
3386
3538
  /**
3387
3539
  * Original model should be editable?
3388
3540
  * Defaults to false.
@@ -3431,7 +3583,7 @@ declare namespace monaco.editor {
3431
3583
  /**
3432
3584
  * Might modify `value`.
3433
3585
  */
3434
- applyUpdate(value: V, update: V): ApplyUpdateResult<V>;
3586
+ applyUpdate(value: V | undefined, update: V): ApplyUpdateResult<V>;
3435
3587
  }
3436
3588
 
3437
3589
  export class ApplyUpdateResult<T> {
@@ -3709,6 +3861,24 @@ declare namespace monaco.editor {
3709
3861
  enabled?: boolean;
3710
3862
  }
3711
3863
 
3864
+ export interface IEditorExperimentalOptions {
3865
+ /**
3866
+ * Configuration options for editor sticky scroll
3867
+ */
3868
+ stickyScroll?: {
3869
+ /**
3870
+ * Enable the sticky scroll
3871
+ */
3872
+ enabled?: boolean;
3873
+ };
3874
+ }
3875
+
3876
+ export interface EditorExperimentalOptions {
3877
+ stickyScroll: {
3878
+ enabled: boolean;
3879
+ };
3880
+ }
3881
+
3712
3882
  /**
3713
3883
  * Configuration options for editor inlayHints
3714
3884
  */
@@ -3717,7 +3887,7 @@ declare namespace monaco.editor {
3717
3887
  * Enable the inline hints.
3718
3888
  * Defaults to true.
3719
3889
  */
3720
- enabled?: boolean;
3890
+ enabled?: 'on' | 'off' | 'offUnlessPressed' | 'onUnlessPressed';
3721
3891
  /**
3722
3892
  * Font size of inline hints.
3723
3893
  * Default to 90% of the editor font size.
@@ -3728,6 +3898,11 @@ declare namespace monaco.editor {
3728
3898
  * Defaults to editor font family.
3729
3899
  */
3730
3900
  fontFamily?: string;
3901
+ /**
3902
+ * Enables the padding around the inlay hint.
3903
+ * Defaults to false.
3904
+ */
3905
+ padding?: boolean;
3731
3906
  }
3732
3907
 
3733
3908
  /**
@@ -3739,6 +3914,10 @@ declare namespace monaco.editor {
3739
3914
  * Defaults to true.
3740
3915
  */
3741
3916
  enabled?: boolean;
3917
+ /**
3918
+ * Control the rendering of minimap.
3919
+ */
3920
+ autohide?: boolean;
3742
3921
  /**
3743
3922
  * Control the side of the minimap in editor.
3744
3923
  * Defaults to 'right'.
@@ -3800,13 +3979,21 @@ declare namespace monaco.editor {
3800
3979
  cycle?: boolean;
3801
3980
  }
3802
3981
 
3982
+ export type QuickSuggestionsValue = 'on' | 'inline' | 'off';
3983
+
3803
3984
  /**
3804
3985
  * Configuration options for quick suggestions
3805
3986
  */
3806
3987
  export interface IQuickSuggestionsOptions {
3807
- other?: boolean;
3808
- comments?: boolean;
3809
- strings?: boolean;
3988
+ other?: boolean | QuickSuggestionsValue;
3989
+ comments?: boolean | QuickSuggestionsValue;
3990
+ strings?: boolean | QuickSuggestionsValue;
3991
+ }
3992
+
3993
+ export interface InternalQuickSuggestionsOptions {
3994
+ readonly other: QuickSuggestionsValue;
3995
+ readonly comments: QuickSuggestionsValue;
3996
+ readonly strings: QuickSuggestionsValue;
3810
3997
  }
3811
3998
 
3812
3999
  export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
@@ -3979,6 +4166,10 @@ declare namespace monaco.editor {
3979
4166
  * Enable or disable bracket pair colorization.
3980
4167
  */
3981
4168
  enabled?: boolean;
4169
+ /**
4170
+ * Use independent color pool per bracket type.
4171
+ */
4172
+ independentColorPoolPerBracketType?: boolean;
3982
4173
  }
3983
4174
 
3984
4175
  export interface IGuidesOptions {
@@ -4006,7 +4197,7 @@ declare namespace monaco.editor {
4006
4197
  * Enable highlighting of the active indent guide.
4007
4198
  * Defaults to true.
4008
4199
  */
4009
- highlightActiveIndentation?: boolean;
4200
+ highlightActiveIndentation?: boolean | 'always';
4010
4201
  }
4011
4202
 
4012
4203
  /**
@@ -4200,6 +4391,17 @@ declare namespace monaco.editor {
4200
4391
  readonly wrappingColumn: number;
4201
4392
  }
4202
4393
 
4394
+ /**
4395
+ * Configuration options for editor drop into behavior
4396
+ */
4397
+ export interface IDropIntoEditorOptions {
4398
+ /**
4399
+ * Enable the dropping into editor.
4400
+ * Defaults to true.
4401
+ */
4402
+ enabled?: boolean;
4403
+ }
4404
+
4203
4405
  export enum EditorOption {
4204
4406
  acceptSuggestionOnCommitCharacter = 0,
4205
4407
  acceptSuggestionOnEnter = 1,
@@ -4233,107 +4435,109 @@ declare namespace monaco.editor {
4233
4435
  disableMonospaceOptimizations = 29,
4234
4436
  domReadOnly = 30,
4235
4437
  dragAndDrop = 31,
4236
- emptySelectionClipboard = 32,
4237
- extraEditorClassName = 33,
4238
- fastScrollSensitivity = 34,
4239
- find = 35,
4240
- fixedOverflowWidgets = 36,
4241
- folding = 37,
4242
- foldingStrategy = 38,
4243
- foldingHighlight = 39,
4244
- foldingImportsByDefault = 40,
4245
- foldingMaximumRegions = 41,
4246
- unfoldOnClickAfterEndOfLine = 42,
4247
- fontFamily = 43,
4248
- fontInfo = 44,
4249
- fontLigatures = 45,
4250
- fontSize = 46,
4251
- fontWeight = 47,
4252
- formatOnPaste = 48,
4253
- formatOnType = 49,
4254
- glyphMargin = 50,
4255
- gotoLocation = 51,
4256
- hideCursorInOverviewRuler = 52,
4257
- hover = 53,
4258
- inDiffEditor = 54,
4259
- inlineSuggest = 55,
4260
- letterSpacing = 56,
4261
- lightbulb = 57,
4262
- lineDecorationsWidth = 58,
4263
- lineHeight = 59,
4264
- lineNumbers = 60,
4265
- lineNumbersMinChars = 61,
4266
- linkedEditing = 62,
4267
- links = 63,
4268
- matchBrackets = 64,
4269
- minimap = 65,
4270
- mouseStyle = 66,
4271
- mouseWheelScrollSensitivity = 67,
4272
- mouseWheelZoom = 68,
4273
- multiCursorMergeOverlapping = 69,
4274
- multiCursorModifier = 70,
4275
- multiCursorPaste = 71,
4276
- occurrencesHighlight = 72,
4277
- overviewRulerBorder = 73,
4278
- overviewRulerLanes = 74,
4279
- padding = 75,
4280
- parameterHints = 76,
4281
- peekWidgetDefaultFocus = 77,
4282
- definitionLinkOpensInPeek = 78,
4283
- quickSuggestions = 79,
4284
- quickSuggestionsDelay = 80,
4285
- readOnly = 81,
4286
- renameOnType = 82,
4287
- renderControlCharacters = 83,
4288
- renderFinalNewline = 84,
4289
- renderLineHighlight = 85,
4290
- renderLineHighlightOnlyWhenFocus = 86,
4291
- renderValidationDecorations = 87,
4292
- renderWhitespace = 88,
4293
- revealHorizontalRightPadding = 89,
4294
- roundedSelection = 90,
4295
- rulers = 91,
4296
- scrollbar = 92,
4297
- scrollBeyondLastColumn = 93,
4298
- scrollBeyondLastLine = 94,
4299
- scrollPredominantAxis = 95,
4300
- selectionClipboard = 96,
4301
- selectionHighlight = 97,
4302
- selectOnLineNumbers = 98,
4303
- showFoldingControls = 99,
4304
- showUnused = 100,
4305
- snippetSuggestions = 101,
4306
- smartSelect = 102,
4307
- smoothScrolling = 103,
4308
- stickyTabStops = 104,
4309
- stopRenderingLineAfter = 105,
4310
- suggest = 106,
4311
- suggestFontSize = 107,
4312
- suggestLineHeight = 108,
4313
- suggestOnTriggerCharacters = 109,
4314
- suggestSelection = 110,
4315
- tabCompletion = 111,
4316
- tabIndex = 112,
4317
- unicodeHighlighting = 113,
4318
- unusualLineTerminators = 114,
4319
- useShadowDOM = 115,
4320
- useTabStops = 116,
4321
- wordSeparators = 117,
4322
- wordWrap = 118,
4323
- wordWrapBreakAfterCharacters = 119,
4324
- wordWrapBreakBeforeCharacters = 120,
4325
- wordWrapColumn = 121,
4326
- wordWrapOverride1 = 122,
4327
- wordWrapOverride2 = 123,
4328
- wrappingIndent = 124,
4329
- wrappingStrategy = 125,
4330
- showDeprecated = 126,
4331
- inlayHints = 127,
4332
- editorClassName = 128,
4333
- pixelRatio = 129,
4334
- tabFocusMode = 130,
4335
- layoutInfo = 131,
4336
- wrappingInfo = 132
4438
+ dropIntoEditor = 32,
4439
+ emptySelectionClipboard = 33,
4440
+ experimental = 34,
4441
+ extraEditorClassName = 35,
4442
+ fastScrollSensitivity = 36,
4443
+ find = 37,
4444
+ fixedOverflowWidgets = 38,
4445
+ folding = 39,
4446
+ foldingStrategy = 40,
4447
+ foldingHighlight = 41,
4448
+ foldingImportsByDefault = 42,
4449
+ foldingMaximumRegions = 43,
4450
+ unfoldOnClickAfterEndOfLine = 44,
4451
+ fontFamily = 45,
4452
+ fontInfo = 46,
4453
+ fontLigatures = 47,
4454
+ fontSize = 48,
4455
+ fontWeight = 49,
4456
+ formatOnPaste = 50,
4457
+ formatOnType = 51,
4458
+ glyphMargin = 52,
4459
+ gotoLocation = 53,
4460
+ hideCursorInOverviewRuler = 54,
4461
+ hover = 55,
4462
+ inDiffEditor = 56,
4463
+ inlineSuggest = 57,
4464
+ letterSpacing = 58,
4465
+ lightbulb = 59,
4466
+ lineDecorationsWidth = 60,
4467
+ lineHeight = 61,
4468
+ lineNumbers = 62,
4469
+ lineNumbersMinChars = 63,
4470
+ linkedEditing = 64,
4471
+ links = 65,
4472
+ matchBrackets = 66,
4473
+ minimap = 67,
4474
+ mouseStyle = 68,
4475
+ mouseWheelScrollSensitivity = 69,
4476
+ mouseWheelZoom = 70,
4477
+ multiCursorMergeOverlapping = 71,
4478
+ multiCursorModifier = 72,
4479
+ multiCursorPaste = 73,
4480
+ occurrencesHighlight = 74,
4481
+ overviewRulerBorder = 75,
4482
+ overviewRulerLanes = 76,
4483
+ padding = 77,
4484
+ parameterHints = 78,
4485
+ peekWidgetDefaultFocus = 79,
4486
+ definitionLinkOpensInPeek = 80,
4487
+ quickSuggestions = 81,
4488
+ quickSuggestionsDelay = 82,
4489
+ readOnly = 83,
4490
+ renameOnType = 84,
4491
+ renderControlCharacters = 85,
4492
+ renderFinalNewline = 86,
4493
+ renderLineHighlight = 87,
4494
+ renderLineHighlightOnlyWhenFocus = 88,
4495
+ renderValidationDecorations = 89,
4496
+ renderWhitespace = 90,
4497
+ revealHorizontalRightPadding = 91,
4498
+ roundedSelection = 92,
4499
+ rulers = 93,
4500
+ scrollbar = 94,
4501
+ scrollBeyondLastColumn = 95,
4502
+ scrollBeyondLastLine = 96,
4503
+ scrollPredominantAxis = 97,
4504
+ selectionClipboard = 98,
4505
+ selectionHighlight = 99,
4506
+ selectOnLineNumbers = 100,
4507
+ showFoldingControls = 101,
4508
+ showUnused = 102,
4509
+ snippetSuggestions = 103,
4510
+ smartSelect = 104,
4511
+ smoothScrolling = 105,
4512
+ stickyTabStops = 106,
4513
+ stopRenderingLineAfter = 107,
4514
+ suggest = 108,
4515
+ suggestFontSize = 109,
4516
+ suggestLineHeight = 110,
4517
+ suggestOnTriggerCharacters = 111,
4518
+ suggestSelection = 112,
4519
+ tabCompletion = 113,
4520
+ tabIndex = 114,
4521
+ unicodeHighlighting = 115,
4522
+ unusualLineTerminators = 116,
4523
+ useShadowDOM = 117,
4524
+ useTabStops = 118,
4525
+ wordSeparators = 119,
4526
+ wordWrap = 120,
4527
+ wordWrapBreakAfterCharacters = 121,
4528
+ wordWrapBreakBeforeCharacters = 122,
4529
+ wordWrapColumn = 123,
4530
+ wordWrapOverride1 = 124,
4531
+ wordWrapOverride2 = 125,
4532
+ wrappingIndent = 126,
4533
+ wrappingStrategy = 127,
4534
+ showDeprecated = 128,
4535
+ inlayHints = 129,
4536
+ editorClassName = 130,
4537
+ pixelRatio = 131,
4538
+ tabFocusMode = 132,
4539
+ layoutInfo = 133,
4540
+ wrappingInfo = 134
4337
4541
  }
4338
4542
 
4339
4543
  export const EditorOptions: {
@@ -4371,6 +4575,8 @@ declare namespace monaco.editor {
4371
4575
  domReadOnly: IEditorOption<EditorOption.domReadOnly, boolean>;
4372
4576
  dragAndDrop: IEditorOption<EditorOption.dragAndDrop, boolean>;
4373
4577
  emptySelectionClipboard: IEditorOption<EditorOption.emptySelectionClipboard, boolean>;
4578
+ dropIntoEditor: IEditorOption<EditorOption.dropIntoEditor, Readonly<Required<IDropIntoEditorOptions>>>;
4579
+ experimental: IEditorOption<EditorOption.experimental, EditorExperimentalOptions>;
4374
4580
  extraEditorClassName: IEditorOption<EditorOption.extraEditorClassName, string>;
4375
4581
  fastScrollSensitivity: IEditorOption<EditorOption.fastScrollSensitivity, number>;
4376
4582
  find: IEditorOption<EditorOption.find, Readonly<Required<IEditorFindOptions>>>;
@@ -4416,7 +4622,7 @@ declare namespace monaco.editor {
4416
4622
  parameterHints: IEditorOption<EditorOption.parameterHints, Readonly<Required<IEditorParameterHintOptions>>>;
4417
4623
  peekWidgetDefaultFocus: IEditorOption<EditorOption.peekWidgetDefaultFocus, 'tree' | 'editor'>;
4418
4624
  definitionLinkOpensInPeek: IEditorOption<EditorOption.definitionLinkOpensInPeek, boolean>;
4419
- quickSuggestions: IEditorOption<EditorOption.quickSuggestions, any>;
4625
+ quickSuggestions: IEditorOption<EditorOption.quickSuggestions, InternalQuickSuggestionsOptions>;
4420
4626
  quickSuggestionsDelay: IEditorOption<EditorOption.quickSuggestionsDelay, number>;
4421
4627
  readOnly: IEditorOption<EditorOption.readOnly, boolean>;
4422
4628
  renameOnType: IEditorOption<EditorOption.renameOnType, boolean>;
@@ -4436,7 +4642,7 @@ declare namespace monaco.editor {
4436
4642
  selectionClipboard: IEditorOption<EditorOption.selectionClipboard, boolean>;
4437
4643
  selectionHighlight: IEditorOption<EditorOption.selectionHighlight, boolean>;
4438
4644
  selectOnLineNumbers: IEditorOption<EditorOption.selectOnLineNumbers, boolean>;
4439
- showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'mouseover'>;
4645
+ showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'never' | 'mouseover'>;
4440
4646
  showUnused: IEditorOption<EditorOption.showUnused, boolean>;
4441
4647
  showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>;
4442
4648
  inlayHints: IEditorOption<EditorOption.inlayHints, Readonly<Required<IEditorInlayHintsOptions>>>;
@@ -4452,7 +4658,7 @@ declare namespace monaco.editor {
4452
4658
  suggestSelection: IEditorOption<EditorOption.suggestSelection, 'first' | 'recentlyUsed' | 'recentlyUsedByPrefix'>;
4453
4659
  tabCompletion: IEditorOption<EditorOption.tabCompletion, 'on' | 'off' | 'onlySnippets'>;
4454
4660
  tabIndex: IEditorOption<EditorOption.tabIndex, number>;
4455
- unicodeHighlight: IEditorOption<EditorOption.unicodeHighlighting, Required<Readonly<IUnicodeHighlightOptions>>>;
4661
+ unicodeHighlight: IEditorOption<EditorOption.unicodeHighlighting, any>;
4456
4662
  unusualLineTerminators: IEditorOption<EditorOption.unusualLineTerminators, 'auto' | 'off' | 'prompt'>;
4457
4663
  useShadowDOM: IEditorOption<EditorOption.useShadowDOM, boolean>;
4458
4664
  useTabStops: IEditorOption<EditorOption.useTabStops, boolean>;
@@ -4613,6 +4819,11 @@ declare namespace monaco.editor {
4613
4819
  * Placement preference for position, in order of preference.
4614
4820
  */
4615
4821
  preference: ContentWidgetPositionPreference[];
4822
+ /**
4823
+ * Placement preference when multiple view positions refer to the same (model) position.
4824
+ * This plays a role when injected text is involved.
4825
+ */
4826
+ positionAffinity?: PositionAffinity;
4616
4827
  }
4617
4828
 
4618
4829
  /**
@@ -5073,7 +5284,7 @@ declare namespace monaco.editor {
5073
5284
  /**
5074
5285
  * Restores the view state of the editor from a serializable object generated by `saveViewState`.
5075
5286
  */
5076
- restoreViewState(state: ICodeEditorViewState): void;
5287
+ restoreViewState(state: ICodeEditorViewState | null): void;
5077
5288
  /**
5078
5289
  * Returns true if the text inside this editor or an editor widget has focus.
5079
5290
  */
@@ -5205,9 +5416,13 @@ declare namespace monaco.editor {
5205
5416
  getDecorationsInRange(range: Range): IModelDecoration[] | null;
5206
5417
  /**
5207
5418
  * All decorations added through this call will get the ownerId of this editor.
5208
- * @see {@link ITextModel.deltaDecorations}
5419
+ * @deprecated
5209
5420
  */
5210
5421
  deltaDecorations(oldDecorations: string[], newDecorations: IModelDeltaDecoration[]): string[];
5422
+ /**
5423
+ * Remove previously added decorations.
5424
+ */
5425
+ removeDecorations(decorationIds: string[]): void;
5211
5426
  /**
5212
5427
  * Get the layout info for the editor.
5213
5428
  */
@@ -5218,9 +5433,13 @@ declare namespace monaco.editor {
5218
5433
  */
5219
5434
  getVisibleRanges(): Range[];
5220
5435
  /**
5221
- * Get the vertical position (top offset) for the line w.r.t. to the first line.
5436
+ * Get the vertical position (top offset) for the line's top w.r.t. to the first line.
5222
5437
  */
5223
5438
  getTopForLineNumber(lineNumber: number): number;
5439
+ /**
5440
+ * Get the vertical position (top offset) for the line's bottom w.r.t. to the first line.
5441
+ */
5442
+ getBottomForLineNumber(lineNumber: number): number;
5224
5443
  /**
5225
5444
  * Get the vertical position (top offset) for the position w.r.t. to the first line.
5226
5445
  */
@@ -5326,7 +5545,7 @@ declare namespace monaco.editor {
5326
5545
  /**
5327
5546
  * Restores the view state of the editor from a serializable object generated by `saveViewState`.
5328
5547
  */
5329
- restoreViewState(state: IDiffEditorViewState): void;
5548
+ restoreViewState(state: IDiffEditorViewState | null): void;
5330
5549
  /**
5331
5550
  * Type the getModel() of IEditor.
5332
5551
  */
@@ -5400,7 +5619,6 @@ declare namespace monaco.editor {
5400
5619
 
5401
5620
  declare namespace monaco.languages {
5402
5621
 
5403
-
5404
5622
  export interface IRelativePattern {
5405
5623
  /**
5406
5624
  * A base file path to which this pattern will be matched against relatively.
@@ -5722,6 +5940,10 @@ declare namespace monaco.languages {
5722
5940
  * Requested kind of actions to return.
5723
5941
  */
5724
5942
  readonly only?: string;
5943
+ /**
5944
+ * The reason why code actions were requested.
5945
+ */
5946
+ readonly trigger: CodeActionTriggerType;
5725
5947
  }
5726
5948
 
5727
5949
  /**
@@ -5752,6 +5974,10 @@ declare namespace monaco.languages {
5752
5974
  * such as `["quickfix.removeLine", "source.fixAll" ...]`.
5753
5975
  */
5754
5976
  readonly providedCodeActionKinds?: readonly string[];
5977
+ readonly documentation?: ReadonlyArray<{
5978
+ readonly kind: string;
5979
+ readonly command: Command;
5980
+ }>;
5755
5981
  }
5756
5982
 
5757
5983
  /**
@@ -6263,8 +6489,24 @@ declare namespace monaco.languages {
6263
6489
  * The text to insert.
6264
6490
  * If the text contains a line break, the range must end at the end of a line.
6265
6491
  * If existing text should be replaced, the existing text must be a prefix of the text to insert.
6492
+ *
6493
+ * The text can also be a snippet. In that case, a preview with default parameters is shown.
6494
+ * When accepting the suggestion, the full snippet is inserted.
6266
6495
  */
6267
- readonly text: string;
6496
+ readonly insertText: string | {
6497
+ snippet: string;
6498
+ };
6499
+ /**
6500
+ * A text that is used to decide if this inline completion should be shown.
6501
+ * An inline completion is shown if the text to replace is a subword of the filter text.
6502
+ */
6503
+ readonly filterText?: string;
6504
+ /**
6505
+ * An optional array of additional text edits that are applied when
6506
+ * selecting this completion. Edits must not overlap with the main edit
6507
+ * nor with themselves.
6508
+ */
6509
+ readonly additionalTextEdits?: editor.ISingleEditOperation[];
6268
6510
  /**
6269
6511
  * The range to replace.
6270
6512
  * Must begin and end on the same line.
@@ -6280,6 +6522,10 @@ declare namespace monaco.languages {
6280
6522
 
6281
6523
  export interface InlineCompletions<TItem extends InlineCompletion = InlineCompletion> {
6282
6524
  readonly items: readonly TItem[];
6525
+ /**
6526
+ * A list of commands associated with the inline completions of this list.
6527
+ */
6528
+ readonly commands?: Command[];
6283
6529
  }
6284
6530
 
6285
6531
  export interface InlineCompletionsProvider<T extends InlineCompletions = InlineCompletions> {
@@ -6304,6 +6550,11 @@ declare namespace monaco.languages {
6304
6550
  disabled?: string;
6305
6551
  }
6306
6552
 
6553
+ export enum CodeActionTriggerType {
6554
+ Invoke = 1,
6555
+ Auto = 2
6556
+ }
6557
+
6307
6558
  export interface CodeActionList extends IDisposable {
6308
6559
  readonly actions: ReadonlyArray<CodeAction>;
6309
6560
  }
@@ -6640,11 +6891,11 @@ declare namespace monaco.languages {
6640
6891
  provideDocumentSymbols(model: editor.ITextModel, token: CancellationToken): ProviderResult<DocumentSymbol[]>;
6641
6892
  }
6642
6893
 
6643
- export type TextEdit = {
6894
+ export interface TextEdit {
6644
6895
  range: IRange;
6645
6896
  text: string;
6646
6897
  eol?: editor.EndOfLineSequence;
6647
- };
6898
+ }
6648
6899
 
6649
6900
  /**
6650
6901
  * Interface used to format a model
@@ -6884,22 +7135,24 @@ declare namespace monaco.languages {
6884
7135
  maxSize?: number;
6885
7136
  }
6886
7137
 
6887
- export interface WorkspaceFileEdit {
6888
- oldUri?: Uri;
6889
- newUri?: Uri;
7138
+ export interface IWorkspaceFileEdit {
7139
+ oldResource?: Uri;
7140
+ newResource?: Uri;
6890
7141
  options?: WorkspaceFileEditOptions;
6891
7142
  metadata?: WorkspaceEditMetadata;
6892
7143
  }
6893
7144
 
6894
- export interface WorkspaceTextEdit {
7145
+ export interface IWorkspaceTextEdit {
6895
7146
  resource: Uri;
6896
- edit: TextEdit;
6897
- modelVersionId?: number;
7147
+ textEdit: TextEdit & {
7148
+ insertAsSnippet?: boolean;
7149
+ };
7150
+ versionId: number | undefined;
6898
7151
  metadata?: WorkspaceEditMetadata;
6899
7152
  }
6900
7153
 
6901
7154
  export interface WorkspaceEdit {
6902
- edits: Array<WorkspaceTextEdit | WorkspaceFileEdit>;
7155
+ edits: Array<IWorkspaceTextEdit | IWorkspaceFileEdit>;
6903
7156
  }
6904
7157
 
6905
7158
  export interface Rejection {
@@ -6955,7 +7208,7 @@ declare namespace monaco.languages {
6955
7208
  export interface InlayHint {
6956
7209
  label: string | InlayHintLabelPart[];
6957
7210
  tooltip?: string | IMarkdownString;
6958
- command?: Command;
7211
+ textEdits?: TextEdit[];
6959
7212
  position: IPosition;
6960
7213
  kind?: InlayHintKind;
6961
7214
  paddingLeft?: boolean;
@@ -7190,6 +7443,20 @@ declare namespace monaco.worker {
7190
7443
  *--------------------------------------------------------------------------------------------*/
7191
7444
 
7192
7445
  declare namespace monaco.languages.css {
7446
+ export interface CSSFormatConfiguration {
7447
+ /** separate selectors with newline (e.g. "a,\nbr" or "a, br"): Default: true */
7448
+ newlineBetweenSelectors?: boolean;
7449
+ /** add a new line after every css rule: Default: true */
7450
+ newlineBetweenRules?: boolean;
7451
+ /** ensure space around selector separators: '>', '+', '~' (e.g. "a>b" -> "a > b"): Default: false */
7452
+ spaceAroundSelectorSeparator?: boolean;
7453
+ /** put braces on the same line as rules (`collapse`), or put braces on own line, Allman / ANSI style (`expand`). Default `collapse` */
7454
+ braceStyle?: 'collapse' | 'expand';
7455
+ /** whether existing line breaks before elements should be preserved. Default: true */
7456
+ preserveNewLines?: boolean;
7457
+ /** maximum number of line breaks to be preserved in one chunk. Default: unlimited */
7458
+ maxPreserveNewLines?: number;
7459
+ }
7193
7460
  export interface Options {
7194
7461
  readonly validate?: boolean;
7195
7462
  readonly lint?: {
@@ -7216,6 +7483,10 @@ declare namespace monaco.languages.css {
7216
7483
  * Configures the CSS data types known by the langauge service.
7217
7484
  */
7218
7485
  readonly data?: CSSDataConfiguration;
7486
+ /**
7487
+ * Settings for the CSS formatter.
7488
+ */
7489
+ readonly format?: CSSFormatConfiguration;
7219
7490
  }
7220
7491
  export interface ModeConfiguration {
7221
7492
  /**
@@ -7262,6 +7533,14 @@ declare namespace monaco.languages.css {
7262
7533
  * Defines whether the built-in selection range provider is enabled.
7263
7534
  */
7264
7535
  readonly selectionRanges?: boolean;
7536
+ /**
7537
+ * Defines whether the built-in document formatting edit provider is enabled.
7538
+ */
7539
+ readonly documentFormattingEdits?: boolean;
7540
+ /**
7541
+ * Defines whether the built-in document formatting range edit provider is enabled.
7542
+ */
7543
+ readonly documentRangeFormattingEdits?: boolean;
7265
7544
  }
7266
7545
  export interface LanguageServiceDefaults {
7267
7546
  readonly languageId: string;
@@ -7379,11 +7658,11 @@ declare namespace monaco.languages.html {
7379
7658
  }
7380
7659
  export interface Options {
7381
7660
  /**
7382
- * If set, comments are tolerated. If set to false, syntax errors will be emitted for comments.
7661
+ * Settings for the HTML formatter.
7383
7662
  */
7384
7663
  readonly format?: HTMLFormatConfiguration;
7385
7664
  /**
7386
- * A list of known schemas and/or associations of schemas to file names.
7665
+ * Code completion settings.
7387
7666
  */
7388
7667
  readonly suggest?: CompletionConfiguration;
7389
7668
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-util/monaco-editor",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "description": "Monaco Code Editor for Angular",
6
6
  "license": "MIT",