@codingame/monaco-vscode-api 1.85.0-next.0 → 1.85.0-next.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITerminalAddon, Terminal } from '../../xterm/typings/xterm.js';
|
|
1
|
+
import { ITerminalAddon, Terminal, IMarker } from '../../xterm/typings/xterm.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An xterm.js addon that enables serialization of terminal contents.
|
|
@@ -42,10 +42,16 @@ import { ITerminalAddon, Terminal } from '../../xterm/typings/xterm.js';
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
interface ISerializeOptions {
|
|
45
|
+
/**
|
|
46
|
+
* The row range to serialize. The an explicit range is specified, the cursor will get its final
|
|
47
|
+
* repositioning.
|
|
48
|
+
*/
|
|
49
|
+
range?: ISerializeRange;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* The number of rows in the scrollback buffer to serialize, starting from the bottom of the
|
|
47
53
|
* scrollback buffer. When not specified, all available rows in the scrollback buffer will be
|
|
48
|
-
* serialized.
|
|
54
|
+
* serialized. This will be ignored if {@link range} is specified.
|
|
49
55
|
*/
|
|
50
56
|
scrollback?: number;
|
|
51
57
|
|
|
@@ -80,4 +86,15 @@ import { ITerminalAddon, Terminal } from '../../xterm/typings/xterm.js';
|
|
|
80
86
|
includeGlobalBackground: boolean;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
|
|
89
|
+
interface ISerializeRange {
|
|
90
|
+
/**
|
|
91
|
+
* The line to start serializing (inclusive).
|
|
92
|
+
*/
|
|
93
|
+
start: IMarker | number;
|
|
94
|
+
/**
|
|
95
|
+
* The line to end serializing (inclusive).
|
|
96
|
+
*/
|
|
97
|
+
end: IMarker | number;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { type IHTMLSerializeOptions, type ISerializeOptions, type ISerializeRange, SerializeAddon };
|
package/missing-services.js
CHANGED
|
@@ -161,6 +161,7 @@ import { IChatVariablesService } from './vscode/src/vs/workbench/contrib/chat/co
|
|
|
161
161
|
import { IAiRelatedInformationService } from './vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js';
|
|
162
162
|
import { IAiEmbeddingVectorService } from './vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.js';
|
|
163
163
|
import { ResourceSet } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
164
|
+
import { DEFAULT_EDITOR_PART_OPTIONS } from './vscode/src/vs/workbench/browser/parts/editor/editor.js';
|
|
164
165
|
import { ISignService } from './vscode/src/vs/platform/sign/common/sign.js';
|
|
165
166
|
import { BrowserHostService } from './vscode/src/vs/workbench/services/host/browser/browserHostService.js';
|
|
166
167
|
import { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.js';
|
|
@@ -365,15 +366,66 @@ class EmptyEditorGroup {
|
|
|
365
366
|
}
|
|
366
367
|
}
|
|
367
368
|
const fakeActiveGroup = new EmptyEditorGroup();
|
|
369
|
+
class EmptyEditorPart {
|
|
370
|
+
constructor() {
|
|
371
|
+
this.onDidLayout = Event.None;
|
|
372
|
+
this.onDidScroll = Event.None;
|
|
373
|
+
this.isReady = true;
|
|
374
|
+
this.whenReady = Promise.resolve();
|
|
375
|
+
this.whenRestored = Promise.resolve();
|
|
376
|
+
this.hasRestorableState = false;
|
|
377
|
+
this.centerLayout = unsupported;
|
|
378
|
+
this.isLayoutCentered = unsupported;
|
|
379
|
+
this.enforcePartOptions = unsupported;
|
|
380
|
+
this.onDidChangeActiveGroup = Event.None;
|
|
381
|
+
this.onDidAddGroup = Event.None;
|
|
382
|
+
this.onDidRemoveGroup = Event.None;
|
|
383
|
+
this.onDidMoveGroup = Event.None;
|
|
384
|
+
this.onDidActivateGroup = Event.None;
|
|
385
|
+
this.onDidChangeGroupIndex = Event.None;
|
|
386
|
+
this.onDidChangeGroupLocked = Event.None;
|
|
387
|
+
this.onDidChangeGroupMaximized = Event.None;
|
|
388
|
+
this.activeGroup = fakeActiveGroup;
|
|
389
|
+
this.groups = [fakeActiveGroup];
|
|
390
|
+
this.count = 0;
|
|
391
|
+
this.orientation = 0 ;
|
|
392
|
+
this.getGroups = () => [];
|
|
393
|
+
this.getGroup = () => undefined;
|
|
394
|
+
this.activateGroup = unsupported;
|
|
395
|
+
this.getSize = unsupported;
|
|
396
|
+
this.setSize = unsupported;
|
|
397
|
+
this.arrangeGroups = unsupported;
|
|
398
|
+
this.toggleMaximizeGroup = unsupported;
|
|
399
|
+
this.toggleExpandGroup = unsupported;
|
|
400
|
+
this.applyLayout = unsupported;
|
|
401
|
+
this.getLayout = unsupported;
|
|
402
|
+
this.setGroupOrientation = unsupported;
|
|
403
|
+
this.findGroup = () => undefined;
|
|
404
|
+
this.addGroup = unsupported;
|
|
405
|
+
this.removeGroup = unsupported;
|
|
406
|
+
this.moveGroup = unsupported;
|
|
407
|
+
this.mergeGroup = unsupported;
|
|
408
|
+
this.mergeAllGroups = unsupported;
|
|
409
|
+
this.copyGroup = unsupported;
|
|
410
|
+
this.partOptions = DEFAULT_EDITOR_PART_OPTIONS;
|
|
411
|
+
this.onDidChangeEditorPartOptions = Event.None;
|
|
412
|
+
this.createEditorDropTarget = unsupported;
|
|
413
|
+
}
|
|
414
|
+
get contentDimension() { return unsupported(); }
|
|
415
|
+
get sideGroup() { return unsupported(); }
|
|
416
|
+
}
|
|
368
417
|
class EmptyEditorGroupsService {
|
|
369
418
|
constructor() {
|
|
370
419
|
this.onDidCreateAuxiliaryEditorPart = Event.None;
|
|
371
|
-
this.
|
|
420
|
+
this.mainPart = new EmptyEditorPart();
|
|
421
|
+
this.activePart = this.mainPart;
|
|
422
|
+
this.parts = [this.mainPart];
|
|
372
423
|
this.getPart = unsupported;
|
|
373
424
|
this.createAuxiliaryEditorPart = unsupported;
|
|
374
425
|
this.onDidChangeGroupMaximized = Event.None;
|
|
375
426
|
this.toggleMaximizeGroup = unsupported;
|
|
376
427
|
this.toggleExpandGroup = unsupported;
|
|
428
|
+
this.partOptions = DEFAULT_EDITOR_PART_OPTIONS;
|
|
377
429
|
this.createEditorDropTarget = unsupported;
|
|
378
430
|
this._serviceBrand = undefined;
|
|
379
431
|
this.getLayout = unsupported;
|
|
@@ -414,15 +466,6 @@ class EmptyEditorGroupsService {
|
|
|
414
466
|
this.onDidChangeEditorPartOptions = Event.None;
|
|
415
467
|
this.enforcePartOptions = unsupported;
|
|
416
468
|
}
|
|
417
|
-
get activePart() {
|
|
418
|
-
return this;
|
|
419
|
-
}
|
|
420
|
-
get mainPart() {
|
|
421
|
-
return this;
|
|
422
|
-
}
|
|
423
|
-
get partOptions() {
|
|
424
|
-
return unsupported();
|
|
425
|
-
}
|
|
426
469
|
get contentDimension() { return unsupported(); }
|
|
427
470
|
get sideGroup() { return unsupported(); }
|
|
428
471
|
}
|
|
@@ -1815,8 +1858,8 @@ registerSingleton(ICustomEditorService, class CustomEditorService {
|
|
|
1815
1858
|
this.getAllCustomEditors = unsupported;
|
|
1816
1859
|
this.getContributedCustomEditors = unsupported;
|
|
1817
1860
|
this.getUserConfiguredCustomEditors = unsupported;
|
|
1818
|
-
this.registerCustomEditorCapabilities =
|
|
1819
|
-
this.getCustomEditorCapabilities =
|
|
1861
|
+
this.registerCustomEditorCapabilities = () => Disposable.None;
|
|
1862
|
+
this.getCustomEditorCapabilities = () => undefined;
|
|
1820
1863
|
}
|
|
1821
1864
|
get models() {
|
|
1822
1865
|
return unsupported();
|