@codingame/monaco-vscode-extensions-service-override 1.85.0 → 1.85.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.
Files changed (55) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +3 -3
  3. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +1 -1
  4. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +3 -3
  5. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +2 -2
  7. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +3 -3
  8. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +1 -1
  10. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -3
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +0 -40
  12. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +0 -141
  13. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +0 -37
  14. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +0 -342
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +0 -1197
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +0 -117
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +0 -83
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +0 -543
  19. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +0 -6
  20. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +0 -292
  21. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +0 -169
  22. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +0 -6
  23. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -255
  24. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +0 -195
  25. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +0 -260
  26. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +0 -5
  27. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +0 -26
  28. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -63
  29. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +0 -51
  30. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +0 -649
  31. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +0 -302
  32. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +0 -62
  33. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +0 -251
  34. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +0 -109
  35. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +0 -335
  36. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +0 -6
  37. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +0 -101
  38. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +0 -57
  39. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +0 -3
  40. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +0 -144
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +0 -482
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +0 -6
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +0 -92
  44. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +0 -56
  45. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +0 -110
  46. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +0 -260
  47. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +0 -616
  48. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +0 -309
  49. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +0 -38
  50. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +0 -167
  51. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +0 -80
  52. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +0 -70
  53. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -3
  54. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -108
  55. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +0 -79
