@codingame/monaco-vscode-extensions-service-override 2.1.4 → 2.2.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.
Files changed (21) hide show
  1. package/extensions.js +3 -0
  2. package/package.json +3 -3
  3. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  4. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
  5. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
  6. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  7. package/vscode/src/vs/platform/log/browser/log.js +0 -26
  8. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +0 -92
  9. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +0 -109
  10. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +0 -397
  11. package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +0 -5
  12. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +0 -1279
  13. package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +0 -19
  14. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +0 -125
  15. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +0 -344
  16. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +0 -453
  17. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +0 -178
  18. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +0 -6
  19. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +0 -36
  20. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +0 -180
  21. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -5
@@ -1,180 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Event } from 'vscode/vscode/vs/base/common/event';
3
- import { basename, extname } from 'vscode/vscode/vs/base/common/path';
4
- import { joinPath, isEqual } from 'vscode/vscode/vs/base/common/resources';
5
- import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
6
- import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
7
- import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
8
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
9
- import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
10
- import { IInteractiveDocumentService } from 'vscode/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService';
11
- import { IInteractiveHistoryService } from './interactiveHistoryService.js';
12
- import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
13
- import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
14
- import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
15
-
16
- var InteractiveEditorInput_1;
17
- let InteractiveEditorInput = class InteractiveEditorInput extends EditorInput {
18
- static { InteractiveEditorInput_1 = this; }
19
- static create(instantiationService, resource, inputResource, title, language) {
20
- return instantiationService.createInstance(InteractiveEditorInput_1, resource, inputResource, title, language);
21
- }
22
- static { this.windowNames = {}; }
23
- static setName(notebookUri, title) {
24
- if (title) {
25
- this.windowNames[notebookUri.path] = title;
26
- }
27
- }
28
- static { this.ID = 'workbench.input.interactive'; }
29
- get editorId() {
30
- return 'interactive';
31
- }
32
- get typeId() {
33
- return InteractiveEditorInput_1.ID;
34
- }
35
- get language() {
36
- return this._inputModelRef?.object.textEditorModel.getLanguageId() ?? this._initLanguage;
37
- }
38
- get notebookEditorInput() {
39
- return this._notebookEditorInput;
40
- }
41
- get editorInputs() {
42
- return [this._notebookEditorInput];
43
- }
44
- get resource() {
45
- return this._resource;
46
- }
47
- get inputResource() {
48
- return this._inputResource;
49
- }
50
- get primary() {
51
- return this._notebookEditorInput;
52
- }
53
- constructor(resource, inputResource, title, languageId, instantiationService, textModelService, interactiveDocumentService, historyService, _notebookService, _fileDialogService) {
54
- const input = NotebookEditorInput.getOrCreate(instantiationService, resource, undefined, 'interactive', {});
55
- super();
56
- this._notebookService = _notebookService;
57
- this._fileDialogService = _fileDialogService;
58
- this._notebookEditorInput = input;
59
- this._register(this._notebookEditorInput);
60
- this.name = title ?? InteractiveEditorInput_1.windowNames[resource.path] ?? basename(resource.path, extname(resource.path));
61
- this._initLanguage = languageId;
62
- this._resource = resource;
63
- this._inputResource = inputResource;
64
- this._inputResolver = null;
65
- this._editorModelReference = null;
66
- this._inputModelRef = null;
67
- this._textModelService = textModelService;
68
- this._interactiveDocumentService = interactiveDocumentService;
69
- this._historyService = historyService;
70
- this._registerListeners();
71
- }
72
- _registerListeners() {
73
- const oncePrimaryDisposed = Event.once(this.primary.onWillDispose);
74
- this._register(oncePrimaryDisposed(() => {
75
- if (!this.isDisposed()) {
76
- this.dispose();
77
- }
78
- }));
79
- this._register(this.primary.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
80
- this._register(this.primary.onDidChangeLabel(() => this._onDidChangeLabel.fire()));
81
- this._register(this.primary.onDidChangeCapabilities(() => this._onDidChangeCapabilities.fire()));
82
- }
83
- get capabilities() {
84
- return 4
85
- | 2
86
- | 1024
87
- | 512 ;
88
- }
89
- async _resolveEditorModel() {
90
- if (!this._editorModelReference) {
91
- this._editorModelReference = await this._notebookEditorInput.resolve();
92
- }
93
- return this._editorModelReference;
94
- }
95
- async resolve() {
96
- if (this._editorModelReference) {
97
- return this._editorModelReference;
98
- }
99
- if (this._inputResolver) {
100
- return this._inputResolver;
101
- }
102
- this._inputResolver = this._resolveEditorModel();
103
- return this._inputResolver;
104
- }
105
- async resolveInput(language) {
106
- if (this._inputModelRef) {
107
- return this._inputModelRef.object.textEditorModel;
108
- }
109
- const resolvedLanguage = language ?? this._initLanguage ?? PLAINTEXT_LANGUAGE_ID;
110
- this._interactiveDocumentService.willCreateInteractiveDocument(this.resource, this.inputResource, resolvedLanguage);
111
- this._inputModelRef = await this._textModelService.createModelReference(this.inputResource);
112
- return this._inputModelRef.object.textEditorModel;
113
- }
114
- async save(group, options) {
115
- if (this._editorModelReference) {
116
- if (this.hasCapability(4 )) {
117
- return this.saveAs(group, options);
118
- }
119
- else {
120
- await this._editorModelReference.save(options);
121
- }
122
- return this;
123
- }
124
- return undefined;
125
- }
126
- async saveAs(group, options) {
127
- if (!this._editorModelReference) {
128
- return undefined;
129
- }
130
- const provider = this._notebookService.getContributedNotebookType('interactive');
131
- if (!provider) {
132
- return undefined;
133
- }
134
- const filename = this.getName() + '.ipynb';
135
- const pathCandidate = joinPath(await this._fileDialogService.defaultFilePath(), filename);
136
- const target = await this._fileDialogService.pickFileToSave(pathCandidate, options?.availableFileSystems);
137
- if (!target) {
138
- return undefined;
139
- }
140
- return await this._editorModelReference.saveAs(target);
141
- }
142
- matches(otherInput) {
143
- if (super.matches(otherInput)) {
144
- return true;
145
- }
146
- if (otherInput instanceof InteractiveEditorInput_1) {
147
- return isEqual(this.resource, otherInput.resource) && isEqual(this.inputResource, otherInput.inputResource);
148
- }
149
- return false;
150
- }
151
- getName() {
152
- return this.name;
153
- }
154
- isModified() {
155
- return this._editorModelReference?.isModified() ?? false;
156
- }
157
- dispose() {
158
- this._editorModelReference?.revert({ soft: true });
159
- this._notebookEditorInput?.dispose();
160
- this._editorModelReference?.dispose();
161
- this._editorModelReference = null;
162
- this._interactiveDocumentService.willRemoveInteractiveDocument(this.resource, this.inputResource);
163
- this._inputModelRef?.dispose();
164
- this._inputModelRef = null;
165
- super.dispose();
166
- }
167
- get historyService() {
168
- return this._historyService;
169
- }
170
- };
171
- InteractiveEditorInput = InteractiveEditorInput_1 = ( __decorate([
172
- ( __param(4, IInstantiationService)),
173
- ( __param(5, ITextModelService)),
174
- ( __param(6, IInteractiveDocumentService)),
175
- ( __param(7, IInteractiveHistoryService)),
176
- ( __param(8, INotebookService)),
177
- ( __param(9, IFileDialogService))
178
- ], InteractiveEditorInput));
179
-
180
- export { InteractiveEditorInput };
@@ -1,5 +0,0 @@
1
- import { createDecorator } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
2
-
3
- const IInteractiveHistoryService = ( createDecorator('IInteractiveHistoryService'));
4
-
5
- export { IInteractiveHistoryService };