@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 { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
4
5
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IProgressStep, IProgressOptions } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
2
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
3
|
+
import { MainThreadProgressShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
6
|
+
export declare class MainThreadProgress implements MainThreadProgressShape {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _progressService;
|
|
9
|
+
private _progress;
|
|
10
|
+
private readonly _proxy;
|
|
11
|
+
constructor(extHostContext: IExtHostContext, progressService: IProgressService, _commandService: ICommandService);
|
|
12
|
+
dispose(): void;
|
|
13
|
+
$startProgress(handle: number, options: IProgressOptions, extensionId?: string): Promise<void>;
|
|
14
|
+
$progressReport(handle: number, message: IProgressStep): void;
|
|
15
|
+
$progressEnd(handle: number): void;
|
|
16
|
+
private _createTask;
|
|
17
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { ProgressLocation } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
2
4
|
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
3
5
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
6
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -16,8 +18,8 @@ class ManageExtensionAction extends Action {
|
|
|
16
18
|
let MainThreadProgress = class MainThreadProgress {
|
|
17
19
|
constructor(extHostContext, progressService, _commandService) {
|
|
18
20
|
this._commandService = _commandService;
|
|
19
|
-
this._progress = (
|
|
20
|
-
this._proxy = (
|
|
21
|
+
this._progress = ( new Map());
|
|
22
|
+
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostProgress));
|
|
21
23
|
this._progressService = progressService;
|
|
22
24
|
}
|
|
23
25
|
dispose() {
|
|
@@ -26,11 +28,11 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
26
28
|
}
|
|
27
29
|
async $startProgress(handle, options, extensionId) {
|
|
28
30
|
const task = this._createTask(handle);
|
|
29
|
-
if (options.location ===
|
|
31
|
+
if (options.location === ProgressLocation.Notification && extensionId) {
|
|
30
32
|
const notificationOptions = {
|
|
31
33
|
...options,
|
|
32
|
-
location:
|
|
33
|
-
secondaryActions: [(
|
|
34
|
+
location: ProgressLocation.Notification,
|
|
35
|
+
secondaryActions: [( new ManageExtensionAction(extensionId, ( localize(2297, "Manage Extension")), this._commandService))]
|
|
34
36
|
};
|
|
35
37
|
options = notificationOptions;
|
|
36
38
|
}
|
|
@@ -49,18 +51,16 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
49
51
|
}
|
|
50
52
|
_createTask(handle) {
|
|
51
53
|
return (progress) => {
|
|
52
|
-
return (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}))
|
|
56
|
-
);
|
|
54
|
+
return ( new Promise(resolve => {
|
|
55
|
+
this._progress.set(handle, { resolve, progress });
|
|
56
|
+
}));
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
MainThreadProgress = __decorate([
|
|
61
61
|
extHostNamedCustomer(MainContext.MainThreadProgress),
|
|
62
|
-
(
|
|
63
|
-
(
|
|
62
|
+
( __param(1, IProgressService)),
|
|
63
|
+
( __param(2, ICommandService))
|
|
64
64
|
], MainThreadProgress);
|
|
65
65
|
|
|
66
66
|
export { MainThreadProgress };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IDocumentFilterDto, MainThreadQuickDiffShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IQuickDiffService } from "vscode/vscode/vs/workbench/contrib/scm/common/quickDiff.service";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
export declare class MainThreadQuickDiff implements MainThreadQuickDiffShape {
|
|
6
|
+
private readonly quickDiffService;
|
|
7
|
+
private readonly proxy;
|
|
8
|
+
private providerDisposables;
|
|
9
|
+
constructor(extHostContext: IExtHostContext, quickDiffService: IQuickDiffService);
|
|
10
|
+
$registerQuickDiffProvider(handle: number, selector: IDocumentFilterDto[], label: string, rootUri: UriComponents | undefined, visible: boolean): Promise<void>;
|
|
11
|
+
$unregisterQuickDiffProvider(handle: number): Promise<void>;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
4
|
import { DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -12,12 +13,13 @@ let MainThreadQuickDiff = class MainThreadQuickDiff {
|
|
|
12
13
|
this.providerDisposables = ( new DisposableMap());
|
|
13
14
|
this.proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostQuickDiff));
|
|
14
15
|
}
|
|
15
|
-
async $registerQuickDiffProvider(handle, selector, label, rootUri) {
|
|
16
|
+
async $registerQuickDiffProvider(handle, selector, label, rootUri, visible) {
|
|
16
17
|
const provider = {
|
|
17
18
|
label,
|
|
18
19
|
rootUri: URI.revive(rootUri),
|
|
19
20
|
selector,
|
|
20
21
|
isSCM: false,
|
|
22
|
+
visible,
|
|
21
23
|
getOriginalResource: async (uri) => {
|
|
22
24
|
return URI.revive(await this.proxy.$provideOriginalResource(handle, uri, CancellationToken.None));
|
|
23
25
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IPickOptions } from "vscode/vscode/vs/platform/quickinput/common/quickInput";
|
|
2
|
+
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
3
|
+
import { MainThreadQuickOpenShape, TransferQuickPickItem, TransferQuickInput, IInputBoxOptions, TransferQuickPickItemOrSeparator } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
6
|
+
export declare class MainThreadQuickOpen implements MainThreadQuickOpenShape {
|
|
7
|
+
private readonly _proxy;
|
|
8
|
+
private readonly _quickInputService;
|
|
9
|
+
private readonly _items;
|
|
10
|
+
constructor(extHostContext: IExtHostContext, quickInputService: IQuickInputService);
|
|
11
|
+
dispose(): void;
|
|
12
|
+
$show(instance: number, options: IPickOptions<TransferQuickPickItem>, token: CancellationToken): Promise<number | number[] | undefined>;
|
|
13
|
+
$setItems(instance: number, items: TransferQuickPickItemOrSeparator[]): Promise<void>;
|
|
14
|
+
$setError(instance: number, error: Error): Promise<void>;
|
|
15
|
+
$input(options: IInputBoxOptions | undefined, validateInput: boolean, token: CancellationToken): Promise<string | undefined>;
|
|
16
|
+
private sessions;
|
|
17
|
+
$createOrUpdate(params: TransferQuickInput): Promise<void>;
|
|
18
|
+
$dispose(sessionId: number): Promise<void>;
|
|
19
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
3
4
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
2
|
+
import { IRemoteAuthorityResolverService } from "vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service";
|
|
3
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
5
|
+
export declare class MainThreadRemoteConnectionData extends Disposable {
|
|
6
|
+
protected readonly _environmentService: IWorkbenchEnvironmentService;
|
|
7
|
+
private readonly _proxy;
|
|
8
|
+
constructor(extHostContext: IExtHostContext, _environmentService: IWorkbenchEnvironmentService, remoteAuthorityResolverService: IRemoteAuthorityResolverService);
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
3
4
|
import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { InputValidationType } from "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm";
|
|
3
|
+
import { ISCMViewService } from "vscode/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
4
|
+
import { ISCMService } from "vscode/vscode/vs/workbench/contrib/scm/common/scm.service";
|
|
5
|
+
import { MainThreadSCMShape, SCMProviderFeatures, SCMRawResourceSplices, SCMGroupFeatures, SCMHistoryItemRefsChangeEventDto, SCMHistoryItemRefDto } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
6
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
|
+
import { IMarkdownString } from "vscode/vscode/vs/base/common/htmlContent";
|
|
8
|
+
import { IQuickDiffService } from "vscode/vscode/vs/workbench/contrib/scm/common/quickDiff.service";
|
|
9
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
10
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
11
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
12
|
+
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
13
|
+
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
14
|
+
export declare class MainThreadSCM implements MainThreadSCMShape {
|
|
15
|
+
private readonly scmService;
|
|
16
|
+
private readonly scmViewService;
|
|
17
|
+
private readonly languageService;
|
|
18
|
+
private readonly modelService;
|
|
19
|
+
private readonly textModelService;
|
|
20
|
+
private readonly quickDiffService;
|
|
21
|
+
private readonly _uriIdentService;
|
|
22
|
+
private readonly workspaceContextService;
|
|
23
|
+
private readonly _proxy;
|
|
24
|
+
private _repositories;
|
|
25
|
+
private _repositoryBarriers;
|
|
26
|
+
private _repositoryDisposables;
|
|
27
|
+
private readonly _disposables;
|
|
28
|
+
constructor(extHostContext: IExtHostContext, scmService: ISCMService, scmViewService: ISCMViewService, languageService: ILanguageService, modelService: IModelService, textModelService: ITextModelService, quickDiffService: IQuickDiffService, _uriIdentService: IUriIdentityService, workspaceContextService: IWorkspaceContextService);
|
|
29
|
+
dispose(): void;
|
|
30
|
+
$registerSourceControl(handle: number, id: string, label: string, rootUri: UriComponents | undefined, inputBoxDocumentUri: UriComponents): Promise<void>;
|
|
31
|
+
$updateSourceControl(handle: number, features: SCMProviderFeatures): Promise<void>;
|
|
32
|
+
$unregisterSourceControl(handle: number): Promise<void>;
|
|
33
|
+
$registerGroups(sourceControlHandle: number, groups: [
|
|
34
|
+
number,
|
|
35
|
+
string,
|
|
36
|
+
string,
|
|
37
|
+
SCMGroupFeatures,
|
|
38
|
+
boolean
|
|
39
|
+
][], splices: SCMRawResourceSplices[]): Promise<void>;
|
|
40
|
+
$updateGroup(sourceControlHandle: number, groupHandle: number, features: SCMGroupFeatures): Promise<void>;
|
|
41
|
+
$updateGroupLabel(sourceControlHandle: number, groupHandle: number, label: string): Promise<void>;
|
|
42
|
+
$spliceResourceStates(sourceControlHandle: number, splices: SCMRawResourceSplices[]): Promise<void>;
|
|
43
|
+
$unregisterGroup(sourceControlHandle: number, handle: number): Promise<void>;
|
|
44
|
+
$setInputBoxValue(sourceControlHandle: number, value: string): Promise<void>;
|
|
45
|
+
$setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): Promise<void>;
|
|
46
|
+
$setInputBoxEnablement(sourceControlHandle: number, enabled: boolean): Promise<void>;
|
|
47
|
+
$setInputBoxVisibility(sourceControlHandle: number, visible: boolean): Promise<void>;
|
|
48
|
+
$showValidationMessage(sourceControlHandle: number, message: string | IMarkdownString, type: InputValidationType): Promise<void>;
|
|
49
|
+
$setValidationProviderIsEnabled(sourceControlHandle: number, enabled: boolean): Promise<void>;
|
|
50
|
+
$onDidChangeHistoryProviderCurrentHistoryItemRefs(sourceControlHandle: number, historyItemRef?: SCMHistoryItemRefDto, historyItemRemoteRef?: SCMHistoryItemRefDto, historyItemBaseRef?: SCMHistoryItemRefDto): Promise<void>;
|
|
51
|
+
$onDidChangeHistoryProviderHistoryItemRefs(sourceControlHandle: number, historyItemRefs: SCMHistoryItemRefsChangeEventDto): Promise<void>;
|
|
52
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Barrier } from 'vscode/vscode/vs/base/common/async';
|
|
3
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
5
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
@@ -13,9 +14,10 @@ import 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
|
13
14
|
import { ISCMService, ISCMViewService } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
14
15
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
15
16
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
17
|
+
import { MarshalledId } from 'vscode/vscode/vs/base/common/marshallingIds';
|
|
16
18
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
17
19
|
import { IQuickDiffService } from 'vscode/vscode/vs/workbench/contrib/scm/common/quickDiff.service';
|
|
18
|
-
import { ResourceTree } from 'vscode/vscode/vs/base/common/resourceTree';
|
|
20
|
+
import { ResourceTree } from '@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common/vscode/vs/base/common/resourceTree';
|
|
19
21
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
20
22
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
21
23
|
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
@@ -23,7 +25,7 @@ import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/langu
|
|
|
23
25
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
24
26
|
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
25
27
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
26
|
-
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from 'vscode/vscode/vs/workbench/contrib/scm/browser/scmHistory';
|
|
28
|
+
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from '@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common/vscode/vs/workbench/contrib/scm/browser/scmHistory';
|
|
27
29
|
|
|
28
30
|
function getIconFromIconDto(iconDto) {
|
|
29
31
|
if (iconDto === undefined) {
|
|
@@ -96,7 +98,7 @@ class MainThreadSCMResourceGroup {
|
|
|
96
98
|
}
|
|
97
99
|
toJSON() {
|
|
98
100
|
return {
|
|
99
|
-
$mid:
|
|
101
|
+
$mid: MarshalledId.ScmResourceGroup,
|
|
100
102
|
sourceControlHandle: this.sourceControlHandle,
|
|
101
103
|
groupHandle: this.handle
|
|
102
104
|
};
|
|
@@ -134,7 +136,7 @@ class MainThreadSCMResource {
|
|
|
134
136
|
}
|
|
135
137
|
toJSON() {
|
|
136
138
|
return {
|
|
137
|
-
$mid:
|
|
139
|
+
$mid: MarshalledId.ScmResource,
|
|
138
140
|
sourceControlHandle: this.sourceControlHandle,
|
|
139
141
|
groupHandle: this.groupHandle,
|
|
140
142
|
handle: this.handle
|
|
@@ -235,6 +237,7 @@ class MainThreadSCMProvider {
|
|
|
235
237
|
this._commitTemplate = observableValue(this, '');
|
|
236
238
|
this._actionButton = observableValue(this, undefined);
|
|
237
239
|
this.isSCM = true;
|
|
240
|
+
this.visible = true;
|
|
238
241
|
this._historyProvider = observableValue(this, undefined);
|
|
239
242
|
if (_rootUri) {
|
|
240
243
|
const folder = this._workspaceContextService.getWorkspaceFolder(_rootUri);
|
|
@@ -252,7 +255,7 @@ class MainThreadSCMProvider {
|
|
|
252
255
|
this._commitTemplate.set(features.commitTemplate, undefined);
|
|
253
256
|
}
|
|
254
257
|
if (typeof features.actionButton !== 'undefined') {
|
|
255
|
-
this._actionButton.set(features.actionButton, undefined);
|
|
258
|
+
this._actionButton.set(features.actionButton ?? undefined, undefined);
|
|
256
259
|
}
|
|
257
260
|
if (typeof features.count !== 'undefined') {
|
|
258
261
|
this._count.set(features.count, undefined);
|
|
@@ -265,6 +268,7 @@ class MainThreadSCMProvider {
|
|
|
265
268
|
label: features.quickDiffLabel ?? this.label,
|
|
266
269
|
rootUri: this.rootUri,
|
|
267
270
|
isSCM: this.isSCM,
|
|
271
|
+
visible: this.visible,
|
|
268
272
|
getOriginalResource: (uri) => this.getOriginalResource(uri)
|
|
269
273
|
});
|
|
270
274
|
}
|
|
@@ -382,7 +386,7 @@ class MainThreadSCMProvider {
|
|
|
382
386
|
}
|
|
383
387
|
toJSON() {
|
|
384
388
|
return {
|
|
385
|
-
$mid:
|
|
389
|
+
$mid: MarshalledId.ScmProvider,
|
|
386
390
|
handle: this.handle
|
|
387
391
|
};
|
|
388
392
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { ITextFileService } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
4
|
+
export declare class SaveParticipant {
|
|
5
|
+
private readonly _textFileService;
|
|
6
|
+
private _saveParticipantDisposable;
|
|
7
|
+
constructor(extHostContext: IExtHostContext, instantiationService: IInstantiationService, _textFileService: ITextFileService);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { shouldSynchronizeModel } from 'vscode/vscode/vs/editor/common/model';
|
|
3
4
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -9,21 +10,21 @@ import { raceCancellationError } from 'vscode/vscode/vs/base/common/async';
|
|
|
9
10
|
|
|
10
11
|
class ExtHostSaveParticipant {
|
|
11
12
|
constructor(extHostContext) {
|
|
12
|
-
this._proxy = (
|
|
13
|
+
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostDocumentSaveParticipant));
|
|
13
14
|
}
|
|
14
15
|
async participate(editorModel, context, _progress, token) {
|
|
15
16
|
if (!editorModel.textEditorModel || !shouldSynchronizeModel(editorModel.textEditorModel)) {
|
|
16
17
|
return undefined;
|
|
17
18
|
}
|
|
18
|
-
const p = (
|
|
19
|
-
setTimeout(() => reject((
|
|
19
|
+
const p = ( new Promise((resolve, reject) => {
|
|
20
|
+
setTimeout(() => reject(( new Error(( localize(2298, "Aborted onWillSaveTextDocument-event after 1750ms"))))), 1750);
|
|
20
21
|
this._proxy.$participateInSave(editorModel.resource, context.reason).then(values => {
|
|
21
22
|
if (!values.every(success => success)) {
|
|
22
|
-
return Promise.reject((
|
|
23
|
+
return Promise.reject(( new Error('listener failed')));
|
|
23
24
|
}
|
|
24
25
|
return undefined;
|
|
25
26
|
}).then(resolve, reject);
|
|
26
|
-
}))
|
|
27
|
+
}));
|
|
27
28
|
return raceCancellationError(p, token);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -38,8 +39,8 @@ let SaveParticipant = class SaveParticipant {
|
|
|
38
39
|
};
|
|
39
40
|
SaveParticipant = __decorate([
|
|
40
41
|
extHostCustomer,
|
|
41
|
-
(
|
|
42
|
-
(
|
|
42
|
+
( __param(1, IInstantiationService)),
|
|
43
|
+
( __param(2, ITextFileService))
|
|
43
44
|
], SaveParticipant);
|
|
44
45
|
|
|
45
46
|
export { SaveParticipant };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
import { IRawFileMatch2 } from "vscode/vscode/vs/workbench/services/search/common/search";
|
|
6
|
+
import { ISearchService } from "vscode/vscode/vs/workbench/services/search/common/search.service";
|
|
7
|
+
import { MainThreadSearchShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
9
|
+
export declare class MainThreadSearch implements MainThreadSearchShape {
|
|
10
|
+
private readonly _searchService;
|
|
11
|
+
private readonly _telemetryService;
|
|
12
|
+
protected contextKeyService: IContextKeyService;
|
|
13
|
+
private readonly _proxy;
|
|
14
|
+
private readonly _searchProvider;
|
|
15
|
+
constructor(extHostContext: IExtHostContext, _searchService: ISearchService, _telemetryService: ITelemetryService, _configurationService: IConfigurationService, contextKeyService: IContextKeyService);
|
|
16
|
+
dispose(): void;
|
|
17
|
+
$registerTextSearchProvider(handle: number, scheme: string): void;
|
|
18
|
+
$registerAITextSearchProvider(handle: number, scheme: string): void;
|
|
19
|
+
$registerFileSearchProvider(handle: number, scheme: string): void;
|
|
20
|
+
$unregisterProvider(handle: number): void;
|
|
21
|
+
$handleFileMatch(handle: number, session: number, data: UriComponents[]): void;
|
|
22
|
+
$handleTextMatch(handle: number, session: number, data: IRawFileMatch2[]): void;
|
|
23
|
+
$handleTelemetry(eventName: string, data: any): void;
|
|
24
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
4
|
import { dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
7
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
7
8
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
9
|
+
import { SearchProviderType, QueryType } from 'vscode/vscode/vs/workbench/services/search/common/search';
|
|
8
10
|
import { ISearchService } from 'vscode/vscode/vs/workbench/services/search/common/search.service';
|
|
9
11
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
10
12
|
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
11
|
-
import { SearchContext } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
|
|
13
|
+
import { SearchContext } from '@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common/vscode/vs/workbench/contrib/search/common/constants';
|
|
12
14
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
15
|
|
|
14
16
|
let MainThreadSearch = class MainThreadSearch {
|
|
@@ -25,32 +27,20 @@ let MainThreadSearch = class MainThreadSearch {
|
|
|
25
27
|
this._searchProvider.clear();
|
|
26
28
|
}
|
|
27
29
|
$registerTextSearchProvider(handle, scheme) {
|
|
28
|
-
this._searchProvider.set(handle, ( new RemoteSearchProvider(
|
|
29
|
-
this._searchService,
|
|
30
|
-
1 ,
|
|
31
|
-
scheme,
|
|
32
|
-
handle,
|
|
33
|
-
this._proxy
|
|
34
|
-
)));
|
|
30
|
+
this._searchProvider.set(handle, ( new RemoteSearchProvider(this._searchService, SearchProviderType.text, scheme, handle, this._proxy)));
|
|
35
31
|
}
|
|
36
32
|
$registerAITextSearchProvider(handle, scheme) {
|
|
37
33
|
SearchContext.hasAIResultProvider.bindTo(this.contextKeyService).set(true);
|
|
38
34
|
this._searchProvider.set(handle, ( new RemoteSearchProvider(
|
|
39
35
|
this._searchService,
|
|
40
|
-
|
|
36
|
+
SearchProviderType.aiText,
|
|
41
37
|
scheme,
|
|
42
38
|
handle,
|
|
43
39
|
this._proxy
|
|
44
40
|
)));
|
|
45
41
|
}
|
|
46
42
|
$registerFileSearchProvider(handle, scheme) {
|
|
47
|
-
this._searchProvider.set(handle, ( new RemoteSearchProvider(
|
|
48
|
-
this._searchService,
|
|
49
|
-
0 ,
|
|
50
|
-
scheme,
|
|
51
|
-
handle,
|
|
52
|
-
this._proxy
|
|
53
|
-
)));
|
|
43
|
+
this._searchProvider.set(handle, ( new RemoteSearchProvider(this._searchService, SearchProviderType.file, scheme, handle, this._proxy)));
|
|
54
44
|
}
|
|
55
45
|
$unregisterProvider(handle) {
|
|
56
46
|
dispose(this._searchProvider.get(handle));
|
|
@@ -161,9 +151,9 @@ class RemoteSearchProvider {
|
|
|
161
151
|
}
|
|
162
152
|
_provideSearchResults(query, session, token) {
|
|
163
153
|
switch (query.type) {
|
|
164
|
-
case
|
|
154
|
+
case QueryType.File:
|
|
165
155
|
return this._proxy.$provideFileSearchResults(this._handle, session, query, token);
|
|
166
|
-
case
|
|
156
|
+
case QueryType.Text:
|
|
167
157
|
return this._proxy.$provideTextSearchResults(this._handle, session, query, token);
|
|
168
158
|
default:
|
|
169
159
|
return this._proxy.$provideAITextSearchResults(this._handle, session, query, token);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { MainThreadSecretStateShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { ISecretStorageService } from "vscode/vscode/vs/platform/secrets/common/secrets.service";
|
|
6
|
+
import { IBrowserWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
7
|
+
export declare class MainThreadSecretState extends Disposable implements MainThreadSecretStateShape {
|
|
8
|
+
private readonly secretStorageService;
|
|
9
|
+
private readonly logService;
|
|
10
|
+
private readonly _proxy;
|
|
11
|
+
private readonly _sequencer;
|
|
12
|
+
constructor(extHostContext: IExtHostContext, secretStorageService: ISecretStorageService, logService: ILogService, environmentService: IBrowserWorkbenchEnvironmentService);
|
|
13
|
+
$getPassword(extensionId: string, key: string): Promise<string | undefined>;
|
|
14
|
+
private doGetPassword;
|
|
15
|
+
$setPassword(extensionId: string, key: string, value: string): Promise<void>;
|
|
16
|
+
private doSetPassword;
|
|
17
|
+
$deletePassword(extensionId: string, key: string): Promise<void>;
|
|
18
|
+
private doDeletePassword;
|
|
19
|
+
private getKey;
|
|
20
|
+
private parseKey;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
4
5
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IDocumentFilterDto, MainThreadShareShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import { IShareService } from "vscode/vscode/vs/workbench/contrib/share/common/share.service";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
export declare class MainThreadShare implements MainThreadShareShape {
|
|
5
|
+
private readonly shareService;
|
|
6
|
+
private readonly proxy;
|
|
7
|
+
private providers;
|
|
8
|
+
private providerDisposables;
|
|
9
|
+
constructor(extHostContext: IExtHostContext, shareService: IShareService);
|
|
10
|
+
$registerShareProvider(handle: number, selector: IDocumentFilterDto[], id: string, label: string, priority: number): void;
|
|
11
|
+
$unregisterShareProvider(handle: number): void;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
4
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
2
|
+
import { MainThreadSpeechShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IKeywordRecognitionEvent, ISpeechProviderMetadata, ISpeechToTextEvent, ITextToSpeechEvent } from "vscode/vscode/vs/workbench/contrib/speech/common/speechService";
|
|
4
|
+
import { ISpeechService } from "vscode/vscode/vs/workbench/contrib/speech/common/speechService.service";
|
|
5
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
export declare class MainThreadSpeech implements MainThreadSpeechShape {
|
|
7
|
+
private readonly speechService;
|
|
8
|
+
private readonly logService;
|
|
9
|
+
private readonly proxy;
|
|
10
|
+
private readonly providerRegistrations;
|
|
11
|
+
private readonly speechToTextSessions;
|
|
12
|
+
private readonly textToSpeechSessions;
|
|
13
|
+
private readonly keywordRecognitionSessions;
|
|
14
|
+
constructor(extHostContext: IExtHostContext, speechService: ISpeechService, logService: ILogService);
|
|
15
|
+
$registerProvider(handle: number, identifier: string, metadata: ISpeechProviderMetadata): void;
|
|
16
|
+
$unregisterProvider(handle: number): void;
|
|
17
|
+
$emitSpeechToTextEvent(session: number, event: ISpeechToTextEvent): void;
|
|
18
|
+
$emitTextToSpeechEvent(session: number, event: ITextToSpeechEvent): void;
|
|
19
|
+
$emitKeywordRecognitionEvent(session: number, event: IKeywordRecognitionEvent): void;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { raceCancellation } from 'vscode/vscode/vs/base/common/async';
|
|
3
4
|
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
5
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MainThreadStatusBarShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import { ThemeColor } from "vscode/vscode/vs/base/common/themables";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { Command } from "vscode/vscode/vs/editor/common/languages";
|
|
5
|
+
import { IAccessibilityInformation } from "vscode/vscode/vs/platform/accessibility/common/accessibility";
|
|
6
|
+
import { IMarkdownString } from "vscode/vscode/vs/base/common/htmlContent";
|
|
7
|
+
import { IExtensionStatusBarItemService } from "vscode/vscode/vs/workbench/api/browser/statusBarService";
|
|
8
|
+
export declare class MainThreadStatusBar implements MainThreadStatusBarShape {
|
|
9
|
+
private readonly statusbarService;
|
|
10
|
+
private readonly _store;
|
|
11
|
+
constructor(extHostContext: IExtHostContext, statusbarService: IExtensionStatusBarItemService);
|
|
12
|
+
dispose(): void;
|
|
13
|
+
$setEntry(entryId: string, id: string, extensionId: string | undefined, name: string, text: string, tooltip: IMarkdownString | string | undefined, command: Command | undefined, color: string | ThemeColor | undefined, backgroundColor: ThemeColor | undefined, alignLeft: boolean, priority: number | undefined, accessibilityInformation: IAccessibilityInformation | undefined): void;
|
|
14
|
+
$disposeEntry(entryId: string): void;
|
|
15
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
3
4
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
4
5
|
import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import {
|
|
6
|
+
import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
7
|
+
import { StatusBarUpdateKind, IExtensionStatusBarItemService } from 'vscode/vscode/vs/workbench/api/browser/statusBarService';
|
|
6
8
|
|
|
7
9
|
let MainThreadStatusBar = class MainThreadStatusBar {
|
|
8
10
|
constructor(extHostContext, statusbarService) {
|
|
@@ -27,7 +29,7 @@ let MainThreadStatusBar = class MainThreadStatusBar {
|
|
|
27
29
|
tooltip: item.entry.tooltip,
|
|
28
30
|
command: typeof item.entry.command === 'string' ? item.entry.command : typeof item.entry.command === 'object' ? item.entry.command.id : undefined,
|
|
29
31
|
priority: item.priority,
|
|
30
|
-
alignLeft: item.alignment ===
|
|
32
|
+
alignLeft: item.alignment === StatusbarAlignment.LEFT,
|
|
31
33
|
accessibilityInformation: item.entry.ariaLabel ? { label: item.entry.ariaLabel, role: item.entry.role } : undefined
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -37,7 +39,7 @@ let MainThreadStatusBar = class MainThreadStatusBar {
|
|
|
37
39
|
}
|
|
38
40
|
$setEntry(entryId, id, extensionId, name, text, tooltip, command, color, backgroundColor, alignLeft, priority, accessibilityInformation) {
|
|
39
41
|
const kind = this.statusbarService.setOrUpdateEntry(entryId, id, extensionId, name, text, tooltip, command, color, backgroundColor, alignLeft, priority, accessibilityInformation);
|
|
40
|
-
if (kind ===
|
|
42
|
+
if (kind === StatusBarUpdateKind.DidDefine) {
|
|
41
43
|
this._store.add(toDisposable(() => this.statusbarService.unsetEntry(entryId)));
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
2
|
+
import { MainThreadStorageShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { IExtensionIdWithVersion } from "@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common/vscode/vs/platform/extensionManagement/common/extensionStorage";
|
|
5
|
+
import { IExtensionStorageService } from "vscode/vscode/vs/platform/extensionManagement/common/extensionStorage.service";
|
|
6
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
export declare class MainThreadStorage implements MainThreadStorageShape {
|
|
9
|
+
private readonly _extensionStorageService;
|
|
10
|
+
private readonly _storageService;
|
|
11
|
+
private readonly _instantiationService;
|
|
12
|
+
private readonly _logService;
|
|
13
|
+
private readonly _proxy;
|
|
14
|
+
private readonly _storageListener;
|
|
15
|
+
private readonly _sharedStorageKeysToWatch;
|
|
16
|
+
constructor(extHostContext: IExtHostContext, _extensionStorageService: IExtensionStorageService, _storageService: IStorageService, _instantiationService: IInstantiationService, _logService: ILogService);
|
|
17
|
+
dispose(): void;
|
|
18
|
+
$initializeExtensionStorage(shared: boolean, extensionId: string): Promise<string | undefined>;
|
|
19
|
+
$setValue(shared: boolean, key: string, value: object): Promise<void>;
|
|
20
|
+
$registerExtensionStorageKeysToSync(extension: IExtensionIdWithVersion, keys: string[]): void;
|
|
21
|
+
private checkAndMigrateExtensionStorage;
|
|
22
|
+
}
|