@codingame/monaco-vscode-extensions-service-override 30.0.1 → 31.0.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.
- package/package.json +3 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +63 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowsers.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +22 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +171 -83
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +7 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +4 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +46 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.d.ts +0 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.js +4 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +34 -17
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/git/common/gitService.d.ts +7 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +12 -12
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
- package/vscode/src/vs/workbench/services/themes/browser/cssExtensionPoint.js +5 -5
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +0 -34
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.js +0 -7
- package/vscode/src/vs/platform/browserView/common/browserViewUri.d.ts +0 -21
- package/vscode/src/vs/platform/browserView/common/browserViewUri.js +0 -34
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +0 -61
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +0 -233
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
4
|
-
import { truncate } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
5
|
-
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
|
-
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
7
|
-
import { BrowserViewUri } from '../../../../platform/browserView/common/browserViewUri.js';
|
|
8
|
-
import { IBrowserViewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/browserView/common/browserView.service';
|
|
9
|
-
import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
10
|
-
import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
|
|
11
|
-
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
12
|
-
import { TAB_ACTIVE_FOREGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
13
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
|
-
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
-
import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
16
|
-
import { ShutdownReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
17
|
-
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
18
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
19
|
-
import { logBrowserOpen } from '../../../../platform/browserView/common/browserViewTelemetry.js';
|
|
20
|
-
|
|
21
|
-
var BrowserEditorInput_1;
|
|
22
|
-
const LOADING_SPINNER_SVG = color => `
|
|
23
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
24
|
-
<path d="M8 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm0 1.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11z" fill="${color}" opacity="0.3"/>
|
|
25
|
-
<path d="M8 1a7 7 0 0 1 7 7h-1.5A5.5 5.5 0 0 0 8 2.5V1z" fill="${color}">
|
|
26
|
-
<animateTransform attributeName="transform" type="rotate" dur="1s" repeatCount="indefinite" values="0 8 8;360 8 8"/>
|
|
27
|
-
</path>
|
|
28
|
-
</svg>
|
|
29
|
-
`;
|
|
30
|
-
const MAX_TITLE_LENGTH = 30;
|
|
31
|
-
let BrowserEditorInput = class BrowserEditorInput extends EditorInput {
|
|
32
|
-
static {
|
|
33
|
-
BrowserEditorInput_1 = this;
|
|
34
|
-
}
|
|
35
|
-
static {
|
|
36
|
-
this.ID = "workbench.editorinputs.browser";
|
|
37
|
-
}
|
|
38
|
-
static {
|
|
39
|
-
this.EDITOR_ID = "workbench.editor.browser";
|
|
40
|
-
}
|
|
41
|
-
static {
|
|
42
|
-
this.DEFAULT_LABEL = ( localize(4617, "Browser"));
|
|
43
|
-
}
|
|
44
|
-
constructor(
|
|
45
|
-
options,
|
|
46
|
-
themeService,
|
|
47
|
-
browserViewWorkbenchService,
|
|
48
|
-
lifecycleService,
|
|
49
|
-
instantiationService,
|
|
50
|
-
telemetryService
|
|
51
|
-
) {
|
|
52
|
-
super();
|
|
53
|
-
this.themeService = themeService;
|
|
54
|
-
this.browserViewWorkbenchService = browserViewWorkbenchService;
|
|
55
|
-
this.lifecycleService = lifecycleService;
|
|
56
|
-
this.instantiationService = instantiationService;
|
|
57
|
-
this.telemetryService = telemetryService;
|
|
58
|
-
this._id = options.id;
|
|
59
|
-
this._initialData = options;
|
|
60
|
-
this._register(this.lifecycleService.onWillShutdown(e => {
|
|
61
|
-
if (this._model) {
|
|
62
|
-
if (e.reason === ShutdownReason.RELOAD) {
|
|
63
|
-
void this._model.setVisible(false);
|
|
64
|
-
} else {
|
|
65
|
-
this._model.dispose();
|
|
66
|
-
this._model = undefined;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
get id() {
|
|
72
|
-
return this._id;
|
|
73
|
-
}
|
|
74
|
-
get url() {
|
|
75
|
-
return this._model ? this._model.url : this._initialData.url;
|
|
76
|
-
}
|
|
77
|
-
get title() {
|
|
78
|
-
return this._model ? this._model.title : this._initialData.title;
|
|
79
|
-
}
|
|
80
|
-
get favicon() {
|
|
81
|
-
return this._model ? this._model.favicon : this._initialData.favicon;
|
|
82
|
-
}
|
|
83
|
-
navigate(url) {
|
|
84
|
-
if (this._model) {
|
|
85
|
-
void this._model.loadURL(url);
|
|
86
|
-
} else {
|
|
87
|
-
this._initialData = {
|
|
88
|
-
id: this._id,
|
|
89
|
-
url
|
|
90
|
-
};
|
|
91
|
-
this._onDidChangeLabel.fire();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
async resolve() {
|
|
95
|
-
if (!this._model && !this._modelPromise) {
|
|
96
|
-
this._modelPromise = (async () => {
|
|
97
|
-
this._model = await this.browserViewWorkbenchService.getOrCreateBrowserViewModel(this._id);
|
|
98
|
-
this._modelPromise = undefined;
|
|
99
|
-
this._register(this._model.onWillDispose(() => {
|
|
100
|
-
this._model = undefined;
|
|
101
|
-
}));
|
|
102
|
-
this._register(this._model.onDidClose(() => {
|
|
103
|
-
this.dispose();
|
|
104
|
-
}));
|
|
105
|
-
this._register(this._model.onDidChangeTitle(() => this._onDidChangeLabel.fire()));
|
|
106
|
-
this._register(this._model.onDidChangeFavicon(() => this._onDidChangeLabel.fire()));
|
|
107
|
-
this._register(this._model.onDidChangeLoadingState(() => this._onDidChangeLabel.fire()));
|
|
108
|
-
this._register(this._model.onDidNavigate(() => this._onDidChangeLabel.fire()));
|
|
109
|
-
if (this._initialData.url && this._model.url !== this._initialData.url) {
|
|
110
|
-
void this._model.loadURL(this._initialData.url);
|
|
111
|
-
}
|
|
112
|
-
return this._model;
|
|
113
|
-
})();
|
|
114
|
-
}
|
|
115
|
-
return this._model || this._modelPromise;
|
|
116
|
-
}
|
|
117
|
-
get typeId() {
|
|
118
|
-
return BrowserEditorInput_1.ID;
|
|
119
|
-
}
|
|
120
|
-
get editorId() {
|
|
121
|
-
return BrowserEditorInput_1.EDITOR_ID;
|
|
122
|
-
}
|
|
123
|
-
get capabilities() {
|
|
124
|
-
return EditorInputCapabilities.ForceReveal | EditorInputCapabilities.Readonly;
|
|
125
|
-
}
|
|
126
|
-
get resource() {
|
|
127
|
-
if (this._resourceBeforeDisposal) {
|
|
128
|
-
return this._resourceBeforeDisposal;
|
|
129
|
-
}
|
|
130
|
-
return BrowserViewUri.forId(this._id);
|
|
131
|
-
}
|
|
132
|
-
getIcon() {
|
|
133
|
-
if (this._model) {
|
|
134
|
-
if (this._model.loading) {
|
|
135
|
-
const color = this.themeService.getColorTheme().getColor(TAB_ACTIVE_FOREGROUND);
|
|
136
|
-
return ( URI.parse(
|
|
137
|
-
"data:image/svg+xml;utf8," + encodeURIComponent(LOADING_SPINNER_SVG(color?.toString()))
|
|
138
|
-
));
|
|
139
|
-
}
|
|
140
|
-
if (this._model.favicon) {
|
|
141
|
-
return ( URI.parse(this._model.favicon));
|
|
142
|
-
}
|
|
143
|
-
return Codicon.globe;
|
|
144
|
-
}
|
|
145
|
-
if (this._initialData.favicon) {
|
|
146
|
-
return ( URI.parse(this._initialData.favicon));
|
|
147
|
-
}
|
|
148
|
-
return Codicon.globe;
|
|
149
|
-
}
|
|
150
|
-
getName() {
|
|
151
|
-
return truncate(this.getTitle(), MAX_TITLE_LENGTH);
|
|
152
|
-
}
|
|
153
|
-
getTitle() {
|
|
154
|
-
if (this._model && this._model.url) {
|
|
155
|
-
if (this._model.title) {
|
|
156
|
-
return this._model.title;
|
|
157
|
-
}
|
|
158
|
-
const authority = ( URI.parse(this._model.url)).authority;
|
|
159
|
-
return authority || BrowserEditorInput_1.DEFAULT_LABEL;
|
|
160
|
-
}
|
|
161
|
-
if (this._initialData.title) {
|
|
162
|
-
return this._initialData.title;
|
|
163
|
-
}
|
|
164
|
-
const url = this._initialData.url ?? "";
|
|
165
|
-
const authority = ( URI.parse(url)).authority;
|
|
166
|
-
return authority || BrowserEditorInput_1.DEFAULT_LABEL;
|
|
167
|
-
}
|
|
168
|
-
getDescription() {
|
|
169
|
-
return this.url;
|
|
170
|
-
}
|
|
171
|
-
canReopen() {
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
matches(otherInput) {
|
|
175
|
-
if (super.matches(otherInput)) {
|
|
176
|
-
return true;
|
|
177
|
-
}
|
|
178
|
-
if (otherInput instanceof BrowserEditorInput_1) {
|
|
179
|
-
return this._id === otherInput._id;
|
|
180
|
-
}
|
|
181
|
-
if (hasKey(otherInput, {
|
|
182
|
-
resource: true
|
|
183
|
-
}) && otherInput.resource?.scheme === BrowserViewUri.scheme) {
|
|
184
|
-
const parsed = BrowserViewUri.parse(otherInput.resource);
|
|
185
|
-
if (parsed) {
|
|
186
|
-
return this._id === parsed.id;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
copy() {
|
|
192
|
-
logBrowserOpen(this.telemetryService, "copyToNewWindow");
|
|
193
|
-
return this.instantiationService.createInstance(BrowserEditorInput_1, {
|
|
194
|
-
id: generateUuid(),
|
|
195
|
-
url: this.url,
|
|
196
|
-
title: this.title,
|
|
197
|
-
favicon: this.favicon
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
toUntyped() {
|
|
201
|
-
const viewState = {
|
|
202
|
-
url: this.url,
|
|
203
|
-
title: this.title,
|
|
204
|
-
favicon: this.favicon
|
|
205
|
-
};
|
|
206
|
-
return {
|
|
207
|
-
resource: this.resource,
|
|
208
|
-
options: {
|
|
209
|
-
override: BrowserEditorInput_1.EDITOR_ID,
|
|
210
|
-
viewState
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
dispose() {
|
|
215
|
-
if (this._model) {
|
|
216
|
-
this._resourceBeforeDisposal = this.resource;
|
|
217
|
-
this._model.dispose();
|
|
218
|
-
this._model = undefined;
|
|
219
|
-
}
|
|
220
|
-
super.dispose();
|
|
221
|
-
}
|
|
222
|
-
serialize() {
|
|
223
|
-
return {
|
|
224
|
-
id: this._id,
|
|
225
|
-
url: this.url,
|
|
226
|
-
title: this.title,
|
|
227
|
-
favicon: this.favicon
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
BrowserEditorInput = BrowserEditorInput_1 = ( __decorate([( __param(1, IThemeService)), ( __param(2, IBrowserViewWorkbenchService)), ( __param(3, ILifecycleService)), ( __param(4, IInstantiationService)), ( __param(5, ITelemetryService))], BrowserEditorInput));
|
|
232
|
-
|
|
233
|
-
export { BrowserEditorInput };
|