@codingame/monaco-vscode-extensions-service-override 28.4.1 → 29.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.
- package/index.js +1 -0
- package/package.json +3 -3
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +34 -0
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.js +7 -0
- package/vscode/src/vs/platform/browserView/common/browserViewUri.d.ts +21 -0
- package/vscode/src/vs/platform/browserView/common/browserViewUri.js +34 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +25 -25
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowsers.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowsers.js +147 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +6 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.d.ts +8 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +160 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +19 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +134 -49
- 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/mainThreadDownloadService.js +1 -1
- 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 +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.js +47 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +9 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +4 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +21 -10
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +25 -23
- package/vscode/src/vs/workbench/api/common/shared/tasks.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +222 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/git/common/gitService.d.ts +22 -0
- 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/extensionRunningLocationTracker.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 +6 -6
|
@@ -221,13 +221,13 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
221
221
|
}
|
|
222
222
|
}, {
|
|
223
223
|
id: "join.disconnectRemote",
|
|
224
|
-
label: ( localize(
|
|
224
|
+
label: ( localize(15996, "Disconnect Remote Agent")),
|
|
225
225
|
order: WillShutdownJoinerOrder.Last
|
|
226
226
|
});
|
|
227
227
|
} else {
|
|
228
228
|
event.join(this._doStopExtensionHosts(), {
|
|
229
229
|
id: "join.stopExtensionHosts",
|
|
230
|
-
label: ( localize(
|
|
230
|
+
label: ( localize(15997, "Stopping Extension Hosts"))
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
}));
|
|
@@ -300,7 +300,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
300
300
|
this._notificationService.notify({
|
|
301
301
|
severity: Severity.Error,
|
|
302
302
|
message: ( localize(
|
|
303
|
-
|
|
303
|
+
15998,
|
|
304
304
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
305
305
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(", ")
|
|
306
306
|
))
|
|
@@ -537,7 +537,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
537
537
|
this._notificationService.notify({
|
|
538
538
|
severity: Severity.Error,
|
|
539
539
|
message: ( localize(
|
|
540
|
-
|
|
540
|
+
15998,
|
|
541
541
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
542
542
|
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(", ")
|
|
543
543
|
))
|
|
@@ -552,7 +552,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
552
552
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
553
553
|
if (!extensionHostManager) {
|
|
554
554
|
const msg = ( localize(
|
|
555
|
-
|
|
555
|
+
15999,
|
|
556
556
|
"No extension host found that can launch the test runner at {0}.",
|
|
557
557
|
(this._environmentService.extensionTestsLocationURI.toString())
|
|
558
558
|
));
|
|
@@ -722,7 +722,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
722
722
|
vetoReasons.add(reason);
|
|
723
723
|
}
|
|
724
724
|
}).catch(error => {
|
|
725
|
-
vetoReasons.add(( localize(
|
|
725
|
+
vetoReasons.add(( localize(16000, "{0} (Error: {1})", reason, toErrorMessage(error))));
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
}
|
|
@@ -740,9 +740,9 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
740
740
|
confirmed
|
|
741
741
|
} = await this._dialogService.confirm({
|
|
742
742
|
type: Severity.Warning,
|
|
743
|
-
message: ( localize(
|
|
743
|
+
message: ( localize(16001, "Please confirm restart of extensions.")),
|
|
744
744
|
detail: vetoReasonsArray.length === 1 ? vetoReasonsArray[0] : vetoReasonsArray.join("\n -"),
|
|
745
|
-
primaryButton: ( localize(
|
|
745
|
+
primaryButton: ( localize(16002, "Restart Anyway"))
|
|
746
746
|
});
|
|
747
747
|
if (confirmed) {
|
|
748
748
|
return true;
|
|
@@ -856,16 +856,16 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
856
856
|
this._remoteCrashTracker.registerCrash();
|
|
857
857
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
858
858
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
859
|
-
this._notificationService.status(( localize(
|
|
859
|
+
this._notificationService.status(( localize(16003, "The remote extension host terminated unexpectedly. Restarting...")), {
|
|
860
860
|
hideAfter: 5000
|
|
861
861
|
});
|
|
862
862
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
863
863
|
} else {
|
|
864
864
|
this._notificationService.prompt(Severity.Error, ( localize(
|
|
865
|
-
|
|
865
|
+
16004,
|
|
866
866
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
867
867
|
)), [{
|
|
868
|
-
label: ( localize(
|
|
868
|
+
label: ( localize(16005, "Restart Remote Extension Host")),
|
|
869
869
|
run: () => {
|
|
870
870
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
871
871
|
}
|
|
@@ -1413,7 +1413,7 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1415
1415
|
id: "activationEvents",
|
|
1416
|
-
label: ( localize(
|
|
1416
|
+
label: ( localize(16006, "Activation Events")),
|
|
1417
1417
|
access: {
|
|
1418
1418
|
canToggle: false
|
|
1419
1419
|
},
|
|
@@ -485,7 +485,7 @@ registerAction2(class MeasureExtHostLatencyAction extends Action2 {
|
|
|
485
485
|
constructor() {
|
|
486
486
|
super({
|
|
487
487
|
id: "editor.action.measureExtHostLatency",
|
|
488
|
-
title: ( localize2(
|
|
488
|
+
title: ( localize2(16007, "Measure Extension Host Latency")),
|
|
489
489
|
category: Categories.Developer,
|
|
490
490
|
f1: true
|
|
491
491
|
});
|
package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js
CHANGED
|
@@ -115,7 +115,7 @@ let ExtensionRunningLocationTracker = class ExtensionRunningLocationTracker {
|
|
|
115
115
|
if (!extension.extensionAffinity) {
|
|
116
116
|
continue;
|
|
117
117
|
}
|
|
118
|
-
if (!isProposedApiEnabled(extension
|
|
118
|
+
if (!isProposedApiEnabled(extension)) {
|
|
119
119
|
this._logService.warn(
|
|
120
120
|
`Extension '${extension.identifier.value}' declares 'extensionAffinity' in its package.json but does not enable the 'extensionAffinity' API proposal. Add '"enabledApiProposals": ["extensionAffinity"]' to the extension's package.json to use this feature.`
|
|
121
121
|
);
|
|
@@ -110,7 +110,7 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
|
|
|
110
110
|
}
|
|
111
111
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
112
112
|
id: "enabledApiProposals",
|
|
113
|
-
label: ( localize(
|
|
113
|
+
label: ( localize(16008, "API Proposals")),
|
|
114
114
|
access: {
|
|
115
115
|
canToggle: false
|
|
116
116
|
},
|
|
@@ -9,7 +9,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
9
9
|
const extension = result.get(systemExtension.identifier);
|
|
10
10
|
if (extension) {
|
|
11
11
|
logService.warn(( localize(
|
|
12
|
-
|
|
12
|
+
16097,
|
|
13
13
|
"Overwriting extension {0} with {1}.",
|
|
14
14
|
extension.extensionLocation.fsPath,
|
|
15
15
|
systemExtension.extensionLocation.fsPath
|
|
@@ -30,7 +30,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
30
30
|
userExtension.isBuiltin = true;
|
|
31
31
|
} else {
|
|
32
32
|
logService.warn(( localize(
|
|
33
|
-
|
|
33
|
+
16097,
|
|
34
34
|
"Overwriting extension {0} with {1}.",
|
|
35
35
|
extension.extensionLocation.fsPath,
|
|
36
36
|
userExtension.extensionLocation.fsPath
|
|
@@ -48,7 +48,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
48
48
|
const extension = result.get(workspaceExtension.identifier);
|
|
49
49
|
if (extension) {
|
|
50
50
|
logService.warn(( localize(
|
|
51
|
-
|
|
51
|
+
16098,
|
|
52
52
|
"Overwriting {0} with Workspace Extension {1}.",
|
|
53
53
|
extension.extensionLocation.fsPath,
|
|
54
54
|
workspaceExtension.extensionLocation.fsPath
|
|
@@ -58,7 +58,7 @@ function dedupExtensions(system, user, workspace, development, logService) {
|
|
|
58
58
|
});
|
|
59
59
|
development.forEach(developedExtension => {
|
|
60
60
|
logService.info(( localize(
|
|
61
|
-
|
|
61
|
+
16099,
|
|
62
62
|
"Loading development extension at {0}",
|
|
63
63
|
developedExtension.extensionLocation.fsPath
|
|
64
64
|
)));
|
|
@@ -22,14 +22,14 @@ const CSS_CACHE_STORAGE_KEY = "workbench.contrib.css.cache";
|
|
|
22
22
|
const cssExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
23
23
|
extensionPoint: "css",
|
|
24
24
|
jsonSchema: {
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(16320, "Contributes CSS files to be loaded in the workbench.")),
|
|
26
26
|
type: "array",
|
|
27
27
|
items: {
|
|
28
28
|
type: "object",
|
|
29
29
|
properties: {
|
|
30
30
|
path: {
|
|
31
31
|
description: ( localize(
|
|
32
|
-
|
|
32
|
+
16321,
|
|
33
33
|
"Path to the CSS file. The path is relative to the extension folder."
|
|
34
34
|
)),
|
|
35
35
|
type: "string"
|
|
@@ -114,14 +114,14 @@ let CSSExtensionPoint = class CSSExtensionPoint {
|
|
|
114
114
|
this.clearCacheForExtension(extensionId);
|
|
115
115
|
}
|
|
116
116
|
for (const extension of delta.added) {
|
|
117
|
-
if (!isProposedApiEnabled(extension.description
|
|
117
|
+
if (!isProposedApiEnabled(extension.description)) {
|
|
118
118
|
extension.collector.error(`The '${cssExtensionPoint.name}' contribution point is proposed API.`);
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
121
|
const extensionValue = extension.value;
|
|
122
122
|
const collector = extension.collector;
|
|
123
123
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
124
|
-
collector.error(( localize(
|
|
124
|
+
collector.error(( localize(16322, "'contributes.css' must be an array.")));
|
|
125
125
|
continue;
|
|
126
126
|
}
|
|
127
127
|
const extensionId = extension.description.identifier.value;
|
|
@@ -166,13 +166,13 @@ let CSSExtensionPoint = class CSSExtensionPoint {
|
|
|
166
166
|
const cssLocations = [];
|
|
167
167
|
for (const cssContribution of extensionValue) {
|
|
168
168
|
if (!cssContribution.path || typeof cssContribution.path !== "string") {
|
|
169
|
-
collector.error(( localize(
|
|
169
|
+
collector.error(( localize(16323, "'contributes.css.path' must be a string.")));
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
172
|
const cssLocation = joinPath(extensionLocation, cssContribution.path);
|
|
173
173
|
if (!isEqualOrParent(cssLocation, extensionLocation)) {
|
|
174
174
|
collector.warn(( localize(
|
|
175
|
-
|
|
175
|
+
16324,
|
|
176
176
|
"Expected 'contributes.css.path' ({0}) to be included inside extension's folder ({1}).",
|
|
177
177
|
cssLocation.path,
|
|
178
178
|
extensionLocation.path
|