@codingame/monaco-vscode-extensions-service-override 37.1.0 → 37.3.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 +2 -17
- package/package.json +3 -3
- package/service-override/tools/missingMainThreadCustomers.d.ts +1 -0
- package/service-override/tools/missingMainThreadCustomers.js +274 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +37 -37
- package/vscode/src/vs/workbench/api/browser/mainThreadAgentEditorComments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAgentEditorComments.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +32 -32
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowserTunnelProxy.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowserTunnelProxy.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowsers.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadBrowsers.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadChatOutputRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentDiff.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentDiff.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +13 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -21
- package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +16 -16
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadMeteredConnection.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMeteredConnection.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadPower.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadPower.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +13 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +14 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +15 -13
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +25 -25
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +37 -32
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +18 -10
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +55 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +3 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +4 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +4 -2
- package/vscode/src/vs/workbench/services/themes/browser/cssExtensionPoint.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +0 -104
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +0 -827
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +0 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +0 -71
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.d.ts +0 -16
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.js +0 -95
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.d.ts +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +0 -286
- package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.d.ts +0 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.js +0 -38
- package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.d.ts +0 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +0 -130
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +0 -907
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.d.ts +0 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js +0 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +0 -63
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +0 -305
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +0 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +0 -167
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +0 -46
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +0 -356
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +0 -108
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +0 -698
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +0 -210
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +0 -24
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +0 -138
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +0 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +0 -194
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +0 -17
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +0 -128
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +0 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +0 -149
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +0 -49
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +0 -372
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +0 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +0 -26
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +0 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +0 -43
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +0 -32
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +0 -45
package/index.js
CHANGED
|
@@ -59,10 +59,6 @@ import './vscode/src/vs/workbench/services/themes/browser/cssExtensionPoint.js';
|
|
|
59
59
|
import './vscode/src/vs/workbench/api/browser/mainThreadAgentEditorComments.js';
|
|
60
60
|
import './vscode/src/vs/workbench/api/browser/mainThreadLocalization.js';
|
|
61
61
|
import './vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js';
|
|
62
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js';
|
|
63
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js';
|
|
64
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js';
|
|
65
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js';
|
|
66
62
|
import './vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.js';
|
|
67
63
|
import './vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js';
|
|
68
64
|
import './vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js';
|
|
@@ -75,7 +71,7 @@ import './vscode/src/vs/workbench/api/browser/mainThreadDecorations.js';
|
|
|
75
71
|
import './vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js';
|
|
76
72
|
import './vscode/src/vs/workbench/api/browser/mainThreadDialogs.js';
|
|
77
73
|
import './vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js';
|
|
78
|
-
import '
|
|
74
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/api/browser/mainThreadDocuments';
|
|
79
75
|
import './vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js';
|
|
80
76
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
81
77
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -125,11 +121,6 @@ import './vscode/src/vs/workbench/api/browser/mainThreadPower.js';
|
|
|
125
121
|
import './vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js';
|
|
126
122
|
import './vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js';
|
|
127
123
|
import './vscode/src/vs/workbench/api/browser/mainThreadComments.js';
|
|
128
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadNotebook.js';
|
|
129
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js';
|
|
130
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js';
|
|
131
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js';
|
|
132
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js';
|
|
133
124
|
import './vscode/src/vs/workbench/api/browser/mainThreadInteractive.js';
|
|
134
125
|
import './vscode/src/vs/workbench/api/browser/mainThreadTask.js';
|
|
135
126
|
import './vscode/src/vs/workbench/api/browser/mainThreadLabelService.js';
|
|
@@ -143,18 +134,12 @@ import './vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.j
|
|
|
143
134
|
import './vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js';
|
|
144
135
|
import './vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js';
|
|
145
136
|
import './vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.js';
|
|
146
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadMcp.js';
|
|
147
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatContext.js';
|
|
148
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js';
|
|
149
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js';
|
|
150
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatQuota.js';
|
|
151
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.js';
|
|
152
137
|
import './vscode/src/vs/workbench/api/browser/mainThreadChatOutputRenderer.js';
|
|
153
|
-
import './vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js';
|
|
154
138
|
import './vscode/src/vs/workbench/api/browser/mainThreadDataChannels.js';
|
|
155
139
|
import './vscode/src/vs/workbench/api/browser/mainThreadMeteredConnection.js';
|
|
156
140
|
import './vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.js';
|
|
157
141
|
import './vscode/src/vs/workbench/api/browser/mainThreadBrowsers.js';
|
|
142
|
+
import './service-override/tools/missingMainThreadCustomers.js';
|
|
158
143
|
|
|
159
144
|
let localExtensionHost;
|
|
160
145
|
function setLocalExtensionHost(_localExtensionHost) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "37.3.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
|
+
import { extHostCustomer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extHostCustomers';
|
|
5
|
+
import { noop, unsupported, Unsupported } from '@codingame/monaco-vscode-api/tools';
|
|
6
|
+
|
|
7
|
+
class MissingMainThreadLanguageModels {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.$registerLanguageModelProvider = noop;
|
|
10
|
+
this.$onLMProviderChange = noop;
|
|
11
|
+
this.$unregisterProvider = noop;
|
|
12
|
+
this.$tryStartChatRequest = unsupported;
|
|
13
|
+
this.$reportResponsePart = async () => { };
|
|
14
|
+
this.$reportResponseDone = async () => { };
|
|
15
|
+
this.$selectChatModels = async () => [];
|
|
16
|
+
this.$countTokens = unsupported;
|
|
17
|
+
this.$cancelLanguageModelChatRequest = noop;
|
|
18
|
+
this.$fileIsIgnored = async () => false;
|
|
19
|
+
this.$registerFileIgnoreProvider = noop;
|
|
20
|
+
this.$unregisterFileIgnoreProvider = noop;
|
|
21
|
+
}
|
|
22
|
+
dispose() { }
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
Unsupported
|
|
26
|
+
], MissingMainThreadLanguageModels.prototype, "$tryStartChatRequest", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Unsupported
|
|
29
|
+
], MissingMainThreadLanguageModels.prototype, "$countTokens", void 0);
|
|
30
|
+
class MissingMainThreadChatAgents2 {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.$handleProgressChunk = async () => { };
|
|
33
|
+
this.$handleAnchorResolve = noop;
|
|
34
|
+
this.$registerAgent = noop;
|
|
35
|
+
this.$registerChatParticipantDetectionProvider = noop;
|
|
36
|
+
this.$unregisterChatParticipantDetectionProvider = noop;
|
|
37
|
+
this.$registerPromptFileProvider = noop;
|
|
38
|
+
this.$unregisterPromptFileProvider = noop;
|
|
39
|
+
this.$onDidChangePromptFiles = noop;
|
|
40
|
+
this.$registerChatSessionCustomizationProvider = noop;
|
|
41
|
+
this.$unregisterChatSessionCustomizationProvider = noop;
|
|
42
|
+
this.$onDidChangeCustomizations = noop;
|
|
43
|
+
this.$registerAgentCompletionsProvider = noop;
|
|
44
|
+
this.$unregisterAgentCompletionsProvider = noop;
|
|
45
|
+
this.$updateAgent = noop;
|
|
46
|
+
this.$unregisterAgent = noop;
|
|
47
|
+
this.$transferActiveChatSession = unsupported;
|
|
48
|
+
this.$provideCustomAgents = async () => [];
|
|
49
|
+
this.$provideInstructions = async () => [];
|
|
50
|
+
this.$provideSkills = async () => [];
|
|
51
|
+
this.$provideSlashCommands = async () => [];
|
|
52
|
+
this.$provideHooks = async () => [];
|
|
53
|
+
this.$providePlugins = async () => [];
|
|
54
|
+
}
|
|
55
|
+
dispose() { }
|
|
56
|
+
}
|
|
57
|
+
__decorate([
|
|
58
|
+
Unsupported
|
|
59
|
+
], MissingMainThreadChatAgents2.prototype, "$transferActiveChatSession", void 0);
|
|
60
|
+
class MissingMainThreadCodeMapper {
|
|
61
|
+
constructor() {
|
|
62
|
+
this.$registerCodeMapperProvider = noop;
|
|
63
|
+
this.$unregisterCodeMapperProvider = noop;
|
|
64
|
+
this.$handleProgress = async () => { };
|
|
65
|
+
}
|
|
66
|
+
dispose() { }
|
|
67
|
+
}
|
|
68
|
+
class MissingMainThreadLanguageModelTools {
|
|
69
|
+
constructor() {
|
|
70
|
+
this.$getTools = async () => [];
|
|
71
|
+
this.$acceptToolProgress = noop;
|
|
72
|
+
this.$invokeTool = unsupported;
|
|
73
|
+
this.$countTokensForInvocation = unsupported;
|
|
74
|
+
this.$registerTool = noop;
|
|
75
|
+
this.$registerToolWithDefinition = noop;
|
|
76
|
+
this.$unregisterTool = noop;
|
|
77
|
+
}
|
|
78
|
+
dispose() { }
|
|
79
|
+
}
|
|
80
|
+
__decorate([
|
|
81
|
+
Unsupported
|
|
82
|
+
], MissingMainThreadLanguageModelTools.prototype, "$invokeTool", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
Unsupported
|
|
85
|
+
], MissingMainThreadLanguageModelTools.prototype, "$countTokensForInvocation", void 0);
|
|
86
|
+
class MissingMainThreadChatContext {
|
|
87
|
+
constructor() {
|
|
88
|
+
this.$registerChatWorkspaceContextProvider = noop;
|
|
89
|
+
this.$registerChatExplicitContextProvider = noop;
|
|
90
|
+
this.$registerChatResourceContextProvider = noop;
|
|
91
|
+
this.$unregisterChatContextProvider = noop;
|
|
92
|
+
this.$updateWorkspaceContextItems = noop;
|
|
93
|
+
this.$executeChatContextItemCommand = unsupported;
|
|
94
|
+
}
|
|
95
|
+
dispose() { }
|
|
96
|
+
}
|
|
97
|
+
__decorate([
|
|
98
|
+
Unsupported
|
|
99
|
+
], MissingMainThreadChatContext.prototype, "$executeChatContextItemCommand", void 0);
|
|
100
|
+
class MissingMainThreadChatDebug {
|
|
101
|
+
constructor() {
|
|
102
|
+
this.$registerChatDebugLogProvider = noop;
|
|
103
|
+
this.$unregisterChatDebugLogProvider = noop;
|
|
104
|
+
this.$acceptChatDebugEvent = noop;
|
|
105
|
+
this.$subscribeToCoreDebugEvents = noop;
|
|
106
|
+
this.$unsubscribeFromCoreDebugEvents = noop;
|
|
107
|
+
}
|
|
108
|
+
dispose() { }
|
|
109
|
+
}
|
|
110
|
+
class MissingMainThreadChatStatus {
|
|
111
|
+
constructor() {
|
|
112
|
+
this.$setEntry = noop;
|
|
113
|
+
this.$disposeEntry = noop;
|
|
114
|
+
}
|
|
115
|
+
dispose() { }
|
|
116
|
+
}
|
|
117
|
+
class MissingMainThreadChatQuota {
|
|
118
|
+
constructor() {
|
|
119
|
+
this.$updateQuotas = noop;
|
|
120
|
+
}
|
|
121
|
+
dispose() { }
|
|
122
|
+
}
|
|
123
|
+
class MissingMainThreadChatInputNotification {
|
|
124
|
+
constructor() {
|
|
125
|
+
this.$setNotification = noop;
|
|
126
|
+
this.$disposeNotification = noop;
|
|
127
|
+
}
|
|
128
|
+
dispose() { }
|
|
129
|
+
}
|
|
130
|
+
class MissingMainThreadChatSessions {
|
|
131
|
+
constructor() {
|
|
132
|
+
this.$registerChatSessionItemController = noop;
|
|
133
|
+
this.$updateChatSessionItemControllerCapabilities = noop;
|
|
134
|
+
this.$unregisterChatSessionItemController = noop;
|
|
135
|
+
this.$updateChatSessionItems = async () => { };
|
|
136
|
+
this.$addOrUpdateChatSessionItem = async () => { };
|
|
137
|
+
this.$onDidCommitChatSessionItem = noop;
|
|
138
|
+
this.$registerChatSessionContentProvider = noop;
|
|
139
|
+
this.$unregisterChatSessionContentProvider = noop;
|
|
140
|
+
this.$onDidChangeChatSessionOptions = noop;
|
|
141
|
+
this.$onDidChangeChatSessionProviderOptions = noop;
|
|
142
|
+
this.$updateChatSessionInputState = noop;
|
|
143
|
+
this.$handleProgressChunk = async () => { };
|
|
144
|
+
this.$handleAnchorResolve = noop;
|
|
145
|
+
this.$handleProgressComplete = noop;
|
|
146
|
+
}
|
|
147
|
+
dispose() { }
|
|
148
|
+
}
|
|
149
|
+
class MissingMainThreadNotebook {
|
|
150
|
+
constructor() {
|
|
151
|
+
this.$registerNotebookSerializer = noop;
|
|
152
|
+
this.$unregisterNotebookSerializer = noop;
|
|
153
|
+
this.$registerNotebookCellStatusBarItemProvider = async () => { };
|
|
154
|
+
this.$unregisterNotebookCellStatusBarItemProvider = async () => { };
|
|
155
|
+
this.$emitCellStatusBarEvent = noop;
|
|
156
|
+
}
|
|
157
|
+
dispose() { }
|
|
158
|
+
}
|
|
159
|
+
class MissingMainThreadNotebookKernels {
|
|
160
|
+
constructor() {
|
|
161
|
+
this.$postMessage = async () => false;
|
|
162
|
+
this.$addKernel = async () => { };
|
|
163
|
+
this.$updateKernel = noop;
|
|
164
|
+
this.$removeKernel = noop;
|
|
165
|
+
this.$updateNotebookPriority = noop;
|
|
166
|
+
this.$createExecution = noop;
|
|
167
|
+
this.$updateExecution = noop;
|
|
168
|
+
this.$completeExecution = noop;
|
|
169
|
+
this.$createNotebookExecution = noop;
|
|
170
|
+
this.$beginNotebookExecution = noop;
|
|
171
|
+
this.$completeNotebookExecution = noop;
|
|
172
|
+
this.$addKernelDetectionTask = async () => { };
|
|
173
|
+
this.$removeKernelDetectionTask = noop;
|
|
174
|
+
this.$addKernelSourceActionProvider = async () => { };
|
|
175
|
+
this.$removeKernelSourceActionProvider = noop;
|
|
176
|
+
this.$emitNotebookKernelSourceActionsChangeEvent = noop;
|
|
177
|
+
this.$receiveVariable = noop;
|
|
178
|
+
this.$variablesUpdated = noop;
|
|
179
|
+
}
|
|
180
|
+
dispose() { }
|
|
181
|
+
}
|
|
182
|
+
class MissingMainThreadNotebookDocuments {
|
|
183
|
+
constructor() {
|
|
184
|
+
this.$tryCreateNotebook = unsupported;
|
|
185
|
+
this.$tryOpenNotebook = unsupported;
|
|
186
|
+
this.$trySaveNotebook = unsupported;
|
|
187
|
+
}
|
|
188
|
+
dispose() { }
|
|
189
|
+
}
|
|
190
|
+
__decorate([
|
|
191
|
+
Unsupported
|
|
192
|
+
], MissingMainThreadNotebookDocuments.prototype, "$tryCreateNotebook", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
Unsupported
|
|
195
|
+
], MissingMainThreadNotebookDocuments.prototype, "$tryOpenNotebook", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
Unsupported
|
|
198
|
+
], MissingMainThreadNotebookDocuments.prototype, "$trySaveNotebook", void 0);
|
|
199
|
+
class MissingMainThreadNotebookEditors {
|
|
200
|
+
constructor() {
|
|
201
|
+
this.$tryShowNotebookDocument = unsupported;
|
|
202
|
+
this.$tryRevealRange = unsupported;
|
|
203
|
+
this.$trySetSelections = noop;
|
|
204
|
+
}
|
|
205
|
+
dispose() { }
|
|
206
|
+
}
|
|
207
|
+
__decorate([
|
|
208
|
+
Unsupported
|
|
209
|
+
], MissingMainThreadNotebookEditors.prototype, "$tryShowNotebookDocument", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
Unsupported
|
|
212
|
+
], MissingMainThreadNotebookEditors.prototype, "$tryRevealRange", void 0);
|
|
213
|
+
class MissingMainThreadNotebookRenderers {
|
|
214
|
+
constructor() {
|
|
215
|
+
this.$postMessage = async () => false;
|
|
216
|
+
}
|
|
217
|
+
dispose() { }
|
|
218
|
+
}
|
|
219
|
+
class MissingMainThreadMcp {
|
|
220
|
+
constructor() {
|
|
221
|
+
this.$onDidChangeState = noop;
|
|
222
|
+
this.$onDidPublishLog = noop;
|
|
223
|
+
this.$onDidReceiveMessage = noop;
|
|
224
|
+
this.$upsertMcpCollection = noop;
|
|
225
|
+
this.$deleteMcpCollection = noop;
|
|
226
|
+
this.$getTokenFromServerMetadata = unsupported;
|
|
227
|
+
this.$getTokenForProviderId = unsupported;
|
|
228
|
+
this.$logMcpAuthSetup = noop;
|
|
229
|
+
this.$startMcpGateway = unsupported;
|
|
230
|
+
this.$disposeMcpGateway = noop;
|
|
231
|
+
}
|
|
232
|
+
dispose() { }
|
|
233
|
+
}
|
|
234
|
+
__decorate([
|
|
235
|
+
Unsupported
|
|
236
|
+
], MissingMainThreadMcp.prototype, "$getTokenFromServerMetadata", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Unsupported
|
|
239
|
+
], MissingMainThreadMcp.prototype, "$getTokenForProviderId", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
Unsupported
|
|
242
|
+
], MissingMainThreadMcp.prototype, "$startMcpGateway", void 0);
|
|
243
|
+
const missingMainThreadCustomers = [
|
|
244
|
+
[MainContext.MainThreadLanguageModels, MissingMainThreadLanguageModels],
|
|
245
|
+
[MainContext.MainThreadChatAgents2, MissingMainThreadChatAgents2],
|
|
246
|
+
[MainContext.MainThreadCodeMapper, MissingMainThreadCodeMapper],
|
|
247
|
+
[MainContext.MainThreadLanguageModelTools, MissingMainThreadLanguageModelTools],
|
|
248
|
+
[MainContext.MainThreadChatContext, MissingMainThreadChatContext],
|
|
249
|
+
[MainContext.MainThreadChatDebug, MissingMainThreadChatDebug],
|
|
250
|
+
[MainContext.MainThreadChatStatus, MissingMainThreadChatStatus],
|
|
251
|
+
[MainContext.MainThreadChatQuota, MissingMainThreadChatQuota],
|
|
252
|
+
[MainContext.MainThreadChatInputNotification, MissingMainThreadChatInputNotification],
|
|
253
|
+
[MainContext.MainThreadChatSessions, MissingMainThreadChatSessions],
|
|
254
|
+
[MainContext.MainThreadNotebook, MissingMainThreadNotebook],
|
|
255
|
+
[MainContext.MainThreadNotebookKernels, MissingMainThreadNotebookKernels],
|
|
256
|
+
[MainContext.MainThreadNotebookDocuments, MissingMainThreadNotebookDocuments],
|
|
257
|
+
[MainContext.MainThreadNotebookEditors, MissingMainThreadNotebookEditors],
|
|
258
|
+
[MainContext.MainThreadNotebookRenderers, MissingMainThreadNotebookRenderers],
|
|
259
|
+
[MainContext.MainThreadMcp, MissingMainThreadMcp]
|
|
260
|
+
];
|
|
261
|
+
class MissingMainThreadCustomers {
|
|
262
|
+
constructor(extHostContext) {
|
|
263
|
+
for (const [id, ctor] of missingMainThreadCustomers) {
|
|
264
|
+
try {
|
|
265
|
+
extHostContext.assertRegistered([id]);
|
|
266
|
+
}
|
|
267
|
+
catch {
|
|
268
|
+
extHostContext.set(id, new ctor());
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
dispose() { }
|
|
273
|
+
}
|
|
274
|
+
extHostCustomer(MissingMainThreadCustomers);
|
|
@@ -13,9 +13,9 @@ import { getIdAndVersion, areSameExtensions, getGalleryExtensionId, getExtension
|
|
|
13
13
|
import { ExtensionType, EXTENSION_CATEGORIES } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
14
14
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
15
15
|
|
|
16
|
-
const notFound = id => ( localize(
|
|
16
|
+
const notFound = id => ( localize(2262, "Extension '{0}' not found.", id));
|
|
17
17
|
const useId = ( localize(
|
|
18
|
-
|
|
18
|
+
2263,
|
|
19
19
|
"Make sure you use the full extension ID, including the publisher, e.g.: {0}",
|
|
20
20
|
"ms-dotnettools.csharp"
|
|
21
21
|
));
|
|
@@ -32,14 +32,14 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
32
32
|
this.extensionManagementService = extensionManagementService;
|
|
33
33
|
this.extensionGalleryService = extensionGalleryService;
|
|
34
34
|
this.productService = productService;
|
|
35
|
-
this.extensionsForceVersionByQuality =
|
|
35
|
+
this.extensionsForceVersionByQuality = this.extensionsForceVersionByQuality.map(e => e.toLowerCase());
|
|
36
36
|
}
|
|
37
37
|
get location() {
|
|
38
38
|
return undefined;
|
|
39
39
|
}
|
|
40
40
|
async listExtensions(showVersions, category, profileLocation) {
|
|
41
41
|
let extensions = await this.extensionManagementService.getInstalled(ExtensionType.User, profileLocation);
|
|
42
|
-
const categories =
|
|
42
|
+
const categories = EXTENSION_CATEGORIES.map(c => c.toLowerCase());
|
|
43
43
|
if (category && category !== "") {
|
|
44
44
|
if (categories.indexOf(category.toLowerCase()) < 0) {
|
|
45
45
|
this.logger.info(
|
|
@@ -49,7 +49,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
49
49
|
}
|
|
50
50
|
extensions = extensions.filter(e => {
|
|
51
51
|
if (e.manifest.categories) {
|
|
52
|
-
const lowerCaseCategories =
|
|
52
|
+
const lowerCaseCategories = e.manifest.categories.map(c => c.toLowerCase());
|
|
53
53
|
return lowerCaseCategories.indexOf(category.toLowerCase()) > -1;
|
|
54
54
|
}
|
|
55
55
|
return false;
|
|
@@ -62,7 +62,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
if (this.location) {
|
|
65
|
-
this.logger.info(( localize(
|
|
65
|
+
this.logger.info(( localize(2264, "Extensions installed on {0}:", this.location)));
|
|
66
66
|
}
|
|
67
67
|
extensions = extensions.sort((e1, e2) => e1.identifier.id.localeCompare(e2.identifier.id));
|
|
68
68
|
let lastId = undefined;
|
|
@@ -77,7 +77,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
77
77
|
const failed = [];
|
|
78
78
|
try {
|
|
79
79
|
if (extensions.length) {
|
|
80
|
-
this.logger.info(this.location ? ( localize(
|
|
80
|
+
this.logger.info(this.location ? ( localize(2265, "Installing extensions on {0}...", this.location)) : ( localize(2266, "Installing extensions...")));
|
|
81
81
|
}
|
|
82
82
|
const installVSIXInfos = [];
|
|
83
83
|
const installExtensionInfos = [];
|
|
@@ -123,7 +123,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
123
123
|
}
|
|
124
124
|
const installed = await this.extensionManagementService.getInstalled(undefined, installOptions.profileLocation);
|
|
125
125
|
if (installVSIXInfos.length) {
|
|
126
|
-
await Promise.all(
|
|
126
|
+
await Promise.all(installVSIXInfos.map(async (
|
|
127
127
|
{
|
|
128
128
|
vsix,
|
|
129
129
|
installOptions
|
|
@@ -135,18 +135,18 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
135
135
|
this.logger.error(err);
|
|
136
136
|
failed.push(( vsix.toString()));
|
|
137
137
|
}
|
|
138
|
-
}))
|
|
138
|
+
}));
|
|
139
139
|
}
|
|
140
140
|
if (installExtensionInfos.length) {
|
|
141
141
|
const failedGalleryExtensions = await this.installGalleryExtensions(installExtensionInfos, installed, force);
|
|
142
142
|
failed.push(...failedGalleryExtensions);
|
|
143
143
|
}
|
|
144
144
|
} catch (error) {
|
|
145
|
-
this.logger.error(( localize(
|
|
145
|
+
this.logger.error(( localize(2267, "Error while installing extensions: {0}", getErrorMessage(error))));
|
|
146
146
|
throw error;
|
|
147
147
|
}
|
|
148
148
|
if (failed.length) {
|
|
149
|
-
throw ( new Error(( localize(
|
|
149
|
+
throw ( new Error(( localize(2268, "Failed Installing Extensions: {0}", failed.join(", ")))));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
async updateExtensions(profileLocation) {
|
|
@@ -161,7 +161,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
this.logger.trace(( localize(
|
|
164
|
-
|
|
164
|
+
2269,
|
|
165
165
|
"Fetching latest versions for {0} extensions",
|
|
166
166
|
installedExtensionsQuery.length
|
|
167
167
|
)));
|
|
@@ -185,26 +185,26 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
if (!extensionsToUpdate.length) {
|
|
188
|
-
this.logger.info(( localize(
|
|
188
|
+
this.logger.info(( localize(2270, "No extension to update")));
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
191
|
this.logger.info(( localize(
|
|
192
|
-
|
|
192
|
+
2271,
|
|
193
193
|
"Updating extensions: {0}",
|
|
194
|
-
|
|
194
|
+
extensionsToUpdate.map(ext => ext.extension.identifier.id).join(", ")
|
|
195
195
|
)));
|
|
196
196
|
const installationResult = await this.extensionManagementService.installGalleryExtensions(extensionsToUpdate);
|
|
197
197
|
for (const extensionResult of installationResult) {
|
|
198
198
|
if (extensionResult.error) {
|
|
199
199
|
this.logger.error(( localize(
|
|
200
|
-
|
|
200
|
+
2272,
|
|
201
201
|
"Error while updating extension {0}: {1}",
|
|
202
202
|
extensionResult.identifier.id,
|
|
203
203
|
getErrorMessage(extensionResult.error)
|
|
204
204
|
)));
|
|
205
205
|
} else {
|
|
206
206
|
this.logger.info(( localize(
|
|
207
|
-
|
|
207
|
+
2273,
|
|
208
208
|
"Extension '{0}' v{1} was successfully updated.",
|
|
209
209
|
extensionResult.identifier.id,
|
|
210
210
|
extensionResult.local?.manifest.version
|
|
@@ -230,7 +230,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
230
230
|
}
|
|
231
231
|
if (!force && (!version || (version === "prerelease" && installedExtension.preRelease))) {
|
|
232
232
|
this.logger.info(( localize(
|
|
233
|
-
|
|
233
|
+
2274,
|
|
234
234
|
"Extension '{0}' v{1} is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: '{2}@1.2.3'.",
|
|
235
235
|
id,
|
|
236
236
|
installedExtension.manifest.version,
|
|
@@ -239,7 +239,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
239
239
|
return false;
|
|
240
240
|
}
|
|
241
241
|
if (version && installedExtension.manifest.version === version) {
|
|
242
|
-
this.logger.info(( localize(
|
|
242
|
+
this.logger.info(( localize(2275, "Extension '{0}' is already installed.", `${id}@${version}`)));
|
|
243
243
|
return false;
|
|
244
244
|
}
|
|
245
245
|
if (installedExtension.preRelease && version !== "prerelease") {
|
|
@@ -254,7 +254,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
254
254
|
const failed = [];
|
|
255
255
|
const extensionsToInstall = [];
|
|
256
256
|
const galleryExtensions = await this.getGalleryExtensions(installExtensionInfos);
|
|
257
|
-
await Promise.all(
|
|
257
|
+
await Promise.all(installExtensionInfos.map(async (
|
|
258
258
|
{
|
|
259
259
|
id,
|
|
260
260
|
version,
|
|
@@ -281,23 +281,23 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
281
281
|
if (installedExtension) {
|
|
282
282
|
if (gallery.version === installedExtension.manifest.version) {
|
|
283
283
|
this.logger.info(( localize(
|
|
284
|
-
|
|
284
|
+
2275,
|
|
285
285
|
"Extension '{0}' is already installed.",
|
|
286
286
|
version ? `${id}@${version}` : id
|
|
287
287
|
)));
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
this.logger.info(( localize(
|
|
291
|
-
|
|
291
|
+
2276,
|
|
292
292
|
"Updating the extension '{0}' to the version {1}",
|
|
293
293
|
id,
|
|
294
294
|
gallery.version
|
|
295
295
|
)));
|
|
296
296
|
}
|
|
297
297
|
if (installOptions.isBuiltin) {
|
|
298
|
-
this.logger.info(version ? ( localize(
|
|
298
|
+
this.logger.info(version ? ( localize(2277, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(2278, "Installing builtin extension '{0}'...", id)));
|
|
299
299
|
} else {
|
|
300
|
-
this.logger.info(version ? ( localize(
|
|
300
|
+
this.logger.info(version ? ( localize(2279, "Installing extension '{0}' v{1}...", id, version)) : ( localize(2280, "Installing extension '{0}'...", id)));
|
|
301
301
|
}
|
|
302
302
|
extensionsToInstall.push({
|
|
303
303
|
extension: gallery,
|
|
@@ -307,13 +307,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
307
307
|
isApplicationScoped: installOptions.isApplicationScoped || installedExtension?.isApplicationScoped
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
|
-
}))
|
|
310
|
+
}));
|
|
311
311
|
if (extensionsToInstall.length) {
|
|
312
312
|
const installationResult = await this.extensionManagementService.installGalleryExtensions(extensionsToInstall);
|
|
313
313
|
for (const extensionResult of installationResult) {
|
|
314
314
|
if (extensionResult.error) {
|
|
315
315
|
this.logger.error(( localize(
|
|
316
|
-
|
|
316
|
+
2281,
|
|
317
317
|
"Error while installing extension {0}: {1}",
|
|
318
318
|
extensionResult.identifier.id,
|
|
319
319
|
getErrorMessage(extensionResult.error)
|
|
@@ -321,7 +321,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
321
321
|
failed.push(extensionResult.identifier.id);
|
|
322
322
|
} else {
|
|
323
323
|
this.logger.info(( localize(
|
|
324
|
-
|
|
324
|
+
2282,
|
|
325
325
|
"Extension '{0}' v{1} was successfully installed.",
|
|
326
326
|
extensionResult.identifier.id,
|
|
327
327
|
extensionResult.local?.manifest.version
|
|
@@ -343,10 +343,10 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
343
343
|
...installOptions,
|
|
344
344
|
installGivenVersion: true
|
|
345
345
|
});
|
|
346
|
-
this.logger.info(( localize(
|
|
346
|
+
this.logger.info(( localize(2283, "Extension '{0}' was successfully installed.", basename(vsix))));
|
|
347
347
|
} catch (error) {
|
|
348
348
|
if (isCancellationError(error)) {
|
|
349
|
-
this.logger.info(( localize(
|
|
349
|
+
this.logger.info(( localize(2284, "Cancelled installing extension '{0}'.", basename(vsix))));
|
|
350
350
|
} else {
|
|
351
351
|
throw error;
|
|
352
352
|
}
|
|
@@ -393,7 +393,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
393
393
|
if (!force) {
|
|
394
394
|
if (semverExports.gt(existingExtension.manifest.version, manifest.version)) {
|
|
395
395
|
this.logger.info(( localize(
|
|
396
|
-
|
|
396
|
+
2285,
|
|
397
397
|
"A newer version of extension '{0}' v{1} is already installed. Use '--force' option to downgrade to older version.",
|
|
398
398
|
existingExtension.identifier.id,
|
|
399
399
|
existingExtension.manifest.version,
|
|
@@ -424,7 +424,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
424
424
|
}
|
|
425
425
|
if (( extensionsToUninstall.some(e => e.type === ExtensionType.System))) {
|
|
426
426
|
this.logger.info(( localize(
|
|
427
|
-
|
|
427
|
+
2286,
|
|
428
428
|
"Extension '{0}' is a Built-in extension and cannot be uninstalled",
|
|
429
429
|
id
|
|
430
430
|
)));
|
|
@@ -432,13 +432,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
432
432
|
}
|
|
433
433
|
if (!force && ( extensionsToUninstall.some(e => e.isBuiltin))) {
|
|
434
434
|
this.logger.info(( localize(
|
|
435
|
-
|
|
435
|
+
2287,
|
|
436
436
|
"Extension '{0}' is marked as a Built-in extension by user. Please use '--force' option to uninstall it.",
|
|
437
437
|
id
|
|
438
438
|
)));
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
this.logger.info(( localize(
|
|
441
|
+
this.logger.info(( localize(2288, "Uninstalling {0}...", id)));
|
|
442
442
|
for (const extensionToUninstall of extensionsToUninstall) {
|
|
443
443
|
await this.extensionManagementService.uninstall(extensionToUninstall, {
|
|
444
444
|
profileLocation
|
|
@@ -446,13 +446,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
446
446
|
}
|
|
447
447
|
if (this.location) {
|
|
448
448
|
this.logger.info(( localize(
|
|
449
|
-
|
|
449
|
+
2289,
|
|
450
450
|
"Extension '{0}' was successfully uninstalled from {1}!",
|
|
451
451
|
id,
|
|
452
452
|
this.location
|
|
453
453
|
)));
|
|
454
454
|
} else {
|
|
455
|
-
this.logger.info(( localize(
|
|
455
|
+
this.logger.info(( localize(2290, "Extension '{0}' was successfully uninstalled!", id)));
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -470,12 +470,12 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
notInstalled(id) {
|
|
473
|
-
return this.location ? ( localize(
|
|
473
|
+
return this.location ? ( localize(2291, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(2292, "Extension '{0}' is not installed.", id));
|
|
474
474
|
}
|
|
475
475
|
validateBuiltinExtensionEnabledWithAutoUpdates(extension) {
|
|
476
476
|
if (extension.isBuiltin && ( this.productService.builtInExtensionsEnabledWithAutoUpdates.some(e => e.toLowerCase() === extension.identifier.id.toLowerCase())) && !extension.forceAutoUpdate) {
|
|
477
477
|
return localize(
|
|
478
|
-
|
|
478
|
+
2293,
|
|
479
479
|
"Extension '{0}' is a built-in extension and not allowed to be updated in the current product quality '{1}'.",
|
|
480
480
|
extension.identifier.id,
|
|
481
481
|
this.productService.quality
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
|
|
3
3
|
import { IAgentEditorCommentsBridge } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/agentEditorComments/common/agentEditorComments.service";
|
|
4
|
-
import { IExtHostContext } from "
|
|
4
|
+
import { IExtHostContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extHostCustomers";
|
|
5
5
|
import { MainThreadAgentEditorCommentsShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
6
|
/**
|
|
7
7
|
* Bridges the {@link IAgentEditorCommentsBridge} (backed, in the Agents window,
|
|
@@ -4,7 +4,7 @@ import { DisposableMap, DisposableStore } from '@codingame/monaco-vscode-api/vsc
|
|
|
4
4
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
5
5
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
6
|
import { IAgentEditorCommentsBridge } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/agentEditorComments/common/agentEditorComments.service';
|
|
7
|
-
import { extHostNamedCustomer } from '
|
|
7
|
+
import { extHostNamedCustomer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extHostCustomers';
|
|
8
8
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
9
9
|
|
|
10
10
|
let MainThreadAgentEditorComments = class MainThreadAgentEditorComments {
|
|
@@ -50,11 +50,11 @@ let MainThreadAgentEditorComments = class MainThreadAgentEditorComments {
|
|
|
50
50
|
if (!resource) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
const comments =
|
|
53
|
+
const comments = this._bridge.getComments(resource).map(comment => ({
|
|
54
54
|
id: comment.id,
|
|
55
55
|
range: comment.range,
|
|
56
56
|
body: comment.body
|
|
57
|
-
}))
|
|
57
|
+
}));
|
|
58
58
|
this._proxy.$acceptAgentEditorComments(handle, comments, this._bridge.acceptsComments(resource));
|
|
59
59
|
}
|
|
60
60
|
dispose() {
|