@@ -1,108 +0,0 @@
1
- import { bufferToStream, streamToBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
2
- import { CancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
3
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
4
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
5
- import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
6
- import { filter } from 'monaco-editor/esm/vs/base/common/objects.js';
7
- import { NotebookCellsChangeType, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
8
- import { SimpleNotebookProviderInfo } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
9
-
10
- class NotebookFileWorkingCopyModel extends Disposable {
11
- constructor(_notebookModel, _notebookService, _configurationService) {
12
- super();
13
- this._notebookModel = _notebookModel;
14
- this._notebookService = _notebookService;
15
- this._configurationService = _configurationService;
16
- this._onDidChangeContent = this._register(( new Emitter()));
17
- this.onDidChangeContent = this._onDidChangeContent.event;
18
- this.configuration = undefined;
19
- this.onWillDispose = _notebookModel.onWillDispose.bind(_notebookModel);
20
- this._register(_notebookModel.onDidChangeContent(e => {
21
- for (const rawEvent of e.rawEvents) {
22
- if (rawEvent.kind === NotebookCellsChangeType.Initialize) {
23
- continue;
24
- }
25
- if (rawEvent.transient) {
26
- continue;
27
- }
28
- this._onDidChangeContent.fire({
29
- isRedoing: false,
30
- isUndoing: false,
31
- isInitial: false,
32
- });
33
- break;
34
- }
35
- }));
36
- if (_notebookModel.uri.scheme === Schemas.vscodeRemote) {
37
- this.configuration = {
38
- backupDelay: 10000
39
- };
40
- if (this._configurationService.getValue(NotebookSetting.remoteSaving)) {
41
- this.save = async (options, token) => {
42
- const serializer = await this.getNotebookSerializer();
43
- if (token.isCancellationRequested) {
44
- throw new CancellationError();
45
- }
46
- const stat = await serializer.save(this._notebookModel.uri, this._notebookModel.versionId, options, token);
47
- return stat;
48
- };
49
- }
50
- }
51
- }
52
- dispose() {
53
- this._notebookModel.dispose();
54
- super.dispose();
55
- }
56
- get notebookModel() {
57
- return this._notebookModel;
58
- }
59
- async snapshot(token) {
60
- const serializer = await this.getNotebookSerializer();
61
- const data = {
62
- metadata: filter(this._notebookModel.metadata, key => !serializer.options.transientDocumentMetadata[key]),
63
- cells: [],
64
- };
65
- for (const cell of this._notebookModel.cells) {
66
- const cellData = {
67
- cellKind: cell.cellKind,
68
- language: cell.language,
69
- mime: cell.mime,
70
- source: cell.getValue(),
71
- outputs: [],
72
- internalMetadata: cell.internalMetadata
73
- };
74
- cellData.outputs = !serializer.options.transientOutputs ? cell.outputs : [];
75
- cellData.metadata = filter(cell.metadata, key => !serializer.options.transientCellMetadata[key]);
76
- data.cells.push(cellData);
77
- }
78
- const bytes = await serializer.notebookToData(data);
79
- if (token.isCancellationRequested) {
80
- throw new CancellationError();
81
- }
82
- return bufferToStream(bytes);
83
- }
84
- async update(stream, token) {
85
- const serializer = await this.getNotebookSerializer();
86
- const bytes = await streamToBuffer(stream);
87
- const data = await serializer.dataToNotebook(bytes);
88
- if (token.isCancellationRequested) {
89
- throw new CancellationError();
90
- }
91
- this._notebookModel.reset(data.cells, data.metadata, serializer.options);
92
- }
93
- async getNotebookSerializer() {
94
- const info = await this._notebookService.withNotebookDataProvider(this.notebookModel.viewType);
95
- if (!(info instanceof SimpleNotebookProviderInfo)) {
96
- throw new Error('CANNOT open file notebook with this provider');
97
- }
98
- return info.serializer;
99
- }
100
- get versionId() {
101
- return this._notebookModel.alternativeVersionId;
102
- }
103
- pushStackElement() {
104
- this._notebookModel.pushStackElement('save', undefined, undefined);
105
- }
106
- }
107
-
108
- export { NotebookFileWorkingCopyModel };
@@ -1,79 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { timeout } from 'monaco-editor/esm/vs/base/common/async.js';
3
- import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
4
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
5
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
- import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
7
-
8
- let ResourceWorkingCopy = class ResourceWorkingCopy extends Disposable {
9
- constructor(resource, fileService) {
10
- super();
11
- this.resource = resource;
12
- this.fileService = fileService;
13
- this._onDidChangeOrphaned = this._register(( new Emitter()));
14
- this.onDidChangeOrphaned = this._onDidChangeOrphaned.event;
15
- this.orphaned = false;
16
- this._onWillDispose = this._register(( new Emitter()));
17
- this.onWillDispose = this._onWillDispose.event;
18
- this._register(this.fileService.onDidFilesChange(e => this.onDidFilesChange(e)));
19
- }
20
- isOrphaned() {
21
- return this.orphaned;
22
- }
23
- async onDidFilesChange(e) {
24
- let fileEventImpactsUs = false;
25
- let newInOrphanModeGuess;
26
- if (this.orphaned) {
27
- const fileWorkingCopyResourceAdded = e.contains(this.resource, 1 );
28
- if (fileWorkingCopyResourceAdded) {
29
- newInOrphanModeGuess = false;
30
- fileEventImpactsUs = true;
31
- }
32
- }
33
- else {
34
- const fileWorkingCopyResourceDeleted = e.contains(this.resource, 2 );
35
- if (fileWorkingCopyResourceDeleted) {
36
- newInOrphanModeGuess = true;
37
- fileEventImpactsUs = true;
38
- }
39
- }
40
- if (fileEventImpactsUs && this.orphaned !== newInOrphanModeGuess) {
41
- let newInOrphanModeValidated = false;
42
- if (newInOrphanModeGuess) {
43
- await timeout(100, CancellationToken.None);
44
- if (this.isDisposed()) {
45
- newInOrphanModeValidated = true;
46
- }
47
- else {
48
- const exists = await this.fileService.exists(this.resource);
49
- newInOrphanModeValidated = !exists;
50
- }
51
- }
52
- if (this.orphaned !== newInOrphanModeValidated && !this.isDisposed()) {
53
- this.setOrphaned(newInOrphanModeValidated);
54
- }
55
- }
56
- }
57
- setOrphaned(orphaned) {
58
- if (this.orphaned !== orphaned) {
59
- this.orphaned = orphaned;
60
- this._onDidChangeOrphaned.fire();
61
- }
62
- }
63
- isDisposed() {
64
- return this._store.isDisposed;
65
- }
66
- dispose() {
67
- this.orphaned = false;
68
- this._onWillDispose.fire();
69
- super.dispose();
70
- }
71
- isModified() {
72
- return this.isDirty();
73
- }
74
- };
75
- ResourceWorkingCopy = ( __decorate([
76
- ( __param(1, IFileService))
77
- ], ResourceWorkingCopy));
78
-
79
- export { ResourceWorkingCopy };