@codingame/monaco-vscode-extensions-service-override 19.1.4 → 20.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/index.js +3 -0
- package/package.json +27 -27
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +10 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +85 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +9 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadChatOutputRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatOutputRenderer.js +44 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +42 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +247 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.d.ts +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +9 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.js +23 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.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/mainThreadLanguageFeatures.d.ts +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +12 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +8 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +38 -37
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +11 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +2 -2
- 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/mainThreadSCM.d.ts +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +21 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +25 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +5 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.d.ts +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +9 -2
- 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/mainThreadWebviewManager.js +3 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -2
- 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/editTelemetry/browser/telemetry/forwardingTelemetryService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/forwardingTelemetryService.js +67 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -5
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +32 -22
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +2 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +2 -5
- 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/extensions/common/lazyCreateExtensionHostManager.d.ts +4 -7
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +9 -11
|
@@ -9,9 +9,10 @@ import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severit
|
|
|
9
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
12
|
+
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
12
13
|
import { LogLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
13
14
|
import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
|
|
14
|
-
import { McpServerTransportType, McpServerDefinition, McpServerLaunch, McpConnectionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
15
|
+
import { McpServerTransportType, McpServerDefinition, McpServerTrust, McpServerLaunch, McpConnectionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
15
16
|
import { IAuthenticationMcpAccessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service';
|
|
16
17
|
import { IAuthenticationMcpService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpService.service';
|
|
17
18
|
import { IAuthenticationMcpUsageService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service';
|
|
@@ -74,10 +75,12 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
74
75
|
const serverDefinitions = observableValue('mcpServers', servers);
|
|
75
76
|
const handle = this._mcpRegistry.registerCollection({
|
|
76
77
|
...collection,
|
|
78
|
+
source: ( new ExtensionIdentifier(collection.extensionId)),
|
|
77
79
|
resolveServerLanch: collection.canResolveLaunch ? (async (def) => {
|
|
78
80
|
const r = await this._proxy.$resolveMcpLaunch(collection.id, def.label);
|
|
79
81
|
return r ? McpServerLaunch.fromSerialized(r) : undefined;
|
|
80
82
|
}) : undefined,
|
|
83
|
+
trustBehavior: collection.isTrustedByDefault ? McpServerTrust.Kind.Trusted : McpServerTrust.Kind.TrustedOnNonce,
|
|
81
84
|
remoteAuthority: this._extHostContext.remoteAuthority,
|
|
82
85
|
serverDefinitions,
|
|
83
86
|
});
|
|
@@ -174,9 +177,9 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
174
177
|
}
|
|
175
178
|
async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
|
|
176
179
|
const result = await this.dialogService.prompt({
|
|
177
|
-
message: ( localize(
|
|
180
|
+
message: ( localize(2481, "Incorrect account detected")),
|
|
178
181
|
detail: ( localize(
|
|
179
|
-
|
|
182
|
+
2482,
|
|
180
183
|
"The chosen account, {0}, does not match the requested account, {1}.",
|
|
181
184
|
chosenAccountLabel,
|
|
182
185
|
requestedAccountLabel
|
|
@@ -185,11 +188,11 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
185
188
|
cancelButton: true,
|
|
186
189
|
buttons: [
|
|
187
190
|
{
|
|
188
|
-
label: ( localize(
|
|
191
|
+
label: ( localize(2483, 'Keep {0}', chosenAccountLabel)),
|
|
189
192
|
run: () => chosenAccountLabel
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
|
-
label: ( localize(
|
|
195
|
+
label: ( localize(2484, 'Login with {0}', requestedAccountLabel)),
|
|
193
196
|
run: () => requestedAccountLabel
|
|
194
197
|
}
|
|
195
198
|
],
|
|
@@ -202,20 +205,20 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
202
205
|
async loginPrompt(mcpLabel, providerLabel, recreatingSession) {
|
|
203
206
|
const message = recreatingSession
|
|
204
207
|
? ( localize(
|
|
205
|
-
|
|
208
|
+
2485,
|
|
206
209
|
"The MCP Server Definition '{0}' wants you to authenticate to {1}.",
|
|
207
210
|
mcpLabel,
|
|
208
211
|
providerLabel
|
|
209
212
|
))
|
|
210
213
|
: ( localize(
|
|
211
|
-
|
|
214
|
+
2486,
|
|
212
215
|
"The MCP Server Definition '{0}' wants to authenticate to {1}.",
|
|
213
216
|
mcpLabel,
|
|
214
217
|
providerLabel
|
|
215
218
|
));
|
|
216
219
|
const buttons = [
|
|
217
220
|
{
|
|
218
|
-
label: ( localize(
|
|
221
|
+
label: ( localize(2487, "&&Allow")),
|
|
219
222
|
run() {
|
|
220
223
|
return true;
|
|
221
224
|
},
|
|
@@ -60,13 +60,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
60
60
|
sourceIsUrgent = MainThreadMessageService_1.URGENT_NOTIFICATION_SOURCES.includes(source.id);
|
|
61
61
|
}
|
|
62
62
|
if (!source) {
|
|
63
|
-
source = ( localize(
|
|
63
|
+
source = ( localize(2488, "Extension"));
|
|
64
64
|
}
|
|
65
65
|
const secondaryActions = [];
|
|
66
66
|
if (options.source) {
|
|
67
67
|
secondaryActions.push(toAction({
|
|
68
68
|
id: options.source.identifier.value,
|
|
69
|
-
label: ( localize(
|
|
69
|
+
label: ( localize(2489, "Manage Extension")),
|
|
70
70
|
run: () => {
|
|
71
71
|
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
72
72
|
}
|
|
@@ -103,13 +103,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
103
103
|
if (!cancelButton) {
|
|
104
104
|
if (buttons.length > 0) {
|
|
105
105
|
cancelButton = {
|
|
106
|
-
label: ( localize(
|
|
106
|
+
label: ( localize(2490, "Cancel")),
|
|
107
107
|
run: () => undefined
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
111
|
cancelButton = {
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(2491, "&&OK")),
|
|
113
113
|
run: () => undefined
|
|
114
114
|
};
|
|
115
115
|
}
|
|
@@ -11,7 +11,7 @@ import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
11
11
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
12
12
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
13
13
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
14
|
-
import { SimpleNotebookProviderInfo } from '@codingame/monaco-vscode-
|
|
14
|
+
import { SimpleNotebookProviderInfo } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
15
15
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
16
16
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
17
17
|
import { SerializableObjectWithBuffers } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/proxyIdentifier';
|
|
@@ -8,8 +8,8 @@ import { MainThreadNotebookDocuments } from './mainThreadNotebookDocuments.js';
|
|
|
8
8
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
9
9
|
import { MainThreadNotebookEditors } from './mainThreadNotebookEditors.js';
|
|
10
10
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
11
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
12
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
11
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
12
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
13
13
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
14
14
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
15
15
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
-
import { INotebookEditor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookEditor } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
5
|
-
import { ICellRange } from "@codingame/monaco-vscode-
|
|
5
|
+
import { ICellRange } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
6
6
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
7
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
8
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
@@ -5,9 +5,9 @@ import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objec
|
|
|
5
5
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
6
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
7
|
import { EditorActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
8
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
8
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
9
9
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
10
|
-
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-
|
|
10
|
+
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
11
11
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
12
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { ExtHostContext, NotebookEditorRevealType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -18,7 +18,7 @@ class ExtHostNotebookDocumentSaveParticipant {
|
|
|
18
18
|
}
|
|
19
19
|
let _warningTimeout;
|
|
20
20
|
const p = ( new Promise((resolve, reject) => {
|
|
21
|
-
_warningTimeout = setTimeout(() => reject(( new Error(( localize(
|
|
21
|
+
_warningTimeout = setTimeout(() => reject(( new Error(( localize(2492, "Aborted onWillSaveNotebookDocument-event after 1750ms"))))), 1750);
|
|
22
22
|
this._proxy.$participateInSave(workingCopy.resource, context.reason, token).then(_ => {
|
|
23
23
|
clearTimeout(_warningTimeout);
|
|
24
24
|
return undefined;
|
|
@@ -69,11 +69,11 @@ let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
|
69
69
|
}
|
|
70
70
|
_showChannelQuietly(channel) {
|
|
71
71
|
const statusProperties = {
|
|
72
|
-
name: ( localize(
|
|
72
|
+
name: ( localize(2493, "Show Output")),
|
|
73
73
|
text: '$(output)',
|
|
74
|
-
ariaLabel: ( localize(
|
|
74
|
+
ariaLabel: ( localize(2494, "Show {0} Output Channel", channel.label)),
|
|
75
75
|
command: `workbench.action.output.show.${channel.id}`,
|
|
76
|
-
tooltip: ( localize(
|
|
76
|
+
tooltip: ( localize(2495, "Show {0} Output Channel", channel.label)),
|
|
77
77
|
kind: 'prominent'
|
|
78
78
|
};
|
|
79
79
|
if (!this._outputStatusItem.value) {
|
|
@@ -37,7 +37,7 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
37
37
|
location: ProgressLocation.Notification,
|
|
38
38
|
secondaryActions: [toAction({
|
|
39
39
|
id: extensionId,
|
|
40
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(2496, "Manage Extension")),
|
|
41
41
|
run: () => this._commandService.executeCommand('_extensions.manage', extensionId)
|
|
42
42
|
})]
|
|
43
43
|
};
|
|
@@ -4,6 +4,7 @@ import { ISCMViewService } from "@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
4
4
|
import { ISCMService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
5
5
|
import { MainThreadSCMShape, SCMProviderFeatures, SCMRawResourceSplices, SCMGroupFeatures, SCMHistoryItemRefsChangeEventDto, SCMHistoryItemRefDto } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
6
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
7
8
|
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
8
9
|
import { IQuickDiffService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/quickDiff.service";
|
|
9
10
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
@@ -27,7 +28,10 @@ export declare class MainThreadSCM implements MainThreadSCMShape {
|
|
|
27
28
|
private readonly _disposables;
|
|
28
29
|
constructor(extHostContext: IExtHostContext, scmService: ISCMService, scmViewService: ISCMViewService, languageService: ILanguageService, modelService: IModelService, textModelService: ITextModelService, quickDiffService: IQuickDiffService, _uriIdentService: IUriIdentityService, workspaceContextService: IWorkspaceContextService);
|
|
29
30
|
dispose(): void;
|
|
30
|
-
$registerSourceControl(handle: number, id: string, label: string, rootUri: UriComponents | undefined,
|
|
31
|
+
$registerSourceControl(handle: number, parentHandle: number | undefined, id: string, label: string, rootUri: UriComponents | undefined, iconPath: UriComponents | {
|
|
32
|
+
light: UriComponents;
|
|
33
|
+
dark: UriComponents;
|
|
34
|
+
} | ThemeIcon | undefined, inputBoxDocumentUri: UriComponents): Promise<void>;
|
|
31
35
|
$updateSourceControl(handle: number, features: SCMProviderFeatures): Promise<void>;
|
|
32
36
|
$unregisterSourceControl(handle: number): Promise<void>;
|
|
33
37
|
$registerGroups(sourceControlHandle: number, groups: [
|
|
@@ -12,7 +12,7 @@ import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/c
|
|
|
12
12
|
import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
|
|
13
13
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
14
|
import { IQuickDiffService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/quickDiff.service';
|
|
15
|
-
import { ResourceTree } from '@codingame/monaco-vscode-
|
|
15
|
+
import { ResourceTree } from '@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common/vscode/vs/base/common/resourceTree';
|
|
16
16
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
17
17
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
18
18
|
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
@@ -21,7 +21,7 @@ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/com
|
|
|
21
21
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
22
22
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
23
23
|
import { structuralEquals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/equals';
|
|
24
|
-
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from '@codingame/monaco-vscode-
|
|
24
|
+
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from '@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common/vscode/vs/workbench/contrib/scm/browser/scmHistory';
|
|
25
25
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
26
26
|
import { observableValueOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValueOpts';
|
|
27
27
|
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
@@ -200,13 +200,19 @@ class MainThreadSCMHistoryProvider {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
class MainThreadSCMProvider {
|
|
203
|
-
|
|
204
|
-
get
|
|
203
|
+
get id() { return `scm${this._handle}`; }
|
|
204
|
+
get parentId() {
|
|
205
|
+
return this._parentHandle !== undefined
|
|
206
|
+
? `scm${this._parentHandle}`
|
|
207
|
+
: undefined;
|
|
208
|
+
}
|
|
209
|
+
get providerId() { return this._providerId; }
|
|
205
210
|
get handle() { return this._handle; }
|
|
206
211
|
get label() { return this._label; }
|
|
207
212
|
get rootUri() { return this._rootUri; }
|
|
213
|
+
get iconPath() { return this._iconPath; }
|
|
208
214
|
get inputBoxTextModel() { return this._inputBoxTextModel; }
|
|
209
|
-
get contextValue() { return this.
|
|
215
|
+
get contextValue() { return this._contextValue; }
|
|
210
216
|
get acceptInputCommand() { return this.features.acceptInputCommand; }
|
|
211
217
|
get count() { return this._count; }
|
|
212
218
|
get statusBarCommands() { return this._statusBarCommands; }
|
|
@@ -214,17 +220,18 @@ class MainThreadSCMProvider {
|
|
|
214
220
|
get commitTemplate() { return this._commitTemplate; }
|
|
215
221
|
get actionButton() { return this._actionButton; }
|
|
216
222
|
get historyProvider() { return this._historyProvider; }
|
|
217
|
-
constructor(proxy, _handle, _providerId, _label, _rootUri, _inputBoxTextModel, _quickDiffService, _uriIdentService, _workspaceContextService) {
|
|
223
|
+
constructor(proxy, _handle, _parentHandle, _providerId, _label, _rootUri, _iconPath, _inputBoxTextModel, _quickDiffService, _uriIdentService, _workspaceContextService) {
|
|
218
224
|
this.proxy = proxy;
|
|
219
225
|
this._handle = _handle;
|
|
226
|
+
this._parentHandle = _parentHandle;
|
|
220
227
|
this._providerId = _providerId;
|
|
221
228
|
this._label = _label;
|
|
222
229
|
this._rootUri = _rootUri;
|
|
230
|
+
this._iconPath = _iconPath;
|
|
223
231
|
this._inputBoxTextModel = _inputBoxTextModel;
|
|
224
232
|
this._quickDiffService = _quickDiffService;
|
|
225
233
|
this._uriIdentService = _uriIdentService;
|
|
226
234
|
this._workspaceContextService = _workspaceContextService;
|
|
227
|
-
this._id = `scm${MainThreadSCMProvider.ID_HANDLE++}`;
|
|
228
235
|
this.groups = [];
|
|
229
236
|
this._onDidChangeResourceGroups = ( new Emitter());
|
|
230
237
|
this.onDidChangeResourceGroups = this._onDidChangeResourceGroups.event;
|
|
@@ -232,6 +239,7 @@ class MainThreadSCMProvider {
|
|
|
232
239
|
this.onDidChangeResources = this._onDidChangeResources.event;
|
|
233
240
|
this._groupsByHandle = Object.create(null);
|
|
234
241
|
this.features = {};
|
|
242
|
+
this._contextValue = observableValue(this, undefined);
|
|
235
243
|
this._count = observableValue(this, undefined);
|
|
236
244
|
this._statusBarCommands = observableValue(this, undefined);
|
|
237
245
|
this._commitTemplate = observableValue(this, '');
|
|
@@ -255,6 +263,9 @@ class MainThreadSCMProvider {
|
|
|
255
263
|
if (typeof features.actionButton !== 'undefined') {
|
|
256
264
|
this._actionButton.set(features.actionButton ?? undefined, undefined);
|
|
257
265
|
}
|
|
266
|
+
if (typeof features.contextValue !== 'undefined') {
|
|
267
|
+
this._contextValue.set(features.contextValue, undefined);
|
|
268
|
+
}
|
|
258
269
|
if (typeof features.count !== 'undefined') {
|
|
259
270
|
this._count.set(features.count, undefined);
|
|
260
271
|
}
|
|
@@ -442,15 +453,17 @@ let MainThreadSCM = class MainThreadSCM {
|
|
|
442
453
|
this._repositoryDisposables.clear();
|
|
443
454
|
this._disposables.dispose();
|
|
444
455
|
}
|
|
445
|
-
async $registerSourceControl(handle, id, label, rootUri, inputBoxDocumentUri) {
|
|
456
|
+
async $registerSourceControl(handle, parentHandle, id, label, rootUri, iconPath, inputBoxDocumentUri) {
|
|
446
457
|
this._repositoryBarriers.set(handle, ( new Barrier()));
|
|
447
458
|
const inputBoxTextModelRef = await this.textModelService.createModelReference(URI.revive(inputBoxDocumentUri));
|
|
448
459
|
const provider = ( new MainThreadSCMProvider(
|
|
449
460
|
this._proxy,
|
|
450
461
|
handle,
|
|
462
|
+
parentHandle,
|
|
451
463
|
id,
|
|
452
464
|
label,
|
|
453
465
|
rootUri ? URI.revive(rootUri) : undefined,
|
|
466
|
+
getIconFromIconDto(iconPath),
|
|
454
467
|
inputBoxTextModelRef.object.textEditorModel,
|
|
455
468
|
this.quickDiffService,
|
|
456
469
|
this._uriIdentService,
|
|
@@ -17,7 +17,7 @@ class ExtHostSaveParticipant {
|
|
|
17
17
|
return undefined;
|
|
18
18
|
}
|
|
19
19
|
const p = ( new Promise((resolve, reject) => {
|
|
20
|
-
setTimeout(() => reject(( new Error(( localize(
|
|
20
|
+
setTimeout(() => reject(( new Error(( localize(2497, "Aborted onWillSaveTextDocument-event after 1750ms"))))), 1750);
|
|
21
21
|
this._proxy.$participateInSave(editorModel.resource, context.reason).then(values => {
|
|
22
22
|
if (!values.every(success => success)) {
|
|
23
23
|
return Promise.reject(( new Error('listener failed')));
|
|
@@ -16,6 +16,8 @@ export declare class MainThreadSecretState extends Disposable implements MainThr
|
|
|
16
16
|
private doSetPassword;
|
|
17
17
|
$deletePassword(extensionId: string, key: string): Promise<void>;
|
|
18
18
|
private doDeletePassword;
|
|
19
|
+
$getKeys(extensionId: string): Promise<string[]>;
|
|
20
|
+
private doGetKeys;
|
|
19
21
|
private getKey;
|
|
20
22
|
private parseKey;
|
|
21
23
|
}
|
|
@@ -16,13 +16,9 @@ let MainThreadSecretState = class MainThreadSecretState extends Disposable {
|
|
|
16
16
|
this._sequencer = ( new SequencerByKey());
|
|
17
17
|
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostSecretState));
|
|
18
18
|
this._register(this.secretStorageService.onDidChangeSecret((e) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this._proxy.$onDidChangePassword({ extensionId, key });
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
19
|
+
const parsedKey = this.parseKey(e);
|
|
20
|
+
if (parsedKey) {
|
|
21
|
+
this._proxy.$onDidChangePassword(parsedKey);
|
|
26
22
|
}
|
|
27
23
|
}));
|
|
28
24
|
}
|
|
@@ -54,11 +50,32 @@ let MainThreadSecretState = class MainThreadSecretState extends Disposable {
|
|
|
54
50
|
await this.secretStorageService.delete(fullKey);
|
|
55
51
|
this.logService.trace('[mainThreadSecretState] Password deleted for: ', extensionId, key);
|
|
56
52
|
}
|
|
53
|
+
$getKeys(extensionId) {
|
|
54
|
+
this.logService.trace(`[mainThreadSecretState] Getting keys for ${extensionId} extension: `);
|
|
55
|
+
return this._sequencer.queue(extensionId, () => this.doGetKeys(extensionId));
|
|
56
|
+
}
|
|
57
|
+
async doGetKeys(extensionId) {
|
|
58
|
+
if (!this.secretStorageService.keys) {
|
|
59
|
+
throw ( new Error('Secret storage service does not support keys() method'));
|
|
60
|
+
}
|
|
61
|
+
const allKeys = await ( this.secretStorageService.keys());
|
|
62
|
+
const keys = ( ( allKeys
|
|
63
|
+
.map(key => this.parseKey(key)))
|
|
64
|
+
.filter((parsedKey) => parsedKey !== undefined && parsedKey.extensionId === extensionId)
|
|
65
|
+
.map(({ key }) => key));
|
|
66
|
+
this.logService.trace(`[mainThreadSecretState] Got ${keys.length}key(s) for: `, extensionId);
|
|
67
|
+
return keys;
|
|
68
|
+
}
|
|
57
69
|
getKey(extensionId, key) {
|
|
58
70
|
return JSON.stringify({ extensionId, key });
|
|
59
71
|
}
|
|
60
72
|
parseKey(key) {
|
|
61
|
-
|
|
73
|
+
try {
|
|
74
|
+
return JSON.parse(key);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
62
79
|
}
|
|
63
80
|
};
|
|
64
81
|
MainThreadSecretState = __decorate([
|
|
@@ -405,7 +405,7 @@ var TaskDTO;
|
|
|
405
405
|
}
|
|
406
406
|
command.presentation = TaskPresentationOptionsDTO.to(task.presentationOptions);
|
|
407
407
|
const source = TaskSourceDTO.to(task.source, workspace);
|
|
408
|
-
const label = ( localize(
|
|
408
|
+
const label = ( localize(2498, '{0}: {1}', source.label, task.name));
|
|
409
409
|
const definition = TaskDefinitionDTO.to(task.definition, executeOnly);
|
|
410
410
|
const id = (CustomExecutionDTO.is(task.execution) && task._id) ? task._id : `${task.source.extensionId}.${definition._key}`;
|
|
411
411
|
const result = ( new ContributedTask(
|
|
@@ -10,7 +10,7 @@ import { IEnvironmentVariableService } from "@codingame/monaco-vscode-api/vscode
|
|
|
10
10
|
import { ITerminalProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
11
11
|
import { ITerminalProfileResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
12
12
|
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
13
|
-
import { ISerializableEnvironmentDescriptionMap, ISerializableEnvironmentVariableCollection } from "@codingame/monaco-vscode-
|
|
13
|
+
import { ISerializableEnvironmentDescriptionMap, ISerializableEnvironmentVariableCollection } from "@codingame/monaco-vscode-07eaa805-9dea-5ec6-a422-a4f04872424d-common/vscode/vs/platform/terminal/common/environmentVariable";
|
|
14
14
|
import { ITerminalLinkProviderService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service";
|
|
15
15
|
import { ITerminalQuickFixService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service";
|
|
16
16
|
import { ITerminalCompletionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service";
|
|
@@ -17,7 +17,7 @@ import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/work
|
|
|
17
17
|
import { OS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
18
18
|
import { Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
19
19
|
import { ITerminalLinkProviderService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service';
|
|
20
|
-
import { TerminalQuickFixType } from '@codingame/monaco-vscode-
|
|
20
|
+
import { TerminalQuickFixType } from '@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix';
|
|
21
21
|
import { ITerminalQuickFixService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service';
|
|
22
22
|
import { TerminalCapability } from '@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common/vscode/vs/platform/terminal/common/capabilities/capabilities';
|
|
23
23
|
import { ITerminalCompletionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service';
|
|
@@ -228,7 +228,10 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
228
228
|
provideCompletions: async (commandLine, cursorPosition, allowFallbackCompletions, token) => {
|
|
229
229
|
const completions = await this._proxy.$provideTerminalCompletions(id, { commandLine, cursorPosition, allowFallbackCompletions }, token);
|
|
230
230
|
return {
|
|
231
|
-
items: completions?.items.map(c => ({
|
|
231
|
+
items: completions?.items.map(c => ({
|
|
232
|
+
provider: `ext:${id}`,
|
|
233
|
+
...c,
|
|
234
|
+
})),
|
|
232
235
|
resourceRequestConfig: completions?.resourceRequestConfig
|
|
233
236
|
};
|
|
234
237
|
}
|
|
@@ -3,10 +3,12 @@ import { type MainThreadTerminalShellIntegrationShape } from "@codingame/monaco-
|
|
|
3
3
|
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
4
4
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
5
5
|
import { type IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
6
7
|
export declare class MainThreadTerminalShellIntegration extends Disposable implements MainThreadTerminalShellIntegrationShape {
|
|
7
8
|
private readonly _terminalService;
|
|
9
|
+
private readonly _extensionService;
|
|
8
10
|
private readonly _proxy;
|
|
9
|
-
constructor(extHostContext: IExtHostContext, _terminalService: ITerminalService, workbenchEnvironmentService: IWorkbenchEnvironmentService);
|
|
11
|
+
constructor(extHostContext: IExtHostContext, _terminalService: ITerminalService, workbenchEnvironmentService: IWorkbenchEnvironmentService, _extensionService: IExtensionService);
|
|
10
12
|
$executeCommand(terminalId: number, commandLine: string): void;
|
|
11
13
|
private _enableShellIntegration;
|
|
12
14
|
}
|
|
@@ -8,11 +8,13 @@ import { ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
8
8
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
9
9
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
10
10
|
import { TerminalShellExecutionCommandLineConfidence } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypes';
|
|
11
|
+
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
11
12
|
|
|
12
13
|
let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegration extends Disposable {
|
|
13
|
-
constructor(extHostContext, _terminalService, workbenchEnvironmentService) {
|
|
14
|
+
constructor(extHostContext, _terminalService, workbenchEnvironmentService, _extensionService) {
|
|
14
15
|
super();
|
|
15
16
|
this._terminalService = _terminalService;
|
|
17
|
+
this._extensionService = _extensionService;
|
|
16
18
|
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostTerminalShellIntegration));
|
|
17
19
|
const instanceDataListeners = ( new Map());
|
|
18
20
|
this._register(toDisposable(() => {
|
|
@@ -73,6 +75,10 @@ let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegratio
|
|
|
73
75
|
this._terminalService.getInstanceFromId(terminalId)?.runCommand(commandLine, true);
|
|
74
76
|
}
|
|
75
77
|
_enableShellIntegration(instance) {
|
|
78
|
+
this._extensionService.activateByEvent('onTerminalShellIntegration:*');
|
|
79
|
+
if (instance.shellType) {
|
|
80
|
+
this._extensionService.activateByEvent(`onTerminalShellIntegration:${instance.shellType}`);
|
|
81
|
+
}
|
|
76
82
|
this._proxy.$shellIntegrationChange(instance.instanceId);
|
|
77
83
|
const cwdDetection = instance.capabilities.get(TerminalCapability.CwdDetection);
|
|
78
84
|
if (cwdDetection) {
|
|
@@ -83,7 +89,8 @@ let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegratio
|
|
|
83
89
|
MainThreadTerminalShellIntegration = __decorate([
|
|
84
90
|
extHostNamedCustomer(MainContext.MainThreadTerminalShellIntegration),
|
|
85
91
|
( __param(1, ITerminalService)),
|
|
86
|
-
( __param(2, IWorkbenchEnvironmentService))
|
|
92
|
+
( __param(2, IWorkbenchEnvironmentService)),
|
|
93
|
+
( __param(3, IExtensionService))
|
|
87
94
|
], MainThreadTerminalShellIntegration);
|
|
88
95
|
function convertToExtHostCommandLineConfidence(command) {
|
|
89
96
|
switch (command.commandLineConfidence) {
|
|
@@ -112,13 +112,13 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
|
112
112
|
}
|
|
113
113
|
async elevationPrompt(tunnelOptions, tunnel, source) {
|
|
114
114
|
return this.notificationService.prompt(Severity.Info, ( localize(
|
|
115
|
-
|
|
115
|
+
2499,
|
|
116
116
|
"The extension {0} has forwarded port {1}. You'll need to run as superuser to use port {2} locally.",
|
|
117
117
|
source,
|
|
118
118
|
tunnelOptions.remoteAddress.port,
|
|
119
119
|
tunnelOptions.localAddressPort
|
|
120
120
|
)), [{
|
|
121
|
-
label: ( localize(
|
|
121
|
+
label: ( localize(2500, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
|
|
122
122
|
run: async () => {
|
|
123
123
|
this.elevateionRetry = true;
|
|
124
124
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -52,7 +52,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
52
52
|
}
|
|
53
53
|
catch (e) {
|
|
54
54
|
if (!isCancellationError(e)) {
|
|
55
|
-
const openDefaultAction = ( new Action('default', ( localize(
|
|
55
|
+
const openDefaultAction = ( new Action('default', ( localize(2501, "Open using default opener")), undefined, undefined, async () => {
|
|
56
56
|
await this.openerService.open(uri, {
|
|
57
57
|
allowTunneling: false,
|
|
58
58
|
allowContributedOpeners: defaultExternalUriOpenerId,
|
|
@@ -61,7 +61,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
61
61
|
openDefaultAction.tooltip = ( uri.toString());
|
|
62
62
|
this.notificationService.notify({
|
|
63
63
|
severity: Severity.Error,
|
|
64
|
-
message: ( localize(
|
|
64
|
+
message: ( localize(2502, 'Could not open uri with \'{0}\': {1}', id, (e.toString()))),
|
|
65
65
|
actions: {
|
|
66
66
|
primary: [
|
|
67
67
|
openDefaultAction
|
|
@@ -8,6 +8,7 @@ import { MainThreadWebviews } from './mainThreadWebviews.js';
|
|
|
8
8
|
import { MainThreadWebviewsViews } from './mainThreadWebviewViews.js';
|
|
9
9
|
import { MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
10
10
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
11
|
+
import { MainThreadChatOutputRenderer } from './mainThreadChatOutputRenderer.js';
|
|
11
12
|
|
|
12
13
|
let MainThreadWebviewManager = class MainThreadWebviewManager extends Disposable {
|
|
13
14
|
constructor(context, instantiationService) {
|
|
@@ -20,6 +21,8 @@ let MainThreadWebviewManager = class MainThreadWebviewManager extends Disposable
|
|
|
20
21
|
context.set(MainContext.MainThreadCustomEditors, customEditors);
|
|
21
22
|
const webviewViews = this._register(instantiationService.createInstance(MainThreadWebviewsViews, context, webviews));
|
|
22
23
|
context.set(MainContext.MainThreadWebviewViews, webviewViews);
|
|
24
|
+
const chatOutputRenderers = this._register(instantiationService.createInstance(MainThreadChatOutputRenderer, context, webviews));
|
|
25
|
+
context.set(MainContext.MainThreadChatOutputRenderer, chatOutputRenderers);
|
|
23
26
|
}
|
|
24
27
|
};
|
|
25
28
|
MainThreadWebviewManager = __decorate([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
4
|
-
import { WebviewInput } from "@codingame/monaco-vscode-
|
|
4
|
+
import { WebviewInput } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
5
5
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
6
6
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
7
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -7,11 +7,11 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
7
7
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
8
8
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
10
|
-
import { DiffEditorInput } from '@codingame/monaco-vscode-
|
|
11
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
12
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
10
|
+
import { DiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
11
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
13
13
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
14
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
14
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
15
15
|
import { GroupsOrder, GroupLocation, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
16
16
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
17
17
|
import { ACTIVE_GROUP, SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -2,9 +2,9 @@ import { VSBuffer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buf
|
|
|
2
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
4
4
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
5
|
-
import
|
|
6
|
-
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-caf773dd-ab1d-5936-941d-a2fe9e896ffc-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
|
+
import { IWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
7
6
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
8
|
export declare class MainThreadWebviews extends Disposable implements extHostProtocol.MainThreadWebviewsShape {
|
|
9
9
|
private readonly _openerService;
|
|
10
10
|
private readonly _productService;
|
|
@@ -12,7 +12,7 @@ export declare class MainThreadWebviews extends Disposable implements extHostPro
|
|
|
12
12
|
private readonly _proxy;
|
|
13
13
|
private readonly _webviews;
|
|
14
14
|
constructor(context: IExtHostContext, _openerService: IOpenerService, _productService: IProductService);
|
|
15
|
-
addWebview(handle: extHostProtocol.WebviewHandle, webview:
|
|
15
|
+
addWebview(handle: extHostProtocol.WebviewHandle, webview: IWebview, options: {
|
|
16
16
|
serializeBuffersForPostMessage: boolean;
|
|
17
17
|
}): void;
|
|
18
18
|
$setHtml(handle: extHostProtocol.WebviewHandle, value: string): void;
|