@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
3
|
+
import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
|
|
4
|
+
import { IWebviewContentOptions, MainThreadEditorInsetsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
5
|
+
import { IWebviewService } from "vscode/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
6
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
export declare class MainThreadEditorInsets implements MainThreadEditorInsetsShape {
|
|
8
|
+
private readonly _editorService;
|
|
9
|
+
private readonly _webviewService;
|
|
10
|
+
private readonly _proxy;
|
|
11
|
+
private readonly _disposables;
|
|
12
|
+
private readonly _insets;
|
|
13
|
+
constructor(context: IExtHostContext, _editorService: ICodeEditorService, _webviewService: IWebviewService);
|
|
14
|
+
dispose(): void;
|
|
15
|
+
$createEditorInset(handle: number, id: string, uri: UriComponents, line: number, height: number, options: IWebviewContentOptions, extensionId: ExtensionIdentifier, extensionLocation: UriComponents): Promise<void>;
|
|
16
|
+
$disposeEditorInset(handle: number): void;
|
|
17
|
+
$setHtml(handle: number, value: string): void;
|
|
18
|
+
$setOptions(handle: number, options: IWebviewContentOptions): void;
|
|
19
|
+
$postMessage(handle: number, value: any): Promise<boolean>;
|
|
20
|
+
private getInset;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
4
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
4
|
+
import { SerializableObjectWithBuffers } from "vscode/vscode/vs/workbench/services/extensions/common/proxyIdentifier";
|
|
5
|
+
import { MainThreadCommandsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
+
export declare class MainThreadCommands implements MainThreadCommandsShape {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _extensionService;
|
|
9
|
+
private readonly _commandRegistrations;
|
|
10
|
+
private readonly _generateCommandsDocumentationRegistration;
|
|
11
|
+
private readonly _proxy;
|
|
12
|
+
constructor(extHostContext: IExtHostContext, _commandService: ICommandService, _extensionService: IExtensionService);
|
|
13
|
+
dispose(): void;
|
|
14
|
+
private _generateCommandsDocumentation;
|
|
15
|
+
$registerCommand(id: string): void;
|
|
16
|
+
$unregisterCommand(id: string): void;
|
|
17
|
+
$fireCommandActivationEvent(id: string): void;
|
|
18
|
+
$executeCommand<T>(id: string, args: any[] | SerializableObjectWithBuffers<any[]>, retry: boolean): Promise<T | undefined>;
|
|
19
|
+
$getCommands(): Promise<string[]>;
|
|
20
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
4
5
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
3
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { URI, UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
5
|
+
import { IRange } from "vscode/vscode/vs/editor/common/core/range";
|
|
6
|
+
import * as languages from "vscode/vscode/vs/editor/common/languages";
|
|
7
|
+
import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
|
|
8
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
9
|
+
import { ICommentController } from "@codingame/monaco-vscode-comments-service-override/vscode/vs/workbench/contrib/comments/browser/commentService";
|
|
10
|
+
import { ICommentService } from "vscode/vscode/vs/workbench/contrib/comments/browser/commentService.service";
|
|
11
|
+
import { CommentProviderFeatures, ExtHostCommentsShape, MainThreadCommentsShape, CommentThreadChanges } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
12
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
13
|
+
import { ICellRange } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
14
|
+
import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
15
|
+
import { MarshalledCommentThread } from "../../common/comments.js";
|
|
16
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
17
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
18
|
+
export declare class MainThreadCommentThread<T> implements languages.CommentThread<T> {
|
|
19
|
+
commentThreadHandle: number;
|
|
20
|
+
controllerHandle: number;
|
|
21
|
+
extensionId: string;
|
|
22
|
+
threadId: string;
|
|
23
|
+
resource: string;
|
|
24
|
+
private _range;
|
|
25
|
+
private _canReply;
|
|
26
|
+
private _isTemplate;
|
|
27
|
+
editorId?: string | undefined;
|
|
28
|
+
private _input?;
|
|
29
|
+
get input(): languages.CommentInput | undefined;
|
|
30
|
+
set input(value: languages.CommentInput | undefined);
|
|
31
|
+
private readonly _onDidChangeInput;
|
|
32
|
+
get onDidChangeInput(): Event<languages.CommentInput | undefined>;
|
|
33
|
+
private _label;
|
|
34
|
+
get label(): string | undefined;
|
|
35
|
+
set label(label: string | undefined);
|
|
36
|
+
private _contextValue;
|
|
37
|
+
get contextValue(): string | undefined;
|
|
38
|
+
set contextValue(context: string | undefined);
|
|
39
|
+
private readonly _onDidChangeLabel;
|
|
40
|
+
readonly onDidChangeLabel: Event<string | undefined>;
|
|
41
|
+
private _comments;
|
|
42
|
+
get comments(): ReadonlyArray<languages.Comment> | undefined;
|
|
43
|
+
set comments(newComments: ReadonlyArray<languages.Comment> | undefined);
|
|
44
|
+
private readonly _onDidChangeComments;
|
|
45
|
+
get onDidChangeComments(): Event<readonly languages.Comment[] | undefined>;
|
|
46
|
+
set range(range: T | undefined);
|
|
47
|
+
get range(): T | undefined;
|
|
48
|
+
private readonly _onDidChangeCanReply;
|
|
49
|
+
get onDidChangeCanReply(): Event<boolean>;
|
|
50
|
+
set canReply(state: boolean);
|
|
51
|
+
get canReply(): boolean;
|
|
52
|
+
private _collapsibleState;
|
|
53
|
+
get collapsibleState(): languages.CommentThreadCollapsibleState | undefined;
|
|
54
|
+
set collapsibleState(newState: languages.CommentThreadCollapsibleState | undefined);
|
|
55
|
+
private _initialCollapsibleState;
|
|
56
|
+
get initialCollapsibleState(): languages.CommentThreadCollapsibleState | undefined;
|
|
57
|
+
private set initialCollapsibleState(value);
|
|
58
|
+
private readonly _onDidChangeCollapsibleState;
|
|
59
|
+
onDidChangeCollapsibleState: Event<languages.CommentThreadCollapsibleState | undefined>;
|
|
60
|
+
private readonly _onDidChangeInitialCollapsibleState;
|
|
61
|
+
onDidChangeInitialCollapsibleState: Event<languages.CommentThreadCollapsibleState | undefined>;
|
|
62
|
+
private _isDisposed;
|
|
63
|
+
get isDisposed(): boolean;
|
|
64
|
+
isDocumentCommentThread(): this is languages.CommentThread<IRange>;
|
|
65
|
+
private _state;
|
|
66
|
+
get state(): languages.CommentThreadState | undefined;
|
|
67
|
+
set state(newState: languages.CommentThreadState | undefined);
|
|
68
|
+
private _applicability;
|
|
69
|
+
get applicability(): languages.CommentThreadApplicability | undefined;
|
|
70
|
+
set applicability(value: languages.CommentThreadApplicability | undefined);
|
|
71
|
+
private readonly _onDidChangeApplicability;
|
|
72
|
+
readonly onDidChangeApplicability: Event<languages.CommentThreadApplicability | undefined>;
|
|
73
|
+
get isTemplate(): boolean;
|
|
74
|
+
private readonly _onDidChangeState;
|
|
75
|
+
onDidChangeState: Event<languages.CommentThreadState | undefined>;
|
|
76
|
+
constructor(commentThreadHandle: number, controllerHandle: number, extensionId: string, threadId: string, resource: string, _range: T | undefined, comments: languages.Comment[] | undefined, _canReply: boolean, _isTemplate: boolean, editorId?: string | undefined);
|
|
77
|
+
batchUpdate(changes: CommentThreadChanges<T>): void;
|
|
78
|
+
hasComments(): boolean;
|
|
79
|
+
dispose(): void;
|
|
80
|
+
toJSON(): MarshalledCommentThread;
|
|
81
|
+
}
|
|
82
|
+
export declare class MainThreadCommentController implements ICommentController {
|
|
83
|
+
private readonly _proxy;
|
|
84
|
+
private readonly _commentService;
|
|
85
|
+
private readonly _handle;
|
|
86
|
+
private readonly _uniqueId;
|
|
87
|
+
private readonly _id;
|
|
88
|
+
private readonly _label;
|
|
89
|
+
private _features;
|
|
90
|
+
get handle(): number;
|
|
91
|
+
get id(): string;
|
|
92
|
+
get contextValue(): string;
|
|
93
|
+
get proxy(): ExtHostCommentsShape;
|
|
94
|
+
get label(): string;
|
|
95
|
+
private _reactions;
|
|
96
|
+
get reactions(): languages.CommentReaction[] | undefined;
|
|
97
|
+
set reactions(reactions: languages.CommentReaction[] | undefined);
|
|
98
|
+
get options(): languages.CommentOptions | undefined;
|
|
99
|
+
private readonly _threads;
|
|
100
|
+
activeEditingCommentThread?: MainThreadCommentThread<IRange | ICellRange>;
|
|
101
|
+
get features(): CommentProviderFeatures;
|
|
102
|
+
get owner(): string;
|
|
103
|
+
constructor(_proxy: ExtHostCommentsShape, _commentService: ICommentService, _handle: number, _uniqueId: string, _id: string, _label: string, _features: CommentProviderFeatures);
|
|
104
|
+
get activeComment(): {
|
|
105
|
+
thread: languages.CommentThread<IRange>;
|
|
106
|
+
comment?: languages.Comment | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
private _activeComment;
|
|
109
|
+
setActiveCommentAndThread(commentInfo: {
|
|
110
|
+
thread: languages.CommentThread;
|
|
111
|
+
comment?: languages.Comment;
|
|
112
|
+
} | undefined): Promise<void>;
|
|
113
|
+
updateFeatures(features: CommentProviderFeatures): void;
|
|
114
|
+
createCommentThread(extensionId: string, commentThreadHandle: number, threadId: string, resource: UriComponents, range: IRange | ICellRange | undefined, comments: languages.Comment[], isTemplate: boolean, editorId?: string): languages.CommentThread<IRange | ICellRange>;
|
|
115
|
+
updateCommentThread(commentThreadHandle: number, threadId: string, resource: UriComponents, changes: CommentThreadChanges): void;
|
|
116
|
+
deleteCommentThread(commentThreadHandle: number): void;
|
|
117
|
+
deleteCommentThreadMain(commentThreadId: string): void;
|
|
118
|
+
updateInput(input: string): void;
|
|
119
|
+
updateCommentingRanges(resourceHints?: languages.CommentingRangeResourceHint): void;
|
|
120
|
+
private getKnownThread;
|
|
121
|
+
getDocumentComments(resource: URI, token: CancellationToken): Promise<{
|
|
122
|
+
uniqueOwner: string;
|
|
123
|
+
label: string;
|
|
124
|
+
threads: languages.CommentThread<IRange>[];
|
|
125
|
+
commentingRanges: {
|
|
126
|
+
resource: URI;
|
|
127
|
+
ranges: IRange[];
|
|
128
|
+
fileComments: boolean;
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
getNotebookComments(resource: URI, token: CancellationToken): Promise<{
|
|
132
|
+
uniqueOwner: string;
|
|
133
|
+
label: string;
|
|
134
|
+
threads: languages.CommentThread<ICellRange>[];
|
|
135
|
+
}>;
|
|
136
|
+
toggleReaction(uri: URI, thread: languages.CommentThread, comment: languages.Comment, reaction: languages.CommentReaction, token: CancellationToken): Promise<void>;
|
|
137
|
+
getAllComments(): MainThreadCommentThread<IRange | ICellRange>[];
|
|
138
|
+
createCommentThreadTemplate(resource: UriComponents, range: IRange | undefined, editorId?: string): Promise<void>;
|
|
139
|
+
updateCommentThreadTemplate(threadHandle: number, range: IRange): Promise<void>;
|
|
140
|
+
toJSON(): any;
|
|
141
|
+
}
|
|
142
|
+
export declare class MainThreadComments extends Disposable implements MainThreadCommentsShape {
|
|
143
|
+
private readonly _commentService;
|
|
144
|
+
private readonly _viewsService;
|
|
145
|
+
private readonly _viewDescriptorService;
|
|
146
|
+
private readonly _uriIdentityService;
|
|
147
|
+
private readonly _editorService;
|
|
148
|
+
private readonly _proxy;
|
|
149
|
+
private _handlers;
|
|
150
|
+
private _commentControllers;
|
|
151
|
+
private _activeEditingCommentThread?;
|
|
152
|
+
private readonly _activeEditingCommentThreadDisposables;
|
|
153
|
+
private _openViewListener;
|
|
154
|
+
constructor(extHostContext: IExtHostContext, _commentService: ICommentService, _viewsService: IViewsService, _viewDescriptorService: IViewDescriptorService, _uriIdentityService: IUriIdentityService, _editorService: IEditorService);
|
|
155
|
+
$registerCommentController(handle: number, id: string, label: string, extensionId: string): void;
|
|
156
|
+
$unregisterCommentController(handle: number): void;
|
|
157
|
+
$updateCommentControllerFeatures(handle: number, features: CommentProviderFeatures): void;
|
|
158
|
+
$createCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: IRange | ICellRange | undefined, comments: languages.Comment[], extensionId: ExtensionIdentifier, isTemplate: boolean, editorId?: string): languages.CommentThread<IRange | ICellRange> | undefined;
|
|
159
|
+
$updateCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, changes: CommentThreadChanges): void;
|
|
160
|
+
$deleteCommentThread(handle: number, commentThreadHandle: number): void;
|
|
161
|
+
$updateCommentingRanges(handle: number, resourceHints?: languages.CommentingRangeResourceHint): void;
|
|
162
|
+
$revealCommentThread(handle: number, commentThreadHandle: number, commentUniqueIdInThread: number, options: languages.CommentThreadRevealOptions): Promise<void>;
|
|
163
|
+
$hideCommentThread(handle: number, commentThreadHandle: number): Promise<void>;
|
|
164
|
+
private registerView;
|
|
165
|
+
private setComments;
|
|
166
|
+
private registerViewOpenedListener;
|
|
167
|
+
private registerViewListeners;
|
|
168
|
+
private getHandler;
|
|
169
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { DisposableStore, DisposableMap, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -7,19 +8,20 @@ import { CommentThreadCollapsibleState } from 'vscode/vscode/vs/editor/common/la
|
|
|
7
8
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
8
9
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
9
10
|
import { ICommentService } from 'vscode/vscode/vs/workbench/contrib/comments/browser/commentService.service';
|
|
10
|
-
import { CommentsPanel } from '@codingame/monaco-vscode-
|
|
11
|
+
import { CommentsPanel } from '@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common/vscode/vs/workbench/contrib/comments/browser/commentsView';
|
|
11
12
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
12
|
-
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_TITLE, COMMENTS_VIEW_STORAGE_ID } from '@codingame/monaco-vscode-
|
|
13
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
13
|
+
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_TITLE, COMMENTS_VIEW_STORAGE_ID } from '@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common/vscode/vs/workbench/contrib/comments/browser/commentsTreeViewer';
|
|
14
|
+
import { Extensions, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
14
15
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
15
16
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
16
|
-
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
17
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
17
18
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
18
19
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
19
20
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
21
|
+
import { MarshalledId } from 'vscode/vscode/vs/base/common/marshallingIds';
|
|
20
22
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
21
23
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
22
|
-
import { revealCommentThread } from '@codingame/monaco-vscode-
|
|
24
|
+
import { revealCommentThread } from '@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common/vscode/vs/workbench/contrib/comments/browser/commentsController';
|
|
23
25
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
26
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
25
27
|
|
|
@@ -119,18 +121,19 @@ class MainThreadCommentThread {
|
|
|
119
121
|
this._canReply = _canReply;
|
|
120
122
|
this._isTemplate = _isTemplate;
|
|
121
123
|
this.editorId = editorId;
|
|
122
|
-
this._onDidChangeInput = (
|
|
123
|
-
this._onDidChangeLabel = (
|
|
124
|
+
this._onDidChangeInput = ( new Emitter());
|
|
125
|
+
this._onDidChangeLabel = ( new Emitter());
|
|
124
126
|
this.onDidChangeLabel = this._onDidChangeLabel.event;
|
|
125
|
-
this._onDidChangeComments = (
|
|
126
|
-
this._onDidChangeCanReply = (
|
|
127
|
-
this.
|
|
127
|
+
this._onDidChangeComments = ( new Emitter());
|
|
128
|
+
this._onDidChangeCanReply = ( new Emitter());
|
|
129
|
+
this._collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
130
|
+
this._onDidChangeCollapsibleState = ( new Emitter());
|
|
128
131
|
this.onDidChangeCollapsibleState = this._onDidChangeCollapsibleState.event;
|
|
129
|
-
this._onDidChangeInitialCollapsibleState = (
|
|
132
|
+
this._onDidChangeInitialCollapsibleState = ( new Emitter());
|
|
130
133
|
this.onDidChangeInitialCollapsibleState = this._onDidChangeInitialCollapsibleState.event;
|
|
131
|
-
this._onDidChangeApplicability = (
|
|
134
|
+
this._onDidChangeApplicability = ( new Emitter());
|
|
132
135
|
this.onDidChangeApplicability = this._onDidChangeApplicability.event;
|
|
133
|
-
this._onDidChangeState = (
|
|
136
|
+
this._onDidChangeState = ( new Emitter());
|
|
134
137
|
this.onDidChangeState = this._onDidChangeState.event;
|
|
135
138
|
this._isDisposed = false;
|
|
136
139
|
if (_isTemplate) {
|
|
@@ -183,7 +186,7 @@ class MainThreadCommentThread {
|
|
|
183
186
|
}
|
|
184
187
|
toJSON() {
|
|
185
188
|
return {
|
|
186
|
-
$mid:
|
|
189
|
+
$mid: MarshalledId.CommentThread,
|
|
187
190
|
commentControlHandle: this.controllerHandle,
|
|
188
191
|
commentThreadHandle: this.commentThreadHandle,
|
|
189
192
|
};
|
|
@@ -192,7 +195,7 @@ class MainThreadCommentThread {
|
|
|
192
195
|
class CommentThreadWithDisposable {
|
|
193
196
|
constructor(thread) {
|
|
194
197
|
this.thread = thread;
|
|
195
|
-
this.disposableStore = (
|
|
198
|
+
this.disposableStore = ( new DisposableStore());
|
|
196
199
|
}
|
|
197
200
|
dispose() {
|
|
198
201
|
this.disposableStore.dispose();
|
|
@@ -237,7 +240,7 @@ class MainThreadCommentController {
|
|
|
237
240
|
this._id = _id;
|
|
238
241
|
this._label = _label;
|
|
239
242
|
this._features = _features;
|
|
240
|
-
this._threads = (
|
|
243
|
+
this._threads = ( new DisposableMap());
|
|
241
244
|
}
|
|
242
245
|
get activeComment() {
|
|
243
246
|
return this._activeComment;
|
|
@@ -250,19 +253,8 @@ class MainThreadCommentController {
|
|
|
250
253
|
this._features = features;
|
|
251
254
|
}
|
|
252
255
|
createCommentThread(extensionId, commentThreadHandle, threadId, resource, range, comments, isTemplate, editorId) {
|
|
253
|
-
const thread = (
|
|
254
|
-
|
|
255
|
-
this.handle,
|
|
256
|
-
extensionId,
|
|
257
|
-
threadId,
|
|
258
|
-
(URI.revive(resource).toString()),
|
|
259
|
-
range,
|
|
260
|
-
comments,
|
|
261
|
-
true,
|
|
262
|
-
isTemplate,
|
|
263
|
-
editorId
|
|
264
|
-
)));
|
|
265
|
-
const threadWithDisposable = ( (new CommentThreadWithDisposable(thread)));
|
|
256
|
+
const thread = ( new MainThreadCommentThread(commentThreadHandle, this.handle, extensionId, threadId, ( URI.revive(resource).toString()), range, comments, true, isTemplate, editorId));
|
|
257
|
+
const threadWithDisposable = ( new CommentThreadWithDisposable(thread));
|
|
266
258
|
this._threads.set(commentThreadHandle, threadWithDisposable);
|
|
267
259
|
threadWithDisposable.disposableStore.add(thread.onDidChangeCollapsibleState(() => {
|
|
268
260
|
this.proxy.$updateCommentThread(this.handle, thread.commentThreadHandle, { collapseState: thread.collapsibleState });
|
|
@@ -327,7 +319,7 @@ class MainThreadCommentController {
|
|
|
327
319
|
}
|
|
328
320
|
}
|
|
329
321
|
deleteCommentThreadMain(commentThreadId) {
|
|
330
|
-
for (const { thread } of (
|
|
322
|
+
for (const { thread } of ( this._threads.values())) {
|
|
331
323
|
if (thread.threadId === commentThreadId) {
|
|
332
324
|
this._proxy.$deleteCommentThread(this._handle, thread.commentThreadHandle);
|
|
333
325
|
}
|
|
@@ -347,7 +339,7 @@ class MainThreadCommentController {
|
|
|
347
339
|
getKnownThread(commentThreadHandle) {
|
|
348
340
|
const thread = this._threads.get(commentThreadHandle);
|
|
349
341
|
if (!thread) {
|
|
350
|
-
throw (
|
|
342
|
+
throw ( new Error('unknown thread'));
|
|
351
343
|
}
|
|
352
344
|
return thread.thread;
|
|
353
345
|
}
|
|
@@ -365,9 +357,9 @@ class MainThreadCommentController {
|
|
|
365
357
|
};
|
|
366
358
|
}
|
|
367
359
|
const ret = [];
|
|
368
|
-
for (const thread of [...(
|
|
360
|
+
for (const thread of [...( this._threads.keys())]) {
|
|
369
361
|
const commentThread = this._threads.get(thread);
|
|
370
|
-
if (commentThread.thread.resource === (
|
|
362
|
+
if (commentThread.thread.resource === ( resource.toString())) {
|
|
371
363
|
if (commentThread.thread.isDocumentCommentThread()) {
|
|
372
364
|
ret.push(commentThread.thread);
|
|
373
365
|
}
|
|
@@ -394,9 +386,9 @@ class MainThreadCommentController {
|
|
|
394
386
|
};
|
|
395
387
|
}
|
|
396
388
|
const ret = [];
|
|
397
|
-
for (const thread of [...(
|
|
389
|
+
for (const thread of [...( this._threads.keys())]) {
|
|
398
390
|
const commentThread = this._threads.get(thread);
|
|
399
|
-
if (commentThread.thread.resource === (
|
|
391
|
+
if (commentThread.thread.resource === ( resource.toString())) {
|
|
400
392
|
if (!commentThread.thread.isDocumentCommentThread()) {
|
|
401
393
|
ret.push(commentThread.thread);
|
|
402
394
|
}
|
|
@@ -413,7 +405,7 @@ class MainThreadCommentController {
|
|
|
413
405
|
}
|
|
414
406
|
getAllComments() {
|
|
415
407
|
const ret = [];
|
|
416
|
-
for (const thread of [...(
|
|
408
|
+
for (const thread of [...( this._threads.keys())]) {
|
|
417
409
|
ret.push(this._threads.get(thread).thread);
|
|
418
410
|
}
|
|
419
411
|
return ret;
|
|
@@ -426,12 +418,12 @@ class MainThreadCommentController {
|
|
|
426
418
|
}
|
|
427
419
|
toJSON() {
|
|
428
420
|
return {
|
|
429
|
-
$mid:
|
|
421
|
+
$mid: MarshalledId.CommentController,
|
|
430
422
|
handle: this.handle
|
|
431
423
|
};
|
|
432
424
|
}
|
|
433
425
|
}
|
|
434
|
-
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(
|
|
426
|
+
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(2255, 'View icon of the comments view.')));
|
|
435
427
|
let MainThreadComments = class MainThreadComments extends Disposable {
|
|
436
428
|
constructor(extHostContext, _commentService, _viewsService, _viewDescriptorService, _uriIdentityService, _editorService) {
|
|
437
429
|
super();
|
|
@@ -440,11 +432,11 @@ let MainThreadComments = class MainThreadComments extends Disposable {
|
|
|
440
432
|
this._viewDescriptorService = _viewDescriptorService;
|
|
441
433
|
this._uriIdentityService = _uriIdentityService;
|
|
442
434
|
this._editorService = _editorService;
|
|
443
|
-
this._handlers = (
|
|
444
|
-
this._commentControllers = (
|
|
445
|
-
this._activeEditingCommentThreadDisposables = this._register((
|
|
435
|
+
this._handlers = ( new Map());
|
|
436
|
+
this._commentControllers = ( new Map());
|
|
437
|
+
this._activeEditingCommentThreadDisposables = this._register(( new DisposableStore()));
|
|
446
438
|
this._openViewListener = null;
|
|
447
|
-
this._proxy = (
|
|
439
|
+
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostComments));
|
|
448
440
|
this._commentService.unregisterCommentController();
|
|
449
441
|
this._register(this._commentService.onDidChangeActiveEditingCommentThread(async (thread) => {
|
|
450
442
|
const handle = thread.controllerHandle;
|
|
@@ -460,7 +452,7 @@ let MainThreadComments = class MainThreadComments extends Disposable {
|
|
|
460
452
|
$registerCommentController(handle, id, label, extensionId) {
|
|
461
453
|
const providerId = `${id}-${extensionId}`;
|
|
462
454
|
this._handlers.set(handle, providerId);
|
|
463
|
-
const provider = (
|
|
455
|
+
const provider = ( new MainThreadCommentController(this._proxy, this._commentService, handle, providerId, id, label, {}));
|
|
464
456
|
this._commentService.registerCommentController(providerId, provider);
|
|
465
457
|
this._commentControllers.set(handle, provider);
|
|
466
458
|
const commentsPanelAlreadyConstructed = !!this._viewDescriptorService.getViewDescriptorById(COMMENTS_VIEW_ID);
|
|
@@ -541,23 +533,23 @@ let MainThreadComments = class MainThreadComments extends Disposable {
|
|
|
541
533
|
}
|
|
542
534
|
registerView(commentsViewAlreadyRegistered) {
|
|
543
535
|
if (!commentsViewAlreadyRegistered) {
|
|
544
|
-
const VIEW_CONTAINER = (
|
|
536
|
+
const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
545
537
|
id: COMMENTS_VIEW_ID,
|
|
546
538
|
title: COMMENTS_VIEW_TITLE,
|
|
547
|
-
ctorDescriptor: (
|
|
539
|
+
ctorDescriptor: ( new SyncDescriptor(
|
|
548
540
|
ViewPaneContainer,
|
|
549
541
|
[COMMENTS_VIEW_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
550
|
-
))
|
|
542
|
+
)),
|
|
551
543
|
storageId: COMMENTS_VIEW_STORAGE_ID,
|
|
552
544
|
hideIfEmpty: true,
|
|
553
545
|
icon: commentsViewIcon,
|
|
554
546
|
order: 10,
|
|
555
|
-
},
|
|
556
|
-
(
|
|
547
|
+
}, ViewContainerLocation.Panel);
|
|
548
|
+
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
557
549
|
id: COMMENTS_VIEW_ID,
|
|
558
550
|
name: COMMENTS_VIEW_TITLE,
|
|
559
551
|
canToggleVisibility: false,
|
|
560
|
-
ctorDescriptor: (
|
|
552
|
+
ctorDescriptor: ( new SyncDescriptor(CommentsPanel)),
|
|
561
553
|
canMoveView: true,
|
|
562
554
|
containerIcon: commentsViewIcon,
|
|
563
555
|
focusCommand: {
|
|
@@ -567,7 +559,7 @@ let MainThreadComments = class MainThreadComments extends Disposable {
|
|
|
567
559
|
}
|
|
568
560
|
}
|
|
569
561
|
setComments() {
|
|
570
|
-
[...(
|
|
562
|
+
[...( this._commentControllers.keys())].forEach(handle => {
|
|
571
563
|
const threads = this._commentControllers.get(handle).getAllComments();
|
|
572
564
|
if (threads.length) {
|
|
573
565
|
const providerId = this.getHandler(handle);
|
|
@@ -607,19 +599,19 @@ let MainThreadComments = class MainThreadComments extends Disposable {
|
|
|
607
599
|
}));
|
|
608
600
|
}
|
|
609
601
|
getHandler(handle) {
|
|
610
|
-
if (!(
|
|
611
|
-
throw (
|
|
602
|
+
if (!( this._handlers.has(handle))) {
|
|
603
|
+
throw ( new Error('Unknown handler'));
|
|
612
604
|
}
|
|
613
605
|
return this._handlers.get(handle);
|
|
614
606
|
}
|
|
615
607
|
};
|
|
616
608
|
MainThreadComments = __decorate([
|
|
617
609
|
extHostNamedCustomer(MainContext.MainThreadComments),
|
|
618
|
-
(
|
|
619
|
-
(
|
|
620
|
-
(
|
|
621
|
-
(
|
|
622
|
-
(
|
|
610
|
+
( __param(1, ICommentService)),
|
|
611
|
+
( __param(2, IViewsService)),
|
|
612
|
+
( __param(3, IViewDescriptorService)),
|
|
613
|
+
( __param(4, IUriIdentityService)),
|
|
614
|
+
( __param(5, IEditorService))
|
|
623
615
|
], MainThreadComments);
|
|
624
616
|
|
|
625
617
|
export { MainThreadCommentController, MainThreadCommentThread, MainThreadComments };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
2
|
+
import { MainThreadConfigurationShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { ConfigurationTarget, IConfigurationOverrides } from "vscode/vscode/vs/platform/configuration/common/configuration";
|
|
5
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
7
|
+
export declare class MainThreadConfiguration implements MainThreadConfigurationShape {
|
|
8
|
+
private readonly _workspaceContextService;
|
|
9
|
+
private readonly configurationService;
|
|
10
|
+
private readonly _environmentService;
|
|
11
|
+
private readonly _configurationListener;
|
|
12
|
+
constructor(extHostContext: IExtHostContext, _workspaceContextService: IWorkspaceContextService, configurationService: IConfigurationService, _environmentService: IEnvironmentService);
|
|
13
|
+
private _getConfigurationData;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
$updateConfigurationOption(target: ConfigurationTarget | null, key: string, value: any, overrides: IConfigurationOverrides | undefined, scopeToLanguage: boolean | undefined): Promise<void>;
|
|
16
|
+
$removeConfigurationOption(target: ConfigurationTarget | null, key: string, overrides: IConfigurationOverrides | undefined, scopeToLanguage: boolean | undefined): Promise<void>;
|
|
17
|
+
private writeConfiguration;
|
|
18
|
+
private _updateValue;
|
|
19
|
+
private deriveConfigurationTarget;
|
|
20
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
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 { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
|
-
import { getScopes, Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
|
+
import { getScopes, Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
6
|
+
import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
5
7
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
6
8
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
9
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
10
|
+
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
11
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
12
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
10
13
|
|
|
@@ -41,13 +44,13 @@ let MainThreadConfiguration = class MainThreadConfiguration {
|
|
|
41
44
|
target = target !== null && target !== undefined ? target : this.deriveConfigurationTarget(key, overrides);
|
|
42
45
|
const configurationValue = this.configurationService.inspect(key, overrides);
|
|
43
46
|
switch (target) {
|
|
44
|
-
case
|
|
47
|
+
case ConfigurationTarget.MEMORY:
|
|
45
48
|
return this._updateValue(key, value, target, configurationValue?.memory?.override, overrides, scopeToLanguage);
|
|
46
|
-
case
|
|
49
|
+
case ConfigurationTarget.WORKSPACE_FOLDER:
|
|
47
50
|
return this._updateValue(key, value, target, configurationValue?.workspaceFolder?.override, overrides, scopeToLanguage);
|
|
48
|
-
case
|
|
51
|
+
case ConfigurationTarget.WORKSPACE:
|
|
49
52
|
return this._updateValue(key, value, target, configurationValue?.workspace?.override, overrides, scopeToLanguage);
|
|
50
|
-
case
|
|
53
|
+
case ConfigurationTarget.USER_REMOTE:
|
|
51
54
|
return this._updateValue(key, value, target, configurationValue?.userRemote?.override, overrides, scopeToLanguage);
|
|
52
55
|
default:
|
|
53
56
|
return this._updateValue(key, value, target, configurationValue?.userLocal?.override, overrides, scopeToLanguage);
|
|
@@ -61,13 +64,13 @@ let MainThreadConfiguration = class MainThreadConfiguration {
|
|
|
61
64
|
return this.configurationService.updateValue(key, value, overrides, configurationTarget, { donotNotifyError: true });
|
|
62
65
|
}
|
|
63
66
|
deriveConfigurationTarget(key, overrides) {
|
|
64
|
-
if (overrides.resource && this._workspaceContextService.getWorkbenchState() ===
|
|
67
|
+
if (overrides.resource && this._workspaceContextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
|
65
68
|
const configurationProperties = ( Registry.as(Extensions.Configuration)).getConfigurationProperties();
|
|
66
|
-
if (configurationProperties[key] && (
|
|
67
|
-
return
|
|
69
|
+
if (configurationProperties[key] && (configurationProperties[key].scope === ConfigurationScope.RESOURCE || configurationProperties[key].scope === ConfigurationScope.LANGUAGE_OVERRIDABLE)) {
|
|
70
|
+
return ConfigurationTarget.WORKSPACE_FOLDER;
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
|
-
return
|
|
73
|
+
return ConfigurationTarget.WORKSPACE;
|
|
71
74
|
}
|
|
72
75
|
};
|
|
73
76
|
MainThreadConfiguration = __decorate([
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
2
|
+
import { MainThreadConsoleShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
4
|
+
import { IRemoteConsoleLog } from "../../../base/common/console.js";
|
|
5
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
6
|
+
export declare class MainThreadConsole implements MainThreadConsoleShape {
|
|
7
|
+
private readonly _environmentService;
|
|
8
|
+
private readonly _logService;
|
|
9
|
+
private readonly _isExtensionDevTestFromCli;
|
|
10
|
+
constructor(_extHostContext: IExtHostContext, _environmentService: IEnvironmentService, _logService: ILogService);
|
|
11
|
+
dispose(): void;
|
|
12
|
+
$logExtensionHostMessage(entry: IRemoteConsoleLog): void;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
3
4
|
import { MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
5
|
+
import { MainThreadWebviewPanels } from "./mainThreadWebviewPanels.js";
|
|
6
|
+
import { MainThreadWebviews } from "./mainThreadWebviews.js";
|
|
7
|
+
import * as extHostProtocol from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
|
+
import { ICustomEditorService } from "vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor.service";
|
|
9
|
+
import { IWebviewWorkbenchService } from "vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
10
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
11
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
12
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
13
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
14
|
+
import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
15
|
+
import { IWorkingCopyService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
16
|
+
export declare class MainThreadCustomEditors extends Disposable implements extHostProtocol.MainThreadCustomEditorsShape {
|
|
17
|
+
private readonly mainThreadWebview;
|
|
18
|
+
private readonly mainThreadWebviewPanels;
|
|
19
|
+
private readonly _customEditorService;
|
|
20
|
+
private readonly _editorGroupService;
|
|
21
|
+
private readonly _editorService;
|
|
22
|
+
private readonly _instantiationService;
|
|
23
|
+
private readonly _webviewWorkbenchService;
|
|
24
|
+
private readonly _proxyCustomEditors;
|
|
25
|
+
private readonly _editorProviders;
|
|
26
|
+
private readonly _editorRenameBackups;
|
|
27
|
+
private readonly _webviewOriginStore;
|
|
28
|
+
constructor(context: IExtHostContext, mainThreadWebview: MainThreadWebviews, mainThreadWebviewPanels: MainThreadWebviewPanels, extensionService: IExtensionService, storageService: IStorageService, workingCopyService: IWorkingCopyService, workingCopyFileService: IWorkingCopyFileService, _customEditorService: ICustomEditorService, _editorGroupService: IEditorGroupsService, _editorService: IEditorService, _instantiationService: IInstantiationService, _webviewWorkbenchService: IWebviewWorkbenchService);
|
|
29
|
+
$registerTextEditorProvider(extensionData: extHostProtocol.WebviewExtensionDescription, viewType: string, options: extHostProtocol.IWebviewPanelOptions, capabilities: extHostProtocol.CustomTextEditorCapabilities, serializeBuffersForPostMessage: boolean): void;
|
|
30
|
+
$registerCustomEditorProvider(extensionData: extHostProtocol.WebviewExtensionDescription, viewType: string, options: extHostProtocol.IWebviewPanelOptions, supportsMultipleEditorsPerDocument: boolean, serializeBuffersForPostMessage: boolean): void;
|
|
31
|
+
private registerEditorProvider;
|
|
32
|
+
$unregisterEditorProvider(viewType: string): void;
|
|
33
|
+
private getOrCreateCustomEditorModel;
|
|
34
|
+
$onDidEdit(resourceComponents: UriComponents, viewType: string, editId: number, label: string | undefined): Promise<void>;
|
|
35
|
+
$onContentChange(resourceComponents: UriComponents, viewType: string): Promise<void>;
|
|
36
|
+
private getCustomEditorModel;
|
|
37
|
+
private onWillRunWorkingCopyFileOperation;
|
|
38
|
+
}
|