@codingame/monaco-vscode-extensions-service-override 11.1.1 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/webWorkerExtensionHostIframe.html +2 -2
- package/index.d.ts +40 -2
- package/index.js +266 -1
- package/package.json +81 -11
- package/vscode/src/vs/base/common/console.d.ts +22 -0
- package/vscode/src/vs/base/common/console.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.d.ts +24 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +54 -53
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.d.ts +14 -0
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +4 -2
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.d.ts +1 -0
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +1 -0
- package/vscode/src/vs/platform/remote/common/managedSocket.d.ts +30 -0
- package/vscode/src/vs/platform/remote/common/managedSocket.js +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.d.ts +12 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.d.ts +15 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +73 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +67 -39
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.d.ts +18 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.d.ts +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +12 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +65 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +33 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +15 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.d.ts +15 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.d.ts +21 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.d.ts +20 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +169 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +50 -58
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.d.ts +20 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +13 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.d.ts +13 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.d.ts +38 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +82 -75
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.d.ts +53 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +7 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.d.ts +14 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.d.ts +21 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.d.ts +13 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.d.ts +21 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +58 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +40 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +23 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +8 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +15 -16
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +37 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +53 -52
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +60 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +97 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.d.ts +34 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.js +4 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.d.ts +6 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.d.ts +42 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +42 -45
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.d.ts +32 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +7 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.d.ts +25 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +64 -60
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +12 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +108 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +31 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +18 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +42 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +23 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.d.ts +13 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.d.ts +20 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +6 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +46 -47
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +3 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +4 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +17 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +4 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +3 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +9 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.d.ts +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +39 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.d.ts +12 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.d.ts +17 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +13 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.d.ts +13 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.d.ts +19 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.d.ts +52 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +11 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +9 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +24 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +9 -19
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +21 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.d.ts +13 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.d.ts +21 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.d.ts +15 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +6 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.d.ts +28 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +174 -195
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.d.ts +20 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +4 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +80 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +27 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.d.ts +12 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +7 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.d.ts +44 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +6 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.d.ts +16 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.d.ts +45 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +41 -16
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.d.ts +44 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +29 -30
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.d.ts +25 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +21 -25
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.d.ts +17 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.d.ts +6 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +42 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +9 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.d.ts +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +19 -18
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +10 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.d.ts +71 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +34 -35
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +1 -0
- package/vscode/src/vs/workbench/common/comments.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +14 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +6 -4
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.d.ts +25 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +62 -60
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +74 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +63 -45
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +57 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +16 -12
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.d.ts +20 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +203 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +217 -180
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +4 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.d.ts +8 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +68 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +37 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +40 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +38 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +15 -14
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.d.ts +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +4 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +14 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +18 -19
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.d.ts +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +8 -7
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.d.ts +54 -0
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +4 -3
- package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.d.ts +4 -0
- package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.d.ts +68 -0
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +12 -9
- package/_virtual/semver.js +0 -5
- package/extensions.js +0 -257
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/url.js +0 -10
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { toAction } from 'vscode/vscode/vs/base/common/actions';
|
|
4
5
|
import { MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -32,48 +33,46 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
_showMessage(severity, message, commands, options) {
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
return (new Promise(resolve => {
|
|
37
|
+
const primaryActions = ( commands.map(command => toAction({
|
|
38
|
+
id: `_extension_message_handle_${command.handle}`,
|
|
39
|
+
label: command.title,
|
|
40
|
+
enabled: true,
|
|
41
|
+
run: () => {
|
|
42
|
+
resolve(command.handle);
|
|
43
|
+
return Promise.resolve();
|
|
44
|
+
}
|
|
45
|
+
})));
|
|
46
|
+
let source;
|
|
47
|
+
if (options.source) {
|
|
48
|
+
source = {
|
|
49
|
+
label: options.source.label,
|
|
50
|
+
id: options.source.identifier.value
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if (!source) {
|
|
54
|
+
source = ( localize(2289, "Extension"));
|
|
55
|
+
}
|
|
56
|
+
const secondaryActions = [];
|
|
57
|
+
if (options.source) {
|
|
58
|
+
secondaryActions.push(toAction({
|
|
59
|
+
id: options.source.identifier.value,
|
|
60
|
+
label: ( localize(2290, "Manage Extension")),
|
|
41
61
|
run: () => {
|
|
42
|
-
|
|
43
|
-
return Promise.resolve();
|
|
62
|
+
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
44
63
|
}
|
|
45
|
-
}))
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (options.source) {
|
|
58
|
-
secondaryActions.push(toAction({
|
|
59
|
-
id: options.source.identifier.value,
|
|
60
|
-
label: ( localize(4937, "Manage Extension")),
|
|
61
|
-
run: () => {
|
|
62
|
-
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
const messageHandle = this._notificationService.notify({
|
|
67
|
-
severity,
|
|
68
|
-
message,
|
|
69
|
-
actions: { primary: primaryActions, secondary: secondaryActions },
|
|
70
|
-
source
|
|
71
|
-
});
|
|
72
|
-
Event.once(messageHandle.onDidClose)(() => {
|
|
73
|
-
resolve(undefined);
|
|
74
|
-
});
|
|
75
|
-
}))
|
|
76
|
-
);
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
const messageHandle = this._notificationService.notify({
|
|
67
|
+
severity,
|
|
68
|
+
message,
|
|
69
|
+
actions: { primary: primaryActions, secondary: secondaryActions },
|
|
70
|
+
source
|
|
71
|
+
});
|
|
72
|
+
Event.once(messageHandle.onDidClose)(() => {
|
|
73
|
+
resolve(undefined);
|
|
74
|
+
});
|
|
75
|
+
}));
|
|
77
76
|
}
|
|
78
77
|
async _showModalMessage(severity, message, detail, commands, useCustom) {
|
|
79
78
|
const buttons = [];
|
|
@@ -93,13 +92,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
93
92
|
if (!cancelButton) {
|
|
94
93
|
if (buttons.length > 0) {
|
|
95
94
|
cancelButton = {
|
|
96
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(2291, "Cancel")),
|
|
97
96
|
run: () => undefined
|
|
98
97
|
};
|
|
99
98
|
}
|
|
100
99
|
else {
|
|
101
100
|
cancelButton = {
|
|
102
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(2292, "&&OK")),
|
|
103
102
|
run: () => undefined
|
|
104
103
|
};
|
|
105
104
|
}
|
|
@@ -117,10 +116,10 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
117
116
|
};
|
|
118
117
|
MainThreadMessageService = __decorate([
|
|
119
118
|
extHostNamedCustomer(MainContext.MainThreadMessageService),
|
|
120
|
-
(
|
|
121
|
-
(
|
|
122
|
-
(
|
|
123
|
-
(
|
|
119
|
+
( __param(1, INotificationService)),
|
|
120
|
+
( __param(2, ICommandService)),
|
|
121
|
+
( __param(3, IDialogService)),
|
|
122
|
+
( __param(4, IExtensionService))
|
|
124
123
|
], MainThreadMessageService);
|
|
125
124
|
|
|
126
125
|
export { MainThreadMessageService };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
2
|
+
import { INotebookCellStatusBarService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service";
|
|
3
|
+
import { INotebookContributionData, NotebookExtensionDescription, TransientOptions } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
4
|
+
import { INotebookService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
5
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
import { MainThreadNotebookShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
7
|
+
export declare class MainThreadNotebooks implements MainThreadNotebookShape {
|
|
8
|
+
private readonly _notebookService;
|
|
9
|
+
private readonly _cellStatusBarService;
|
|
10
|
+
private readonly _logService;
|
|
11
|
+
private readonly _disposables;
|
|
12
|
+
private readonly _proxy;
|
|
13
|
+
private readonly _notebookSerializer;
|
|
14
|
+
private readonly _notebookCellStatusBarRegistrations;
|
|
15
|
+
constructor(extHostContext: IExtHostContext, _notebookService: INotebookService, _cellStatusBarService: INotebookCellStatusBarService, _logService: ILogService);
|
|
16
|
+
dispose(): void;
|
|
17
|
+
$registerNotebookSerializer(handle: number, extension: NotebookExtensionDescription, viewType: string, options: TransientOptions, data: INotebookContributionData | undefined): void;
|
|
18
|
+
$unregisterNotebookSerializer(handle: number): void;
|
|
19
|
+
$emitCellStatusBarEvent(eventHandle: number): void;
|
|
20
|
+
$registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void>;
|
|
21
|
+
$unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void>;
|
|
22
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
3
4
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
5
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
@@ -10,7 +11,7 @@ import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/comm
|
|
|
10
11
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
12
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
12
13
|
import { INotebookCellStatusBarService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
13
|
-
import { SimpleNotebookProviderInfo } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
14
|
+
import { SimpleNotebookProviderInfo } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
14
15
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
15
16
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
16
17
|
import { SerializableObjectWithBuffers } from 'vscode/vscode/vs/workbench/services/extensions/common/proxyIdentifier';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { URI, UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
3
|
+
import { INotebookEditorModelResolverService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
4
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
5
|
+
import { MainThreadNotebookDocumentsShape, NotebookDataDto } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
export declare class MainThreadNotebookDocuments implements MainThreadNotebookDocumentsShape {
|
|
8
|
+
private readonly _notebookEditorModelResolverService;
|
|
9
|
+
private readonly _uriIdentityService;
|
|
10
|
+
private readonly _disposables;
|
|
11
|
+
private readonly _proxy;
|
|
12
|
+
private readonly _documentEventListenersMapping;
|
|
13
|
+
private readonly _modelReferenceCollection;
|
|
14
|
+
constructor(extHostContext: IExtHostContext, _notebookEditorModelResolverService: INotebookEditorModelResolverService, _uriIdentityService: IUriIdentityService);
|
|
15
|
+
dispose(): void;
|
|
16
|
+
handleNotebooksAdded(notebooks: readonly NotebookTextModel[]): void;
|
|
17
|
+
handleNotebooksRemoved(uris: URI[]): void;
|
|
18
|
+
$tryCreateNotebook(options: {
|
|
19
|
+
viewType: string;
|
|
20
|
+
content?: NotebookDataDto;
|
|
21
|
+
}): Promise<UriComponents>;
|
|
22
|
+
$tryOpenNotebook(uriComponents: UriComponents): Promise<URI>;
|
|
23
|
+
$trySaveNotebook(uriComponents: UriComponents): Promise<boolean>;
|
|
24
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { INotebookEditorService } from "vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
5
|
+
import { INotebookService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
6
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
|
+
export declare class MainThreadNotebooksAndEditors {
|
|
9
|
+
private readonly _notebookService;
|
|
10
|
+
private readonly _notebookEditorService;
|
|
11
|
+
private readonly _editorService;
|
|
12
|
+
private readonly _editorGroupService;
|
|
13
|
+
private readonly _logService;
|
|
14
|
+
private readonly _proxy;
|
|
15
|
+
private readonly _disposables;
|
|
16
|
+
private readonly _editorListeners;
|
|
17
|
+
private _currentState?;
|
|
18
|
+
private readonly _mainThreadNotebooks;
|
|
19
|
+
private readonly _mainThreadEditors;
|
|
20
|
+
constructor(extHostContext: IExtHostContext, instantiationService: IInstantiationService, _notebookService: INotebookService, _notebookEditorService: INotebookEditorService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _logService: ILogService);
|
|
21
|
+
dispose(): void;
|
|
22
|
+
private _handleEditorAdd;
|
|
23
|
+
private _handleEditorRemove;
|
|
24
|
+
private _updateState;
|
|
25
|
+
private _onDelta;
|
|
26
|
+
private static _isDeltaEmpty;
|
|
27
|
+
private static _asModelAddData;
|
|
28
|
+
private _asEditorAddData;
|
|
29
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { diffSets, diffMaps } from 'vscode/vscode/vs/base/common/collections';
|
|
3
4
|
import { DisposableStore, DisposableMap, combinedDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -7,8 +8,8 @@ import { MainThreadNotebookDocuments } from './mainThreadNotebookDocuments.js';
|
|
|
7
8
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
8
9
|
import { MainThreadNotebookEditors } from './mainThreadNotebookEditors.js';
|
|
9
10
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
10
|
-
import { editorGroupToColumn } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
11
|
-
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
11
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
12
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
12
13
|
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
13
14
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
14
15
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as extHostProtocol from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import * as notebookCommon from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
3
|
+
import { ICellExecuteUpdate, ICellExecutionComplete } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
4
|
+
export declare namespace NotebookDto {
|
|
5
|
+
function toNotebookOutputItemDto(item: notebookCommon.IOutputItemDto): extHostProtocol.NotebookOutputItemDto;
|
|
6
|
+
function toNotebookOutputDto(output: notebookCommon.IOutputDto): extHostProtocol.NotebookOutputDto;
|
|
7
|
+
function toNotebookCellDataDto(cell: notebookCommon.ICellDto2): extHostProtocol.NotebookCellDataDto;
|
|
8
|
+
function toNotebookDataDto(data: notebookCommon.NotebookData): extHostProtocol.NotebookDataDto;
|
|
9
|
+
function fromNotebookOutputItemDto(item: extHostProtocol.NotebookOutputItemDto): notebookCommon.IOutputItemDto;
|
|
10
|
+
function fromNotebookOutputDto(output: extHostProtocol.NotebookOutputDto): notebookCommon.IOutputDto;
|
|
11
|
+
function fromNotebookCellDataDto(cell: extHostProtocol.NotebookCellDataDto): notebookCommon.ICellDto2;
|
|
12
|
+
function fromNotebookDataDto(data: extHostProtocol.NotebookDataDto): notebookCommon.NotebookData;
|
|
13
|
+
function toNotebookCellDto(cell: notebookCommon.ICell): extHostProtocol.NotebookCellDto;
|
|
14
|
+
function fromCellExecuteUpdateDto(data: extHostProtocol.ICellExecuteUpdateDto): ICellExecuteUpdate;
|
|
15
|
+
function fromCellExecuteCompleteDto(data: extHostProtocol.ICellExecutionCompleteDto): ICellExecutionComplete;
|
|
16
|
+
function fromCellEditOperationDto(edit: extHostProtocol.ICellEditOperationDto): notebookCommon.ICellEditOperation;
|
|
17
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import { CellEditType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
1
3
|
import { CellExecutionUpdateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
2
4
|
|
|
3
5
|
var NotebookDto;
|
|
4
|
-
( (
|
|
6
|
+
(function (NotebookDto) {
|
|
5
7
|
function toNotebookOutputItemDto(item) {
|
|
6
8
|
return {
|
|
7
9
|
mime: item.mime,
|
|
@@ -111,7 +113,7 @@ var NotebookDto;
|
|
|
111
113
|
}
|
|
112
114
|
NotebookDto.fromCellExecuteCompleteDto = fromCellExecuteCompleteDto;
|
|
113
115
|
function fromCellEditOperationDto(edit) {
|
|
114
|
-
if (edit.editType ===
|
|
116
|
+
if (edit.editType === CellEditType.Replace) {
|
|
115
117
|
return {
|
|
116
118
|
editType: edit.editType,
|
|
117
119
|
index: edit.index,
|
|
@@ -124,6 +126,6 @@ var NotebookDto;
|
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
NotebookDto.fromCellEditOperationDto = fromCellEditOperationDto;
|
|
127
|
-
})(NotebookDto || (NotebookDto = {}))
|
|
129
|
+
})(NotebookDto || (NotebookDto = {}));
|
|
128
130
|
|
|
129
131
|
export { NotebookDto };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
+
import { INotebookEditor } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
|
+
import { INotebookEditorService } from "vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
5
|
+
import { ICellRange } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
6
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
9
|
+
import { INotebookDocumentShowOptions, MainThreadNotebookEditorsShape, NotebookEditorRevealType } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
10
|
+
export declare class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape {
|
|
11
|
+
private readonly _editorService;
|
|
12
|
+
private readonly _notebookEditorService;
|
|
13
|
+
private readonly _editorGroupService;
|
|
14
|
+
private readonly _configurationService;
|
|
15
|
+
private readonly _disposables;
|
|
16
|
+
private readonly _proxy;
|
|
17
|
+
private readonly _mainThreadEditors;
|
|
18
|
+
private _currentViewColumnInfo?;
|
|
19
|
+
constructor(extHostContext: IExtHostContext, _editorService: IEditorService, _notebookEditorService: INotebookEditorService, _editorGroupService: IEditorGroupsService, _configurationService: IConfigurationService);
|
|
20
|
+
dispose(): void;
|
|
21
|
+
handleEditorsAdded(editors: readonly INotebookEditor[]): void;
|
|
22
|
+
handleEditorsRemoved(editorIds: readonly string[]): void;
|
|
23
|
+
private _updateEditorViewColumns;
|
|
24
|
+
$tryShowNotebookDocument(resource: UriComponents, viewType: string, options: INotebookDocumentShowOptions): Promise<string>;
|
|
25
|
+
$tryRevealRange(id: string, range: ICellRange, revealType: NotebookEditorRevealType): Promise<void>;
|
|
26
|
+
$trySetSelections(id: string, ranges: ICellRange[]): void;
|
|
27
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { equals } from 'vscode/vscode/vs/base/common/objects';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
7
|
import { EditorActivation } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
7
|
-
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
9
|
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
9
|
-
import { editorGroupToColumn, columnToEditorGroup } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
10
|
+
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
10
11
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
11
12
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
13
|
import { ExtHostContext, NotebookEditorRevealType } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { INotebookEditorService } from "vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
5
|
+
import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
6
|
+
import { VariablesResult } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService";
|
|
7
|
+
import { INotebookKernelService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
8
|
+
import { SerializableObjectWithBuffers } from "vscode/vscode/vs/workbench/services/extensions/common/proxyIdentifier";
|
|
9
|
+
import { ICellExecuteUpdateDto, ICellExecutionCompleteDto, INotebookKernelDto2, MainThreadNotebookKernelsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
10
|
+
import { INotebookService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
11
|
+
export declare class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape {
|
|
12
|
+
private readonly _languageService;
|
|
13
|
+
private readonly _notebookKernelService;
|
|
14
|
+
private readonly _notebookExecutionStateService;
|
|
15
|
+
private readonly _notebookService;
|
|
16
|
+
private readonly _editors;
|
|
17
|
+
private readonly _disposables;
|
|
18
|
+
private readonly _kernels;
|
|
19
|
+
private readonly _kernelDetectionTasks;
|
|
20
|
+
private readonly _kernelSourceActionProviders;
|
|
21
|
+
private readonly _kernelSourceActionProvidersEventRegistrations;
|
|
22
|
+
private readonly _proxy;
|
|
23
|
+
private readonly _executions;
|
|
24
|
+
private readonly _notebookExecutions;
|
|
25
|
+
constructor(extHostContext: IExtHostContext, _languageService: ILanguageService, _notebookKernelService: INotebookKernelService, _notebookExecutionStateService: INotebookExecutionStateService, _notebookService: INotebookService, notebookEditorService: INotebookEditorService);
|
|
26
|
+
dispose(): void;
|
|
27
|
+
private _onEditorAdd;
|
|
28
|
+
private _onEditorRemove;
|
|
29
|
+
$postMessage(handle: number, editorId: string | undefined, message: any): Promise<boolean>;
|
|
30
|
+
private variableRequestIndex;
|
|
31
|
+
private variableRequestMap;
|
|
32
|
+
$receiveVariable(requestId: string, variable: VariablesResult): void;
|
|
33
|
+
$addKernel(handle: number, data: INotebookKernelDto2): Promise<void>;
|
|
34
|
+
$updateKernel(handle: number, data: Partial<INotebookKernelDto2>): void;
|
|
35
|
+
$removeKernel(handle: number): void;
|
|
36
|
+
$updateNotebookPriority(handle: number, notebook: UriComponents, value: number | undefined): void;
|
|
37
|
+
$createExecution(handle: number, controllerId: string, rawUri: UriComponents, cellHandle: number): void;
|
|
38
|
+
$updateExecution(handle: number, data: SerializableObjectWithBuffers<ICellExecuteUpdateDto[]>): void;
|
|
39
|
+
$completeExecution(handle: number, data: SerializableObjectWithBuffers<ICellExecutionCompleteDto>): void;
|
|
40
|
+
$createNotebookExecution(handle: number, controllerId: string, rawUri: UriComponents): void;
|
|
41
|
+
$beginNotebookExecution(handle: number): void;
|
|
42
|
+
$completeNotebookExecution(handle: number): void;
|
|
43
|
+
$addKernelDetectionTask(handle: number, notebookType: string): Promise<void>;
|
|
44
|
+
$removeKernelDetectionTask(handle: number): void;
|
|
45
|
+
$addKernelSourceActionProvider(handle: number, eventHandle: number, notebookType: string): Promise<void>;
|
|
46
|
+
$removeKernelSourceActionProvider(handle: number, eventHandle: number): void;
|
|
47
|
+
$emitNotebookKernelSourceActionsChangeEvent(eventHandle: number): void;
|
|
48
|
+
$variablesUpdated(notebookUri: UriComponents): void;
|
|
49
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
|
|
3
4
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
5
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
@@ -9,7 +10,7 @@ import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/langu
|
|
|
9
10
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
10
11
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
11
12
|
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
12
|
-
import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
13
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
13
14
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
14
15
|
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
15
16
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { MainThreadNotebookRenderersShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { INotebookRendererMessagingService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service";
|
|
5
|
+
export declare class MainThreadNotebookRenderers extends Disposable implements MainThreadNotebookRenderersShape {
|
|
6
|
+
private readonly messaging;
|
|
7
|
+
private readonly proxy;
|
|
8
|
+
constructor(extHostContext: IExtHostContext, messaging: INotebookRendererMessagingService);
|
|
9
|
+
$postMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
4
|
+
export declare class SaveParticipant {
|
|
5
|
+
private readonly workingCopyFileService;
|
|
6
|
+
private _saveParticipantDisposable;
|
|
7
|
+
constructor(extHostContext: IExtHostContext, instantiationService: IInstantiationService, workingCopyFileService: IWorkingCopyFileService);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
5
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
5
6
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
6
7
|
import { raceCancellationError } from 'vscode/vscode/vs/base/common/async';
|
|
7
8
|
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
8
|
-
import { NotebookFileWorkingCopyModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
|
|
9
|
+
import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
|
|
9
10
|
|
|
10
11
|
class ExtHostNotebookDocumentSaveParticipant {
|
|
11
12
|
constructor(extHostContext) {
|
|
12
|
-
this._proxy = (
|
|
13
|
+
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostNotebookDocumentSaveParticipant));
|
|
13
14
|
}
|
|
14
15
|
async participate(workingCopy, context, _progress, token) {
|
|
15
16
|
if (!workingCopy.model || !(workingCopy.model instanceof NotebookFileWorkingCopyModel)) {
|
|
16
17
|
return undefined;
|
|
17
18
|
}
|
|
18
19
|
let _warningTimeout;
|
|
19
|
-
const p = (
|
|
20
|
-
_warningTimeout = setTimeout(() => reject((
|
|
20
|
+
const p = ( new Promise((resolve, reject) => {
|
|
21
|
+
_warningTimeout = setTimeout(() => reject(( new Error(( localize(2293, "Aborted onWillSaveNotebookDocument-event after 1750ms"))))), 1750);
|
|
21
22
|
this._proxy.$participateInSave(workingCopy.resource, context.reason, token).then(_ => {
|
|
22
23
|
clearTimeout(_warningTimeout);
|
|
23
24
|
return undefined;
|
|
24
25
|
}).then(resolve, reject);
|
|
25
|
-
}))
|
|
26
|
+
}));
|
|
26
27
|
return raceCancellationError(p, token);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -37,8 +38,8 @@ let SaveParticipant = class SaveParticipant {
|
|
|
37
38
|
};
|
|
38
39
|
SaveParticipant = __decorate([
|
|
39
40
|
extHostCustomer,
|
|
40
|
-
(
|
|
41
|
-
(
|
|
41
|
+
( __param(1, IInstantiationService)),
|
|
42
|
+
( __param(2, IWorkingCopyFileService))
|
|
42
43
|
], SaveParticipant);
|
|
43
44
|
|
|
44
45
|
export { SaveParticipant };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OutputChannelUpdateMode } from "vscode/vscode/vs/workbench/services/output/common/output";
|
|
2
|
+
import { IOutputService } from "vscode/vscode/vs/workbench/services/output/common/output.service";
|
|
3
|
+
import { MainThreadOutputServiceShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
6
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
8
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
9
|
+
import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
|
|
10
|
+
export declare class MainThreadOutputService extends Disposable implements MainThreadOutputServiceShape {
|
|
11
|
+
private static _extensionIdPool;
|
|
12
|
+
private readonly _proxy;
|
|
13
|
+
private readonly _outputService;
|
|
14
|
+
private readonly _viewsService;
|
|
15
|
+
private readonly _configurationService;
|
|
16
|
+
private readonly _statusbarService;
|
|
17
|
+
private readonly _outputStatusItem;
|
|
18
|
+
constructor(extHostContext: IExtHostContext, outputService: IOutputService, viewsService: IViewsService, configurationService: IConfigurationService, statusbarService: IStatusbarService);
|
|
19
|
+
$register(label: string, file: UriComponents, languageId: string | undefined, extensionId: string): Promise<string>;
|
|
20
|
+
$update(channelId: string, mode: OutputChannelUpdateMode, till?: number): Promise<void>;
|
|
21
|
+
$reveal(channelId: string, preserveFocus: boolean): Promise<void>;
|
|
22
|
+
private _showChannelQuietly;
|
|
23
|
+
$close(channelId: string): Promise<void>;
|
|
24
|
+
$dispose(channelId: string): Promise<void>;
|
|
25
|
+
private _getChannel;
|
|
26
|
+
}
|
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
4
|
import { OUTPUT_VIEW_ID, Extensions, OutputChannelUpdateMode } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
4
5
|
import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
|
|
5
6
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
6
7
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
7
8
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
|
-
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { Disposable, MutableDisposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
10
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
10
11
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
11
12
|
import { isNumber } from 'vscode/vscode/vs/base/common/types';
|
|
13
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
|
+
import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
15
|
+
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
16
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
12
17
|
|
|
13
18
|
var MainThreadOutputService_1;
|
|
14
19
|
let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
15
20
|
static { MainThreadOutputService_1 = this; }
|
|
16
21
|
static { this._extensionIdPool = ( new Map()); }
|
|
17
|
-
constructor(extHostContext, outputService, viewsService) {
|
|
22
|
+
constructor(extHostContext, outputService, viewsService, configurationService, statusbarService) {
|
|
18
23
|
super();
|
|
24
|
+
this._outputStatusItem = this._register(( new MutableDisposable()));
|
|
19
25
|
this._outputService = outputService;
|
|
20
26
|
this._viewsService = viewsService;
|
|
27
|
+
this._configurationService = configurationService;
|
|
28
|
+
this._statusbarService = statusbarService;
|
|
21
29
|
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostOutputService));
|
|
22
30
|
const setVisibleChannel = () => {
|
|
23
31
|
const visibleChannel = this._viewsService.isViewVisible(OUTPUT_VIEW_ID) ? this._outputService.getActiveChannel() : undefined;
|
|
24
32
|
this._proxy.$setVisibleChannel(visibleChannel ? visibleChannel.id : null);
|
|
33
|
+
this._outputStatusItem.value = undefined;
|
|
25
34
|
};
|
|
26
35
|
this._register(Event.any(this._outputService.onActiveOutputChannel, Event.filter(this._viewsService.onDidChangeViewVisibility, ({ id }) => id === OUTPUT_VIEW_ID))(() => setVisibleChannel()));
|
|
27
36
|
setVisibleChannel();
|
|
@@ -48,8 +57,30 @@ let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
|
48
57
|
}
|
|
49
58
|
async $reveal(channelId, preserveFocus) {
|
|
50
59
|
const channel = this._getChannel(channelId);
|
|
51
|
-
if (channel) {
|
|
52
|
-
|
|
60
|
+
if (!channel) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const viewsToShowQuietly = this._configurationService.getValue('workbench.view.showQuietly') ?? {};
|
|
64
|
+
if (!this._viewsService.isViewVisible(OUTPUT_VIEW_ID) && viewsToShowQuietly[OUTPUT_VIEW_ID]) {
|
|
65
|
+
this._showChannelQuietly(channel);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this._outputService.showChannel(channel.id, preserveFocus);
|
|
69
|
+
}
|
|
70
|
+
_showChannelQuietly(channel) {
|
|
71
|
+
const statusProperties = {
|
|
72
|
+
name: ( localize(2294, "Show Output")),
|
|
73
|
+
text: '$(output)',
|
|
74
|
+
ariaLabel: ( localize(2295, "Show {0} Output Channel", channel.label)),
|
|
75
|
+
command: `workbench.action.output.show.${channel.id}`,
|
|
76
|
+
tooltip: ( localize(2296, "Show {0} Output Channel", channel.label)),
|
|
77
|
+
kind: 'prominent'
|
|
78
|
+
};
|
|
79
|
+
if (!this._outputStatusItem.value) {
|
|
80
|
+
this._outputStatusItem.value = this._statusbarService.addEntry(statusProperties, 'status.view.showQuietly', StatusbarAlignment.RIGHT, { id: 'status.notifications', alignment: StatusbarAlignment.LEFT });
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this._outputStatusItem.value.update(statusProperties);
|
|
53
84
|
}
|
|
54
85
|
}
|
|
55
86
|
async $close(channelId) {
|
|
@@ -71,7 +102,9 @@ let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
|
71
102
|
MainThreadOutputService = MainThreadOutputService_1 = __decorate([
|
|
72
103
|
extHostNamedCustomer(MainContext.MainThreadOutputService),
|
|
73
104
|
( __param(1, IOutputService)),
|
|
74
|
-
( __param(2, IViewsService))
|
|
105
|
+
( __param(2, IViewsService)),
|
|
106
|
+
( __param(3, IConfigurationService)),
|
|
107
|
+
( __param(4, IStatusbarService))
|
|
75
108
|
], MainThreadOutputService);
|
|
76
109
|
|
|
77
110
|
export { MainThreadOutputService };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { MainThreadProfileContentHandlersShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { IUserDataProfileImportExportService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
5
|
+
export declare class MainThreadProfileContentHandlers extends Disposable implements MainThreadProfileContentHandlersShape {
|
|
6
|
+
private readonly userDataProfileImportExportService;
|
|
7
|
+
private readonly proxy;
|
|
8
|
+
private readonly registeredHandlers;
|
|
9
|
+
constructor(context: IExtHostContext, userDataProfileImportExportService: IUserDataProfileImportExportService);
|
|
10
|
+
$registerProfileContentHandler(id: string, name: string, description: string | undefined, extensionId: string): Promise<void>;
|
|
11
|
+
$unregisterProfileContentHandler(id: string): Promise<void>;
|
|
12
|
+
}
|