@codingame/monaco-vscode-extensions-service-override 11.1.2 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.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 { multibyteAwareBtoa } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
4
|
import { createCancelablePromise } from 'vscode/vscode/vs/base/common/async';
|
|
4
5
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
@@ -12,30 +13,37 @@ import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
|
12
13
|
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
13
14
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
14
15
|
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
16
|
+
import { FileOperation } from 'vscode/vscode/vs/platform/files/common/files';
|
|
15
17
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
16
18
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
19
|
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
18
20
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
21
|
+
import { UndoRedoElementType } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
19
22
|
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
20
23
|
import { reviveWebviewExtension } from './mainThreadWebviews.js';
|
|
21
24
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
22
|
-
import { CustomEditorInput } from 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
25
|
+
import { CustomEditorInput } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
23
26
|
import { ICustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
24
27
|
import { CustomTextEditorModel } from '../../contrib/customEditor/common/customTextEditorModel.js';
|
|
25
|
-
import { ExtensionKeyedWebviewOriginStore } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
28
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
26
29
|
import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
27
|
-
import { editorGroupToColumn } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
30
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
28
31
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
29
32
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
30
33
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
31
34
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
32
35
|
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
33
|
-
import { ResourceWorkingCopy } from 'vscode/vscode/vs/workbench/services/workingCopy/common/resourceWorkingCopy';
|
|
34
|
-
import { NO_TYPE_ID } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
36
|
+
import { ResourceWorkingCopy } from '@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common/vscode/vs/workbench/services/workingCopy/common/resourceWorkingCopy';
|
|
37
|
+
import { NO_TYPE_ID, WorkingCopyCapabilities } from '@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
35
38
|
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
36
39
|
import { IWorkingCopyService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
|
|
37
40
|
|
|
38
41
|
var MainThreadCustomEditorModel_1;
|
|
42
|
+
var CustomEditorModelType;
|
|
43
|
+
(function (CustomEditorModelType) {
|
|
44
|
+
CustomEditorModelType[CustomEditorModelType["Custom"] = 0] = "Custom";
|
|
45
|
+
CustomEditorModelType[CustomEditorModelType["Text"] = 1] = "Text";
|
|
46
|
+
})(CustomEditorModelType || (CustomEditorModelType = {}));
|
|
39
47
|
let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
40
48
|
constructor(context, mainThreadWebview, mainThreadWebviewPanels, extensionService, storageService, workingCopyService, workingCopyFileService, _customEditorService, _editorGroupService, _editorService, _instantiationService, _webviewWorkbenchService) {
|
|
41
49
|
super();
|
|
@@ -46,10 +54,10 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
46
54
|
this._editorService = _editorService;
|
|
47
55
|
this._instantiationService = _instantiationService;
|
|
48
56
|
this._webviewWorkbenchService = _webviewWorkbenchService;
|
|
49
|
-
this._editorProviders = this._register((
|
|
50
|
-
this._editorRenameBackups = (
|
|
51
|
-
this._webviewOriginStore = (
|
|
52
|
-
this._proxyCustomEditors = (
|
|
57
|
+
this._editorProviders = this._register(( new DisposableMap()));
|
|
58
|
+
this._editorRenameBackups = ( new Map());
|
|
59
|
+
this._webviewOriginStore = ( new ExtensionKeyedWebviewOriginStore('mainThreadCustomEditors.origins', storageService));
|
|
60
|
+
this._proxyCustomEditors = ( context.getProxy(ExtHostContext.ExtHostCustomEditors));
|
|
53
61
|
this._register(workingCopyFileService.registerWorkingCopyProvider((editorResource) => {
|
|
54
62
|
const matchedWorkingCopies = [];
|
|
55
63
|
for (const workingCopy of workingCopyService.workingCopies) {
|
|
@@ -68,21 +76,21 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
68
76
|
}
|
|
69
77
|
return false;
|
|
70
78
|
},
|
|
71
|
-
resolveWebview: () => { throw (
|
|
79
|
+
resolveWebview: () => { throw ( new Error('not implemented')); }
|
|
72
80
|
}));
|
|
73
81
|
this._register(workingCopyFileService.onWillRunWorkingCopyFileOperation(async (e) => this.onWillRunWorkingCopyFileOperation(e)));
|
|
74
82
|
}
|
|
75
83
|
$registerTextEditorProvider(extensionData, viewType, options, capabilities, serializeBuffersForPostMessage) {
|
|
76
|
-
this.registerEditorProvider(
|
|
84
|
+
this.registerEditorProvider(CustomEditorModelType.Text, reviveWebviewExtension(extensionData), viewType, options, capabilities, true, serializeBuffersForPostMessage);
|
|
77
85
|
}
|
|
78
86
|
$registerCustomEditorProvider(extensionData, viewType, options, supportsMultipleEditorsPerDocument, serializeBuffersForPostMessage) {
|
|
79
|
-
this.registerEditorProvider(
|
|
87
|
+
this.registerEditorProvider(CustomEditorModelType.Custom, reviveWebviewExtension(extensionData), viewType, options, {}, supportsMultipleEditorsPerDocument, serializeBuffersForPostMessage);
|
|
80
88
|
}
|
|
81
89
|
registerEditorProvider(modelType, extension, viewType, options, capabilities, supportsMultipleEditorsPerDocument, serializeBuffersForPostMessage) {
|
|
82
|
-
if ((
|
|
83
|
-
throw (
|
|
90
|
+
if (( this._editorProviders.has(viewType))) {
|
|
91
|
+
throw ( new Error(`Provider for ${viewType} already registered`));
|
|
84
92
|
}
|
|
85
|
-
const disposables = (
|
|
93
|
+
const disposables = ( new DisposableStore());
|
|
86
94
|
disposables.add(this._customEditorService.registerCustomEditorCapabilities(viewType, {
|
|
87
95
|
supportsMultipleEditorsPerDocument
|
|
88
96
|
}));
|
|
@@ -99,9 +107,9 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
99
107
|
webviewInput.webview.extension = extension;
|
|
100
108
|
let backupId = webviewInput.backupId;
|
|
101
109
|
if (webviewInput.oldResource && !webviewInput.backupId) {
|
|
102
|
-
const backup = this._editorRenameBackups.get((
|
|
110
|
+
const backup = this._editorRenameBackups.get(( webviewInput.oldResource.toString()));
|
|
103
111
|
backupId = backup?.backupId;
|
|
104
|
-
this._editorRenameBackups.delete((
|
|
112
|
+
this._editorRenameBackups.delete(( webviewInput.oldResource.toString()));
|
|
105
113
|
}
|
|
106
114
|
let modelRef;
|
|
107
115
|
try {
|
|
@@ -155,8 +163,8 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
155
163
|
this._editorProviders.set(viewType, disposables);
|
|
156
164
|
}
|
|
157
165
|
$unregisterEditorProvider(viewType) {
|
|
158
|
-
if (!(
|
|
159
|
-
throw (
|
|
166
|
+
if (!( this._editorProviders.has(viewType))) {
|
|
167
|
+
throw ( new Error(`No provider for ${viewType} registered`));
|
|
160
168
|
}
|
|
161
169
|
this._editorProviders.deleteAndDispose(viewType);
|
|
162
170
|
this._customEditorService.models.disposeAllModelsForView(viewType);
|
|
@@ -167,12 +175,12 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
167
175
|
return existingModel;
|
|
168
176
|
}
|
|
169
177
|
switch (modelType) {
|
|
170
|
-
case
|
|
178
|
+
case CustomEditorModelType.Text:
|
|
171
179
|
{
|
|
172
180
|
const model = CustomTextEditorModel.create(this._instantiationService, viewType, resource);
|
|
173
181
|
return this._customEditorService.models.add(resource, viewType, model);
|
|
174
182
|
}
|
|
175
|
-
case
|
|
183
|
+
case CustomEditorModelType.Custom:
|
|
176
184
|
{
|
|
177
185
|
const model = MainThreadCustomEditorModel.create(this._instantiationService, this._proxyCustomEditors, viewType, resource, options, () => {
|
|
178
186
|
return Array.from(this.mainThreadWebviewPanels.webviewInputs)
|
|
@@ -194,12 +202,12 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
194
202
|
const resource = URI.revive(resourceComponents);
|
|
195
203
|
const model = await this._customEditorService.models.get(resource, viewType);
|
|
196
204
|
if (!model || !(model instanceof MainThreadCustomEditorModel)) {
|
|
197
|
-
throw (
|
|
205
|
+
throw ( new Error('Could not find model for webview editor'));
|
|
198
206
|
}
|
|
199
207
|
return model;
|
|
200
208
|
}
|
|
201
209
|
async onWillRunWorkingCopyFileOperation(e) {
|
|
202
|
-
if (e.operation !==
|
|
210
|
+
if (e.operation !== FileOperation.MOVE) {
|
|
203
211
|
return;
|
|
204
212
|
}
|
|
205
213
|
e.waitUntil((async () => {
|
|
@@ -213,41 +221,42 @@ let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
|
|
|
213
221
|
if (model instanceof MainThreadCustomEditorModel && model.isDirty()) {
|
|
214
222
|
const workingCopy = await model.backup(CancellationToken.None);
|
|
215
223
|
if (workingCopy.meta) {
|
|
216
|
-
this._editorRenameBackups.set((
|
|
224
|
+
this._editorRenameBackups.set(( model.editorResource.toString()), workingCopy.meta);
|
|
217
225
|
}
|
|
218
226
|
}
|
|
219
227
|
}
|
|
220
228
|
})());
|
|
221
229
|
}
|
|
222
230
|
};
|
|
223
|
-
MainThreadCustomEditors = (
|
|
224
|
-
(
|
|
225
|
-
(
|
|
226
|
-
(
|
|
227
|
-
(
|
|
228
|
-
(
|
|
229
|
-
(
|
|
230
|
-
(
|
|
231
|
-
(
|
|
232
|
-
(
|
|
233
|
-
], MainThreadCustomEditors))
|
|
231
|
+
MainThreadCustomEditors = ( __decorate([
|
|
232
|
+
( __param(3, IExtensionService)),
|
|
233
|
+
( __param(4, IStorageService)),
|
|
234
|
+
( __param(5, IWorkingCopyService)),
|
|
235
|
+
( __param(6, IWorkingCopyFileService)),
|
|
236
|
+
( __param(7, ICustomEditorService)),
|
|
237
|
+
( __param(8, IEditorGroupsService)),
|
|
238
|
+
( __param(9, IEditorService)),
|
|
239
|
+
( __param(10, IInstantiationService)),
|
|
240
|
+
( __param(11, IWebviewWorkbenchService))
|
|
241
|
+
], MainThreadCustomEditors));
|
|
234
242
|
var HotExitState;
|
|
235
|
-
( (
|
|
236
|
-
|
|
243
|
+
(function (HotExitState) {
|
|
244
|
+
let Type;
|
|
245
|
+
(function (Type) {
|
|
237
246
|
Type[Type["Allowed"] = 0] = "Allowed";
|
|
238
247
|
Type[Type["NotAllowed"] = 1] = "NotAllowed";
|
|
239
248
|
Type[Type["Pending"] = 2] = "Pending";
|
|
240
|
-
})(HotExitState.Type || (HotExitState.Type = {}))
|
|
241
|
-
HotExitState.Allowed = (
|
|
242
|
-
HotExitState.NotAllowed = (
|
|
249
|
+
})(Type = HotExitState.Type || (HotExitState.Type = {}));
|
|
250
|
+
HotExitState.Allowed = ( Object.freeze({ type: Type.Allowed }));
|
|
251
|
+
HotExitState.NotAllowed = ( Object.freeze({ type: Type.NotAllowed }));
|
|
243
252
|
class Pending {
|
|
244
253
|
constructor(operation) {
|
|
245
254
|
this.operation = operation;
|
|
246
|
-
this.type =
|
|
255
|
+
this.type = Type.Pending;
|
|
247
256
|
}
|
|
248
257
|
}
|
|
249
258
|
HotExitState.Pending = Pending;
|
|
250
|
-
})(HotExitState || (HotExitState = {}))
|
|
259
|
+
})(HotExitState || (HotExitState = {}));
|
|
251
260
|
let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThreadCustomEditorModel extends ResourceWorkingCopy {
|
|
252
261
|
static async create(instantiationService, proxy, viewType, resource, options, getEditors, cancellation) {
|
|
253
262
|
const editors = getEditors();
|
|
@@ -277,18 +286,18 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
277
286
|
this._edits = [];
|
|
278
287
|
this._isDirtyFromContentChange = false;
|
|
279
288
|
this.typeId = NO_TYPE_ID;
|
|
280
|
-
this._onDidChangeDirty = this._register((
|
|
289
|
+
this._onDidChangeDirty = this._register(( new Emitter()));
|
|
281
290
|
this.onDidChangeDirty = this._onDidChangeDirty.event;
|
|
282
|
-
this._onDidChangeContent = this._register((
|
|
291
|
+
this._onDidChangeContent = this._register(( new Emitter()));
|
|
283
292
|
this.onDidChangeContent = this._onDidChangeContent.event;
|
|
284
|
-
this._onDidSave = this._register((
|
|
293
|
+
this._onDidSave = this._register(( new Emitter()));
|
|
285
294
|
this.onDidSave = this._onDidSave.event;
|
|
286
295
|
this.onDidChangeReadonly = Event.None;
|
|
287
296
|
this._fromBackup = fromBackup;
|
|
288
297
|
if (_editable) {
|
|
289
298
|
this._register(workingCopyService.registerWorkingCopy(this));
|
|
290
299
|
this._register(extensionService.onWillStop(e => {
|
|
291
|
-
e.veto(true, ( localize(
|
|
300
|
+
e.veto(true, ( localize(2256, "A custom editor for '{0}' is open.", this.name)));
|
|
292
301
|
}));
|
|
293
302
|
}
|
|
294
303
|
if (startDirty) {
|
|
@@ -307,21 +316,19 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
307
316
|
}
|
|
308
317
|
static toWorkingCopyResource(viewType, resource) {
|
|
309
318
|
const authority = viewType.replace(/[^a-z0-9\-_]/gi, '-');
|
|
310
|
-
const path = `/${multibyteAwareBtoa((
|
|
311
|
-
return (
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}))
|
|
318
|
-
);
|
|
319
|
+
const path = `/${multibyteAwareBtoa(( resource.with({ query: null, fragment: null }).toString(true)))}`;
|
|
320
|
+
return ( URI.from({
|
|
321
|
+
scheme: Schemas.vscodeCustomEditor,
|
|
322
|
+
authority: authority,
|
|
323
|
+
path: path,
|
|
324
|
+
query: JSON.stringify(resource.toJSON()),
|
|
325
|
+
}));
|
|
319
326
|
}
|
|
320
327
|
get name() {
|
|
321
328
|
return basename(this._labelService.getUriLabel(this._editorResource));
|
|
322
329
|
}
|
|
323
330
|
get capabilities() {
|
|
324
|
-
return this.isUntitled() ?
|
|
331
|
+
return this.isUntitled() ? WorkingCopyCapabilities.Untitled : WorkingCopyCapabilities.None;
|
|
325
332
|
}
|
|
326
333
|
isDirty() {
|
|
327
334
|
if (this._isDirtyFromContentChange) {
|
|
@@ -346,16 +353,16 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
346
353
|
}
|
|
347
354
|
pushEdit(editId, label) {
|
|
348
355
|
if (!this._editable) {
|
|
349
|
-
throw (
|
|
356
|
+
throw ( new Error('Document is not editable'));
|
|
350
357
|
}
|
|
351
358
|
this.change(() => {
|
|
352
359
|
this.spliceEdits(editId);
|
|
353
360
|
this._currentEditIndex = this._edits.length - 1;
|
|
354
361
|
});
|
|
355
362
|
this._undoService.pushElement({
|
|
356
|
-
type:
|
|
363
|
+
type: UndoRedoElementType.Resource,
|
|
357
364
|
resource: this._editorResource,
|
|
358
|
-
label: label ?? ( localize(
|
|
365
|
+
label: label ?? ( localize(2257, "Edit")),
|
|
359
366
|
code: 'undoredo.customEditorEdit',
|
|
360
367
|
undo: () => this.undo(),
|
|
361
368
|
redo: () => this.redo(),
|
|
@@ -468,7 +475,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
468
475
|
}
|
|
469
476
|
suggestUntitledSavePath(options) {
|
|
470
477
|
if (!this.isUntitled()) {
|
|
471
|
-
throw (
|
|
478
|
+
throw ( new Error('Resource is not untitled'));
|
|
472
479
|
}
|
|
473
480
|
const remoteAuthority = this._environmentService.remoteAuthority;
|
|
474
481
|
const localResource = toLocalResource(this._editorResource, remoteAuthority, this._pathService.defaultUriScheme);
|
|
@@ -487,11 +494,11 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
487
494
|
return true;
|
|
488
495
|
}
|
|
489
496
|
}
|
|
490
|
-
get canHotExit() { return typeof this._backupId === 'string' && this._hotExitState.type ===
|
|
497
|
+
get canHotExit() { return typeof this._backupId === 'string' && this._hotExitState.type === HotExitState.Type.Allowed; }
|
|
491
498
|
async backup(token) {
|
|
492
499
|
const editors = this._getEditors();
|
|
493
500
|
if (!editors.length) {
|
|
494
|
-
throw (
|
|
501
|
+
throw ( new Error('No editors found for resource, cannot back up'));
|
|
495
502
|
}
|
|
496
503
|
const primaryEditor = editors[0];
|
|
497
504
|
const backupMeta = {
|
|
@@ -514,7 +521,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
514
521
|
if (!this._editable) {
|
|
515
522
|
return backupData;
|
|
516
523
|
}
|
|
517
|
-
if (this._hotExitState.type ===
|
|
524
|
+
if (this._hotExitState.type === HotExitState.Type.Pending) {
|
|
518
525
|
this._hotExitState.operation.cancel();
|
|
519
526
|
}
|
|
520
527
|
const pendingState = new HotExitState.Pending(createCancelablePromise(token => this._proxy.$backup(this._editorResource.toJSON(), this.viewType, token)));
|
|
@@ -545,18 +552,18 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
545
552
|
if (this._hotExitState === HotExitState.Allowed) {
|
|
546
553
|
return backupData;
|
|
547
554
|
}
|
|
548
|
-
throw (
|
|
555
|
+
throw ( new Error(`Cannot backup in this state: ${errorMessage}`));
|
|
549
556
|
}
|
|
550
557
|
};
|
|
551
|
-
MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = (
|
|
552
|
-
(
|
|
553
|
-
(
|
|
554
|
-
(
|
|
555
|
-
(
|
|
556
|
-
(
|
|
557
|
-
(
|
|
558
|
-
(
|
|
559
|
-
(
|
|
560
|
-
], MainThreadCustomEditorModel))
|
|
558
|
+
MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = ( __decorate([
|
|
559
|
+
( __param(7, IFileDialogService)),
|
|
560
|
+
( __param(8, IFileService)),
|
|
561
|
+
( __param(9, ILabelService)),
|
|
562
|
+
( __param(10, IUndoRedoService)),
|
|
563
|
+
( __param(11, IWorkbenchEnvironmentService)),
|
|
564
|
+
( __param(12, IWorkingCopyService)),
|
|
565
|
+
( __param(13, IPathService)),
|
|
566
|
+
( __param(14, IExtensionService))
|
|
567
|
+
], MainThreadCustomEditorModel));
|
|
561
568
|
|
|
562
569
|
export { MainThreadCustomEditors };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IConfig, IDebugAdapter, IDebugSession, IDebugAdapterFactory, DebugConfigurationProviderTriggerKind } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
3
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
4
|
+
import { MainThreadDebugServiceShape, DebugSessionUUID, ISourceMultiBreakpointDto, IFunctionBreakpointDto, IDebugSessionDto, IDataBreakpointDto, IStartDebuggingOptions, IDebugConfiguration } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
5
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
import { IWorkspaceFolder } from "vscode/vscode/vs/platform/workspace/common/workspace";
|
|
7
|
+
import { IDebugVisualizerService } from "vscode/vscode/vs/workbench/contrib/debug/common/debugVisualizers.service";
|
|
8
|
+
export declare class MainThreadDebugService implements MainThreadDebugServiceShape, IDebugAdapterFactory {
|
|
9
|
+
private readonly debugService;
|
|
10
|
+
private readonly visualizerService;
|
|
11
|
+
private readonly _proxy;
|
|
12
|
+
private readonly _toDispose;
|
|
13
|
+
private readonly _debugAdapters;
|
|
14
|
+
private _debugAdaptersHandleCounter;
|
|
15
|
+
private readonly _debugConfigurationProviders;
|
|
16
|
+
private readonly _debugAdapterDescriptorFactories;
|
|
17
|
+
private readonly _extHostKnownSessions;
|
|
18
|
+
private readonly _visualizerHandles;
|
|
19
|
+
private readonly _visualizerTreeHandles;
|
|
20
|
+
constructor(extHostContext: IExtHostContext, debugService: IDebugService, visualizerService: IDebugVisualizerService);
|
|
21
|
+
$registerDebugVisualizerTree(treeId: string, canEdit: boolean): void;
|
|
22
|
+
$unregisterDebugVisualizerTree(treeId: string): void;
|
|
23
|
+
$registerDebugVisualizer(extensionId: string, id: string): void;
|
|
24
|
+
$unregisterDebugVisualizer(extensionId: string, id: string): void;
|
|
25
|
+
private sendBreakpointsAndListen;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
createDebugAdapter(session: IDebugSession): IDebugAdapter;
|
|
28
|
+
substituteVariables(folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig>;
|
|
29
|
+
runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
30
|
+
$registerDebugTypes(debugTypes: string[]): void;
|
|
31
|
+
$registerBreakpoints(DTOs: Array<ISourceMultiBreakpointDto | IFunctionBreakpointDto | IDataBreakpointDto>): Promise<void>;
|
|
32
|
+
$unregisterBreakpoints(breakpointIds: string[], functionBreakpointIds: string[], dataBreakpointIds: string[]): Promise<void>;
|
|
33
|
+
$registerDebugConfigurationProvider(debugType: string, providerTriggerKind: DebugConfigurationProviderTriggerKind, hasProvide: boolean, hasResolve: boolean, hasResolve2: boolean, handle: number): Promise<void>;
|
|
34
|
+
$unregisterDebugConfigurationProvider(handle: number): void;
|
|
35
|
+
$registerDebugAdapterDescriptorFactory(debugType: string, handle: number): Promise<void>;
|
|
36
|
+
$unregisterDebugAdapterDescriptorFactory(handle: number): void;
|
|
37
|
+
private getSession;
|
|
38
|
+
$startDebugging(folder: UriComponents | undefined, nameOrConfig: string | IDebugConfiguration, options: IStartDebuggingOptions): Promise<boolean>;
|
|
39
|
+
$setDebugSessionName(sessionId: DebugSessionUUID, name: string): void;
|
|
40
|
+
$customDebugAdapterRequest(sessionId: DebugSessionUUID, request: string, args: any): Promise<any>;
|
|
41
|
+
$getDebugProtocolBreakpoint(sessionId: DebugSessionUUID, breakpoinId: string): Promise<DebugProtocol.Breakpoint | undefined>;
|
|
42
|
+
$stopDebugging(sessionId: DebugSessionUUID | undefined): Promise<void>;
|
|
43
|
+
$appendDebugConsole(value: string): void;
|
|
44
|
+
$acceptDAMessage(handle: number, message: DebugProtocol.ProtocolMessage): void;
|
|
45
|
+
$acceptDAError(handle: number, name: string, message: string, stack: string): void;
|
|
46
|
+
$acceptDAExit(handle: number, code: number, signal: string): void;
|
|
47
|
+
private getDebugAdapter;
|
|
48
|
+
$sessionCached(sessionID: string): void;
|
|
49
|
+
getSessionDto(session: undefined): undefined;
|
|
50
|
+
getSessionDto(session: IDebugSession): IDebugSessionDto;
|
|
51
|
+
getSessionDto(session: IDebugSession | undefined): IDebugSessionDto | undefined;
|
|
52
|
+
private convertToDto;
|
|
53
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DisposableStore, DisposableMap, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { IDebugVisualization } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
5
|
+
import { IDebugVisualization, DataBreakpointSetType } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
5
6
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
6
7
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
8
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
8
|
-
import Severity
|
|
9
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
9
10
|
import { AbstractDebugAdapter } from 'vscode/vscode/vs/workbench/contrib/debug/common/abstractDebugAdapter';
|
|
10
11
|
import { isSessionAttach, convertToVSCPaths, convertToDAPaths } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
11
12
|
import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
|
|
@@ -190,7 +191,7 @@ let MainThreadDebugService = class MainThreadDebugService {
|
|
|
190
191
|
else if (dto.type === 'data') {
|
|
191
192
|
this.debugService.addDataBreakpoint({
|
|
192
193
|
description: dto.label,
|
|
193
|
-
src: { type:
|
|
194
|
+
src: { type: DataBreakpointSetType.Variable, dataId: dto.dataId },
|
|
194
195
|
canPersist: dto.canPersist,
|
|
195
196
|
accessTypes: dto.accessTypes,
|
|
196
197
|
accessType: dto.accessType,
|
|
@@ -325,7 +326,7 @@ let MainThreadDebugService = class MainThreadDebugService {
|
|
|
325
326
|
}
|
|
326
327
|
$appendDebugConsole(value) {
|
|
327
328
|
const session = this.debugService.getViewModel().focusedSession;
|
|
328
|
-
session?.appendToRepl({ output: value, sev: Severity
|
|
329
|
+
session?.appendToRepl({ output: value, sev: Severity.Warning });
|
|
329
330
|
}
|
|
330
331
|
$acceptDAMessage(handle, message) {
|
|
331
332
|
this.getDebugAdapter(handle).acceptMessage(convertToVSCPaths(message, false));
|
|
@@ -384,7 +385,7 @@ let MainThreadDebugService = class MainThreadDebugService {
|
|
|
384
385
|
return {
|
|
385
386
|
type: 'data',
|
|
386
387
|
id: dbp.getId(),
|
|
387
|
-
dataId: dbp.src.type ===
|
|
388
|
+
dataId: dbp.src.type === DataBreakpointSetType.Variable ? dbp.src.dataId : dbp.src.address,
|
|
388
389
|
enabled: dbp.enabled,
|
|
389
390
|
condition: dbp.condition,
|
|
390
391
|
hitCondition: dbp.hitCondition,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { MainThreadDecorationsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { IDecorationsService } from "vscode/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
5
|
+
export declare class MainThreadDecorations implements MainThreadDecorationsShape {
|
|
6
|
+
private readonly _decorationsService;
|
|
7
|
+
private readonly _provider;
|
|
8
|
+
private readonly _proxy;
|
|
9
|
+
constructor(context: IExtHostContext, _decorationsService: IDecorationsService);
|
|
10
|
+
dispose(): void;
|
|
11
|
+
$registerDecorationProvider(handle: number, label: string): void;
|
|
12
|
+
$onDidChange(handle: number, resources: UriComponents[]): void;
|
|
13
|
+
$unregisterDecorationProvider(handle: number): void;
|
|
14
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
4
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
5
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IMarkerData } from "vscode/vscode/vs/platform/markers/common/markers";
|
|
2
|
+
import { IMarkerService } from "vscode/vscode/vs/platform/markers/common/markers.service";
|
|
3
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
+
import { MainThreadDiagnosticsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
5
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
7
|
+
export declare class MainThreadDiagnostics implements MainThreadDiagnosticsShape {
|
|
8
|
+
private readonly _markerService;
|
|
9
|
+
private readonly _uriIdentService;
|
|
10
|
+
private readonly _activeOwners;
|
|
11
|
+
private readonly _proxy;
|
|
12
|
+
private readonly _markerListener;
|
|
13
|
+
constructor(extHostContext: IExtHostContext, _markerService: IMarkerService, _uriIdentService: IUriIdentityService);
|
|
14
|
+
dispose(): void;
|
|
15
|
+
private _forwardMarkers;
|
|
16
|
+
$changeMany(owner: string, entries: [
|
|
17
|
+
UriComponents,
|
|
18
|
+
IMarkerData[]
|
|
19
|
+
][]): void;
|
|
20
|
+
$clear(owner: string): void;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
|
|
3
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
5
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { MainThreadDiaglogsShape, MainThreadDialogOpenOptions, MainThreadDialogSaveOptions } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
5
|
+
export declare class MainThreadDialogs implements MainThreadDiaglogsShape {
|
|
6
|
+
private readonly _fileDialogService;
|
|
7
|
+
constructor(context: IExtHostContext, _fileDialogService: IFileDialogService);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
$showOpenDialog(options?: MainThreadDialogOpenOptions): Promise<URI[] | undefined>;
|
|
10
|
+
$showSaveDialog(options?: MainThreadDialogSaveOptions): Promise<URI | undefined>;
|
|
11
|
+
private static _convertOpenOptions;
|
|
12
|
+
private static _convertSaveOptions;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
4
|
import { MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IEditorWorkerService } from "vscode/vscode/vs/editor/common/services/editorWorker";
|
|
3
|
+
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
4
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
5
|
+
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
6
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
import { MainThreadDocumentContentProvidersShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
|
+
export declare class MainThreadDocumentContentProviders implements MainThreadDocumentContentProvidersShape {
|
|
9
|
+
private readonly _textModelResolverService;
|
|
10
|
+
private readonly _languageService;
|
|
11
|
+
private readonly _modelService;
|
|
12
|
+
private readonly _editorWorkerService;
|
|
13
|
+
private readonly _resourceContentProvider;
|
|
14
|
+
private readonly _pendingUpdate;
|
|
15
|
+
private readonly _proxy;
|
|
16
|
+
constructor(extHostContext: IExtHostContext, _textModelResolverService: ITextModelService, _languageService: ILanguageService, _modelService: IModelService, _editorWorkerService: IEditorWorkerService);
|
|
17
|
+
dispose(): void;
|
|
18
|
+
$registerTextContentProvider(handle: number, scheme: string): void;
|
|
19
|
+
$unregisterTextContentProvider(handle: number): void;
|
|
20
|
+
$onVirtualDocumentChange(uri: UriComponents, value: string): Promise<void>;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
4
|
import { DisposableMap, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IReference, Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { URI, UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
+
import { ITextModel } from "vscode/vscode/vs/editor/common/model";
|
|
4
|
+
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
5
|
+
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
6
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
7
|
+
import { MainThreadDocumentsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
|
+
import { ITextFileService } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
9
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
10
|
+
import { IExtUri } from "vscode/vscode/vs/base/common/resources";
|
|
11
|
+
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
12
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
13
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
14
|
+
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
15
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
16
|
+
export declare class BoundModelReferenceCollection {
|
|
17
|
+
private readonly _extUri;
|
|
18
|
+
private readonly _maxAge;
|
|
19
|
+
private readonly _maxLength;
|
|
20
|
+
private readonly _maxSize;
|
|
21
|
+
private _data;
|
|
22
|
+
private _length;
|
|
23
|
+
constructor(_extUri: IExtUri, _maxAge?: number, _maxLength?: number, _maxSize?: number);
|
|
24
|
+
dispose(): void;
|
|
25
|
+
remove(uri: URI): void;
|
|
26
|
+
add(uri: URI, ref: IReference<any>, length?: number): void;
|
|
27
|
+
private _cleanup;
|
|
28
|
+
}
|
|
29
|
+
export declare class MainThreadDocuments extends Disposable implements MainThreadDocumentsShape {
|
|
30
|
+
private readonly _modelService;
|
|
31
|
+
private readonly _textFileService;
|
|
32
|
+
private readonly _fileService;
|
|
33
|
+
private readonly _textModelResolverService;
|
|
34
|
+
private readonly _environmentService;
|
|
35
|
+
private readonly _uriIdentityService;
|
|
36
|
+
private readonly _pathService;
|
|
37
|
+
private _onIsCaughtUpWithContentChanges;
|
|
38
|
+
readonly onIsCaughtUpWithContentChanges: Event<URI>;
|
|
39
|
+
private readonly _proxy;
|
|
40
|
+
private readonly _modelTrackers;
|
|
41
|
+
private readonly _modelReferenceCollection;
|
|
42
|
+
constructor(extHostContext: IExtHostContext, _modelService: IModelService, _textFileService: ITextFileService, _fileService: IFileService, _textModelResolverService: ITextModelService, _environmentService: IWorkbenchEnvironmentService, _uriIdentityService: IUriIdentityService, workingCopyFileService: IWorkingCopyFileService, _pathService: IPathService);
|
|
43
|
+
dispose(): void;
|
|
44
|
+
isCaughtUpWithContentChanges(resource: URI): boolean;
|
|
45
|
+
private _shouldHandleFileEvent;
|
|
46
|
+
handleModelAdded(model: ITextModel): void;
|
|
47
|
+
private _onModelModeChanged;
|
|
48
|
+
handleModelRemoved(modelUrl: URI): void;
|
|
49
|
+
$trySaveDocument(uri: UriComponents): Promise<boolean>;
|
|
50
|
+
$tryOpenDocument(uriData: UriComponents): Promise<URI>;
|
|
51
|
+
$tryCreateDocument(options?: {
|
|
52
|
+
language?: string;
|
|
53
|
+
content?: string;
|
|
54
|
+
}): Promise<URI>;
|
|
55
|
+
private _handleAsResourceInput;
|
|
56
|
+
private _handleUntitledScheme;
|
|
57
|
+
private _doCreateUntitled;
|
|
58
|
+
}
|