@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,9 +1,10 @@
|
|
|
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 { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
4
5
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
5
6
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
6
|
-
import { TELEMETRY_SETTING_ID, TELEMETRY_OLD_SETTING_ID } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
7
|
+
import { TELEMETRY_SETTING_ID, TELEMETRY_OLD_SETTING_ID, TelemetryLevel } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
7
8
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
8
9
|
import { supportsTelemetry } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
9
10
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -31,7 +32,7 @@ let MainThreadTelemetry = class MainThreadTelemetry extends Disposable {
|
|
|
31
32
|
}
|
|
32
33
|
get telemetryLevel() {
|
|
33
34
|
if (!supportsTelemetry(this._productService, this._environmentService)) {
|
|
34
|
-
return
|
|
35
|
+
return TelemetryLevel.NONE;
|
|
35
36
|
}
|
|
36
37
|
return this._telemetryService.telemetryLevel;
|
|
37
38
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MainThreadTerminalServiceShape, TerminalLaunchConfig, ExtHostTerminalIdentifier } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { IProcessProperty, IProcessReadyWindowsPty, ITerminalOutputMatch, ITerminalOutputMatcher } from "vscode/vscode/vs/platform/terminal/common/terminal";
|
|
6
|
+
import { ITerminalGroupService } from "vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
7
|
+
import { ITerminalEditorService } from "vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
8
|
+
import { ITerminalService } from "vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
9
|
+
import { IEnvironmentVariableService } from "vscode/vscode/vs/workbench/contrib/terminal/common/environmentVariable.service";
|
|
10
|
+
import { ITerminalProfileService } from "vscode/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
11
|
+
import { ITerminalProfileResolverService } from "vscode/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
12
|
+
import { IRemoteAgentService } from "vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
13
|
+
import { ISerializableEnvironmentDescriptionMap, ISerializableEnvironmentVariableCollection } from "@codingame/monaco-vscode-terminal-service-override/vscode/vs/platform/terminal/common/environmentVariable";
|
|
14
|
+
import { ITerminalLinkProviderService } from "vscode/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service";
|
|
15
|
+
import { ITerminalQuickFixService } from "vscode/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service";
|
|
16
|
+
import { ITerminalCompletionService } from "vscode/vscode/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service";
|
|
17
|
+
export declare class MainThreadTerminalService implements MainThreadTerminalServiceShape {
|
|
18
|
+
private readonly _extHostContext;
|
|
19
|
+
private readonly _terminalService;
|
|
20
|
+
private readonly _terminalLinkProviderService;
|
|
21
|
+
private readonly _terminalQuickFixService;
|
|
22
|
+
private readonly _instantiationService;
|
|
23
|
+
private readonly _environmentVariableService;
|
|
24
|
+
private readonly _logService;
|
|
25
|
+
private readonly _terminalProfileResolverService;
|
|
26
|
+
private readonly _terminalGroupService;
|
|
27
|
+
private readonly _terminalEditorService;
|
|
28
|
+
private readonly _terminalProfileService;
|
|
29
|
+
private readonly _terminalCompletionService;
|
|
30
|
+
private readonly _store;
|
|
31
|
+
private readonly _proxy;
|
|
32
|
+
private readonly _extHostTerminals;
|
|
33
|
+
private readonly _terminalProcessProxies;
|
|
34
|
+
private readonly _profileProviders;
|
|
35
|
+
private readonly _completionProviders;
|
|
36
|
+
private readonly _quickFixProviders;
|
|
37
|
+
private readonly _dataEventTracker;
|
|
38
|
+
private readonly _sendCommandEventListener;
|
|
39
|
+
private readonly _linkProvider;
|
|
40
|
+
private _os;
|
|
41
|
+
constructor(_extHostContext: IExtHostContext, _terminalService: ITerminalService, _terminalLinkProviderService: ITerminalLinkProviderService, _terminalQuickFixService: ITerminalQuickFixService, _instantiationService: IInstantiationService, _environmentVariableService: IEnvironmentVariableService, _logService: ILogService, _terminalProfileResolverService: ITerminalProfileResolverService, remoteAgentService: IRemoteAgentService, _terminalGroupService: ITerminalGroupService, _terminalEditorService: ITerminalEditorService, _terminalProfileService: ITerminalProfileService, _terminalCompletionService: ITerminalCompletionService);
|
|
42
|
+
dispose(): void;
|
|
43
|
+
private _updateDefaultProfile;
|
|
44
|
+
private _getTerminalInstance;
|
|
45
|
+
$createTerminal(extHostTerminalId: string, launchConfig: TerminalLaunchConfig): Promise<void>;
|
|
46
|
+
private _deserializeParentTerminal;
|
|
47
|
+
$show(id: ExtHostTerminalIdentifier, preserveFocus: boolean): Promise<void>;
|
|
48
|
+
$hide(id: ExtHostTerminalIdentifier): Promise<void>;
|
|
49
|
+
$dispose(id: ExtHostTerminalIdentifier): Promise<void>;
|
|
50
|
+
$sendText(id: ExtHostTerminalIdentifier, text: string, shouldExecute: boolean): Promise<void>;
|
|
51
|
+
$sendProcessExit(terminalId: number, exitCode: number | undefined): void;
|
|
52
|
+
$startSendingDataEvents(): void;
|
|
53
|
+
$stopSendingDataEvents(): void;
|
|
54
|
+
$startSendingCommandEvents(): void;
|
|
55
|
+
$stopSendingCommandEvents(): void;
|
|
56
|
+
$startLinkProvider(): void;
|
|
57
|
+
$stopLinkProvider(): void;
|
|
58
|
+
$registerProcessSupport(isSupported: boolean): void;
|
|
59
|
+
$registerCompletionProvider(id: string, extensionIdentifier: string, ...triggerCharacters: string[]): void;
|
|
60
|
+
$unregisterCompletionProvider(id: string): void;
|
|
61
|
+
$registerProfileProvider(id: string, extensionIdentifier: string): void;
|
|
62
|
+
$unregisterProfileProvider(id: string): void;
|
|
63
|
+
$registerQuickFixProvider(id: string, extensionId: string): Promise<void>;
|
|
64
|
+
$unregisterQuickFixProvider(id: string): void;
|
|
65
|
+
private _onActiveTerminalChanged;
|
|
66
|
+
private _onTerminalData;
|
|
67
|
+
private _onDidExecuteCommand;
|
|
68
|
+
private _onTitleChanged;
|
|
69
|
+
private _onTerminalDisposed;
|
|
70
|
+
private _onTerminalOpened;
|
|
71
|
+
private _onTerminalProcessIdReady;
|
|
72
|
+
private _onInstanceDimensionsChanged;
|
|
73
|
+
private _onInstanceMaximumDimensionsChanged;
|
|
74
|
+
private _onRequestStartExtensionTerminal;
|
|
75
|
+
$sendProcessData(terminalId: number, data: string): void;
|
|
76
|
+
$sendProcessReady(terminalId: number, pid: number, cwd: string, windowsPty: IProcessReadyWindowsPty | undefined): void;
|
|
77
|
+
$sendProcessProperty(terminalId: number, property: IProcessProperty<any>): void;
|
|
78
|
+
$setEnvironmentVariableCollection(extensionIdentifier: string, persistent: boolean, collection: ISerializableEnvironmentVariableCollection | undefined, descriptionMap: ISerializableEnvironmentDescriptionMap): void;
|
|
79
|
+
}
|
|
80
|
+
export declare function getOutputMatchForLines(lines: string[], outputMatcher: ITerminalOutputMatcher): ITerminalOutputMatch | undefined;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { DisposableStore, MutableDisposable, combinedDisposable, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
5
6
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
7
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
8
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
8
|
-
import { TerminalLocation, TerminalExitReason } from 'vscode/vscode/vs/platform/terminal/common/terminal';
|
|
9
|
+
import { TerminalLocation, TerminalExitReason, ProcessPropertyType } from 'vscode/vscode/vs/platform/terminal/common/terminal';
|
|
9
10
|
import { TerminalDataBufferer } from 'vscode/vscode/vs/platform/terminal/common/terminalDataBuffering';
|
|
10
11
|
import { ITerminalService, ITerminalGroupService, ITerminalEditorService } from 'vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
11
|
-
import { TerminalProcessExtHostProxy } from 'vscode/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy';
|
|
12
|
+
import { TerminalProcessExtHostProxy } from '@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy';
|
|
12
13
|
import { IEnvironmentVariableService } from 'vscode/vscode/vs/workbench/contrib/terminal/common/environmentVariable.service';
|
|
13
14
|
import { serializeEnvironmentVariableCollection, deserializeEnvironmentVariableCollection, deserializeEnvironmentDescriptionMap } from 'vscode/vscode/vs/platform/terminal/common/environmentVariableShared';
|
|
14
15
|
import { ITerminalProfileResolverService, ITerminalProfileService } from 'vscode/vscode/vs/workbench/contrib/terminal/common/terminal.service';
|
|
@@ -16,11 +17,13 @@ import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/
|
|
|
16
17
|
import { OS } from 'vscode/vscode/vs/base/common/platform';
|
|
17
18
|
import { Promises } from 'vscode/vscode/vs/base/common/async';
|
|
18
19
|
import { ITerminalLinkProviderService } from 'vscode/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service';
|
|
19
|
-
import { TerminalQuickFixType } from 'vscode/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix';
|
|
20
|
+
import { TerminalQuickFixType } from '@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix';
|
|
20
21
|
import { ITerminalQuickFixService } from 'vscode/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service';
|
|
22
|
+
import { TerminalCapability } from '@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common/vscode/vs/platform/terminal/common/capabilities/capabilities';
|
|
23
|
+
import { ITerminalCompletionService } from 'vscode/vscode/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service';
|
|
21
24
|
|
|
22
25
|
let MainThreadTerminalService = class MainThreadTerminalService {
|
|
23
|
-
constructor(_extHostContext, _terminalService, _terminalLinkProviderService, _terminalQuickFixService, _instantiationService, _environmentVariableService, _logService, _terminalProfileResolverService, remoteAgentService, _terminalGroupService, _terminalEditorService, _terminalProfileService) {
|
|
26
|
+
constructor(_extHostContext, _terminalService, _terminalLinkProviderService, _terminalQuickFixService, _instantiationService, _environmentVariableService, _logService, _terminalProfileResolverService, remoteAgentService, _terminalGroupService, _terminalEditorService, _terminalProfileService, _terminalCompletionService) {
|
|
24
27
|
this._extHostContext = _extHostContext;
|
|
25
28
|
this._terminalService = _terminalService;
|
|
26
29
|
this._terminalLinkProviderService = _terminalLinkProviderService;
|
|
@@ -32,10 +35,12 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
32
35
|
this._terminalGroupService = _terminalGroupService;
|
|
33
36
|
this._terminalEditorService = _terminalEditorService;
|
|
34
37
|
this._terminalProfileService = _terminalProfileService;
|
|
38
|
+
this._terminalCompletionService = _terminalCompletionService;
|
|
35
39
|
this._store = ( new DisposableStore());
|
|
36
40
|
this._extHostTerminals = ( new Map());
|
|
37
41
|
this._terminalProcessProxies = ( new Map());
|
|
38
42
|
this._profileProviders = ( new Map());
|
|
43
|
+
this._completionProviders = ( new Map());
|
|
39
44
|
this._quickFixProviders = ( new Map());
|
|
40
45
|
this._dataEventTracker = ( new MutableDisposable());
|
|
41
46
|
this._sendCommandEventListener = ( new MutableDisposable());
|
|
@@ -189,7 +194,7 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
189
194
|
if (this._sendCommandEventListener.value) {
|
|
190
195
|
return;
|
|
191
196
|
}
|
|
192
|
-
const multiplexer = this._terminalService.createOnInstanceCapabilityEvent(
|
|
197
|
+
const multiplexer = this._terminalService.createOnInstanceCapabilityEvent(TerminalCapability.CommandDetection, capability => capability.onCommandFinished);
|
|
193
198
|
const sub = multiplexer.event(e => {
|
|
194
199
|
this._onDidExecuteCommand(e.instance.instanceId, {
|
|
195
200
|
commandLine: e.data.command,
|
|
@@ -212,6 +217,18 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
212
217
|
$registerProcessSupport(isSupported) {
|
|
213
218
|
this._terminalService.registerProcessSupport(isSupported);
|
|
214
219
|
}
|
|
220
|
+
$registerCompletionProvider(id, extensionIdentifier, ...triggerCharacters) {
|
|
221
|
+
this._completionProviders.set(id, this._terminalCompletionService.registerTerminalCompletionProvider(extensionIdentifier, id, {
|
|
222
|
+
id,
|
|
223
|
+
provideCompletions: async (commandLine, cursorPosition, token) => {
|
|
224
|
+
return await this._proxy.$provideTerminalCompletions(id, { commandLine, cursorPosition }, token);
|
|
225
|
+
}
|
|
226
|
+
}, ...triggerCharacters));
|
|
227
|
+
}
|
|
228
|
+
$unregisterCompletionProvider(id) {
|
|
229
|
+
this._completionProviders.get(id)?.dispose();
|
|
230
|
+
this._completionProviders.delete(id);
|
|
231
|
+
}
|
|
215
232
|
$registerProfileProvider(id, extensionIdentifier) {
|
|
216
233
|
this._profileProviders.set(id, this._terminalProfileService.registerTerminalProfileProvider(extensionIdentifier, id, {
|
|
217
234
|
createContributedTerminalProfile: async (options) => {
|
|
@@ -246,7 +263,7 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
246
263
|
return;
|
|
247
264
|
}
|
|
248
265
|
const matchResult = { commandLineMatch, outputMatch, commandLine: terminalCommand.command };
|
|
249
|
-
|
|
266
|
+
{
|
|
250
267
|
const result = await this._proxy.$provideTerminalQuickFixes(id, matchResult, token);
|
|
251
268
|
if (result && Array.isArray(result)) {
|
|
252
269
|
return ( result.map(r => parseQuickFix(id, extensionId, r)));
|
|
@@ -322,7 +339,7 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
322
339
|
this._terminalProcessProxies.get(terminalId)?.emitReady(pid, cwd, windowsPty);
|
|
323
340
|
}
|
|
324
341
|
$sendProcessProperty(terminalId, property) {
|
|
325
|
-
if (property.type ===
|
|
342
|
+
if (property.type === ProcessPropertyType.Title) {
|
|
326
343
|
const instance = this._terminalService.getInstanceFromId(terminalId);
|
|
327
344
|
instance?.rename(property.value);
|
|
328
345
|
}
|
|
@@ -354,7 +371,8 @@ MainThreadTerminalService = __decorate([
|
|
|
354
371
|
( __param(8, IRemoteAgentService)),
|
|
355
372
|
( __param(9, ITerminalGroupService)),
|
|
356
373
|
( __param(10, ITerminalEditorService)),
|
|
357
|
-
( __param(11, ITerminalProfileService))
|
|
374
|
+
( __param(11, ITerminalProfileService)),
|
|
375
|
+
( __param(12, ITerminalCompletionService))
|
|
358
376
|
], MainThreadTerminalService);
|
|
359
377
|
let TerminalDataEventTracker = class TerminalDataEventTracker extends Disposable {
|
|
360
378
|
constructor(_callback, _terminalService) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { type MainThreadTerminalShellIntegrationShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { ITerminalService } from "vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
4
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
5
|
+
import { type IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
6
|
+
export declare class MainThreadTerminalShellIntegration extends Disposable implements MainThreadTerminalShellIntegrationShape {
|
|
7
|
+
private readonly _terminalService;
|
|
8
|
+
private readonly _proxy;
|
|
9
|
+
constructor(extHostContext: IExtHostContext, _terminalService: ITerminalService, workbenchEnvironmentService: IWorkbenchEnvironmentService);
|
|
10
|
+
$executeCommand(terminalId: number, commandLine: string): void;
|
|
11
|
+
private _convertCwdToUri;
|
|
12
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
+
import { TerminalCapability } from '@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common/vscode/vs/platform/terminal/common/capabilities/capabilities';
|
|
5
7
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
6
8
|
import { ITerminalService } from 'vscode/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
7
9
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
@@ -21,11 +23,11 @@ let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegratio
|
|
|
21
23
|
}));
|
|
22
24
|
const onDidAddCommandDetection = this._store.add(this._terminalService.createOnInstanceEvent(instance => {
|
|
23
25
|
return ( Event.map(Event.filter(instance.capabilities.onDidAddCapabilityType, e => {
|
|
24
|
-
return e ===
|
|
26
|
+
return e === TerminalCapability.CommandDetection || e === TerminalCapability.CwdDetection;
|
|
25
27
|
}), () => instance));
|
|
26
28
|
})).event;
|
|
27
29
|
this._store.add(onDidAddCommandDetection(e => this._proxy.$shellIntegrationChange(e.instanceId)));
|
|
28
|
-
const commandDetectionStartEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(
|
|
30
|
+
const commandDetectionStartEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(TerminalCapability.CommandDetection, e => e.onCommandExecuted));
|
|
29
31
|
let currentCommand;
|
|
30
32
|
this._store.add(commandDetectionStartEvent.event(e => {
|
|
31
33
|
if (e.data === currentCommand) {
|
|
@@ -37,7 +39,7 @@ let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegratio
|
|
|
37
39
|
instanceDataListeners.get(instanceId)?.dispose();
|
|
38
40
|
instanceDataListeners.set(instanceId, Event.accumulate(e.instance.onData, 50, this._store)(events => this._proxy.$shellExecutionData(instanceId, events.join(''))));
|
|
39
41
|
}));
|
|
40
|
-
const commandDetectionEndEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(
|
|
42
|
+
const commandDetectionEndEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(TerminalCapability.CommandDetection, e => e.onCommandFinished));
|
|
41
43
|
this._store.add(commandDetectionEndEvent.event(e => {
|
|
42
44
|
currentCommand = undefined;
|
|
43
45
|
const instanceId = e.instance.instanceId;
|
|
@@ -46,7 +48,7 @@ let MainThreadTerminalShellIntegration = class MainThreadTerminalShellIntegratio
|
|
|
46
48
|
this._proxy.$shellExecutionEnd(instanceId, e.data.command, convertToExtHostCommandLineConfidence(e.data), e.data.isTrusted, e.data.exitCode);
|
|
47
49
|
});
|
|
48
50
|
}));
|
|
49
|
-
const cwdChangeEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(
|
|
51
|
+
const cwdChangeEvent = this._store.add(this._terminalService.createOnInstanceCapabilityEvent(TerminalCapability.CwdDetection, e => e.onDidChangeCwd));
|
|
50
52
|
this._store.add(cwdChangeEvent.event(e => {
|
|
51
53
|
this._proxy.$cwdChange(e.instance.instanceId, this._convertCwdToUri(e.data));
|
|
52
54
|
}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { VSBuffer } from "vscode/vscode/vs/base/common/buffer";
|
|
2
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { UriComponents } from "vscode/vscode/vs/base/common/uri";
|
|
5
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
6
|
+
import { ITestProfileService } from "vscode/vscode/vs/workbench/contrib/testing/common/testProfileService.service";
|
|
7
|
+
import { ITestResultService } from "vscode/vscode/vs/workbench/contrib/testing/common/testResultService.service";
|
|
8
|
+
import { ITestService } from "vscode/vscode/vs/workbench/contrib/testing/common/testService.service";
|
|
9
|
+
import { CoverageDetails, ExtensionRunTestsRequest, IFileCoverage, ITestItem, ITestMessage, ITestRunProfile, ITestRunTask, ResolvedTestRunRequest, TestControllerCapability, TestResultState, TestsDiffOp } from "vscode/vscode/vs/workbench/contrib/testing/common/testTypes";
|
|
10
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
11
|
+
import { ILocationDto, ITestControllerPatch, MainThreadTestingShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
12
|
+
export declare class MainThreadTesting extends Disposable implements MainThreadTestingShape {
|
|
13
|
+
private readonly uriIdentityService;
|
|
14
|
+
private readonly testService;
|
|
15
|
+
private readonly testProfiles;
|
|
16
|
+
private readonly resultService;
|
|
17
|
+
private readonly proxy;
|
|
18
|
+
private readonly diffListener;
|
|
19
|
+
private readonly testProviderRegistrations;
|
|
20
|
+
constructor(extHostContext: IExtHostContext, uriIdentityService: IUriIdentityService, testService: ITestService, testProfiles: ITestProfileService, resultService: ITestResultService);
|
|
21
|
+
$markTestRetired(testIds: string[] | undefined): void;
|
|
22
|
+
$publishTestRunProfile(profile: ITestRunProfile): void;
|
|
23
|
+
$updateTestRunConfig(controllerId: string, profileId: number, update: Partial<ITestRunProfile>): void;
|
|
24
|
+
$removeTestProfile(controllerId: string, profileId: number): void;
|
|
25
|
+
$addTestsToRun(controllerId: string, runId: string, tests: ITestItem.Serialized[]): void;
|
|
26
|
+
$appendCoverage(runId: string, taskId: string, coverage: IFileCoverage.Serialized): void;
|
|
27
|
+
$startedExtensionTestRun(req: ExtensionRunTestsRequest): void;
|
|
28
|
+
$startedTestRunTask(runId: string, task: ITestRunTask): void;
|
|
29
|
+
$finishedTestRunTask(runId: string, taskId: string): void;
|
|
30
|
+
$finishedExtensionTestRun(runId: string): void;
|
|
31
|
+
$updateTestStateInRun(runId: string, taskId: string, testId: string, state: TestResultState, duration?: number): void;
|
|
32
|
+
$appendOutputToRun(runId: string, taskId: string, output: VSBuffer, locationDto?: ILocationDto, testId?: string): void;
|
|
33
|
+
$appendTestMessagesInRun(runId: string, taskId: string, testId: string, messages: ITestMessage.Serialized[]): void;
|
|
34
|
+
$registerTestController(controllerId: string, _label: string, _capabilities: TestControllerCapability): void;
|
|
35
|
+
$updateController(controllerId: string, patch: ITestControllerPatch): void;
|
|
36
|
+
$unregisterTestController(controllerId: string): void;
|
|
37
|
+
$subscribeToDiffs(): void;
|
|
38
|
+
$unsubscribeFromDiffs(): void;
|
|
39
|
+
$publishDiff(controllerId: string, diff: TestsDiffOp.Serialized[]): void;
|
|
40
|
+
$runTests(req: ResolvedTestRunRequest, token: CancellationToken): Promise<string>;
|
|
41
|
+
$getCoverageDetails(resultId: string, taskIndex: number, uri: UriComponents, token: CancellationToken): Promise<CoverageDetails.Serialized[]>;
|
|
42
|
+
dispose(): void;
|
|
43
|
+
private withLiveRun;
|
|
44
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { Disposable, MutableDisposable, DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { transaction, observableValue } from 'vscode/vscode/vs/base/common/observableInternal/base';
|
|
@@ -11,13 +12,13 @@ import { WellDefinedPrefixTree } from 'vscode/vscode/vs/base/common/prefixTree';
|
|
|
11
12
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
12
13
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
13
14
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
14
|
-
import { TestCoverage } from 'vscode/vscode/vs/workbench/contrib/testing/common/testCoverage';
|
|
15
|
+
import { TestCoverage } from '@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testCoverage';
|
|
15
16
|
import { TestId } from 'vscode/vscode/vs/workbench/contrib/testing/common/testId';
|
|
16
17
|
import { ITestProfileService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testProfileService.service';
|
|
17
|
-
import { LiveTestResult } from 'vscode/vscode/vs/workbench/contrib/testing/common/testResult';
|
|
18
|
+
import { LiveTestResult } from '@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testResult';
|
|
18
19
|
import { ITestResultService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testResultService.service';
|
|
19
20
|
import { ITestService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
20
|
-
import { ITestItem, IFileCoverage, CoverageDetails, ITestMessage, TestsDiffOp } from 'vscode/vscode/vs/workbench/contrib/testing/common/testTypes';
|
|
21
|
+
import { TestRunProfileBitset, ITestItem, IFileCoverage, CoverageDetails, ITestMessage, TestsDiffOp } from 'vscode/vscode/vs/workbench/contrib/testing/common/testTypes';
|
|
21
22
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
22
23
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
23
24
|
|
|
@@ -42,7 +43,7 @@ let MainThreadTesting = class MainThreadTesting extends Disposable {
|
|
|
42
43
|
}));
|
|
43
44
|
this._register(Event.debounce(testProfiles.onDidChange, (_last, e) => e)(() => {
|
|
44
45
|
const obj = {};
|
|
45
|
-
for (const group of [
|
|
46
|
+
for (const group of [TestRunProfileBitset.Run, TestRunProfileBitset.Debug, TestRunProfileBitset.Coverage]) {
|
|
46
47
|
for (const profile of this.testProfiles.getGroupDefaultProfiles(group)) {
|
|
47
48
|
obj[profile.controllerId] ??= [];
|
|
48
49
|
obj[profile.controllerId].push(profile.profileId);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MainThreadThemingShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
4
|
+
export declare class MainThreadTheming implements MainThreadThemingShape {
|
|
5
|
+
private readonly _themeService;
|
|
6
|
+
private readonly _proxy;
|
|
7
|
+
private readonly _themeChangeListener;
|
|
8
|
+
constructor(extHostContext: IExtHostContext, themeService: IThemeService);
|
|
9
|
+
dispose(): void;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
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 { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
2
|
+
import { MainThreadTimelineShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
|
+
import { TimelineChangeEvent, TimelineProviderDescriptor } from "vscode/vscode/vs/workbench/contrib/timeline/common/timeline";
|
|
5
|
+
import { ITimelineService } from "vscode/vscode/vs/workbench/contrib/timeline/common/timeline.service";
|
|
6
|
+
export declare class MainThreadTimeline implements MainThreadTimelineShape {
|
|
7
|
+
private readonly logService;
|
|
8
|
+
private readonly _timelineService;
|
|
9
|
+
private readonly _proxy;
|
|
10
|
+
private readonly _providerEmitters;
|
|
11
|
+
constructor(context: IExtHostContext, logService: ILogService, _timelineService: ITimelineService);
|
|
12
|
+
$registerTimelineProvider(provider: TimelineProviderDescriptor): void;
|
|
13
|
+
$unregisterTimelineProvider(id: string): void;
|
|
14
|
+
$emitTimelineChangeEvent(e: TimelineChangeEvent): void;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
@@ -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 { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
4
5
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { MainThreadTreeViewsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
3
|
+
import { ITreeItem, IRevealOptions, IViewBadge } from "vscode/vscode/vs/workbench/common/views";
|
|
4
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
5
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
6
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
7
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
import { VSBuffer } from "vscode/vscode/vs/base/common/buffer";
|
|
9
|
+
import { IMarkdownString } from "vscode/vscode/vs/base/common/htmlContent";
|
|
10
|
+
import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
11
|
+
export declare class MainThreadTreeViews extends Disposable implements MainThreadTreeViewsShape {
|
|
12
|
+
private readonly viewsService;
|
|
13
|
+
private readonly notificationService;
|
|
14
|
+
private readonly extensionService;
|
|
15
|
+
private readonly logService;
|
|
16
|
+
private readonly _proxy;
|
|
17
|
+
private readonly _dataProviders;
|
|
18
|
+
private readonly _dndControllers;
|
|
19
|
+
constructor(extHostContext: IExtHostContext, viewsService: IViewsService, notificationService: INotificationService, extensionService: IExtensionService, logService: ILogService);
|
|
20
|
+
$registerTreeViewDataProvider(treeViewId: string, options: {
|
|
21
|
+
showCollapseAll: boolean;
|
|
22
|
+
canSelectMany: boolean;
|
|
23
|
+
dropMimeTypes: string[];
|
|
24
|
+
dragMimeTypes: string[];
|
|
25
|
+
hasHandleDrag: boolean;
|
|
26
|
+
hasHandleDrop: boolean;
|
|
27
|
+
manuallyManageCheckboxes: boolean;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
$reveal(treeViewId: string, itemInfo: {
|
|
30
|
+
item: ITreeItem;
|
|
31
|
+
parentChain: ITreeItem[];
|
|
32
|
+
} | undefined, options: IRevealOptions): Promise<void>;
|
|
33
|
+
$refresh(treeViewId: string, itemsToRefreshByHandle: {
|
|
34
|
+
[treeItemHandle: string]: ITreeItem;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
$setMessage(treeViewId: string, message: string | IMarkdownString): void;
|
|
37
|
+
$setTitle(treeViewId: string, title: string, description: string | undefined): void;
|
|
38
|
+
$setBadge(treeViewId: string, badge: IViewBadge | undefined): void;
|
|
39
|
+
$resolveDropFileData(destinationViewId: string, requestId: number, dataItemId: string): Promise<VSBuffer>;
|
|
40
|
+
$disposeTree(treeViewId: string): Promise<void>;
|
|
41
|
+
private reveal;
|
|
42
|
+
private registerListeners;
|
|
43
|
+
private getTreeView;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable, DisposableMap, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
|
|
4
5
|
import { Extensions, NoTreeViewError, ResolvableTreeItem } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -235,18 +236,35 @@ class TreeViewDataProvider {
|
|
|
235
236
|
this.itemsMap = ( new Map());
|
|
236
237
|
this.hasResolve = this._proxy.$hasResolve(this.treeViewId);
|
|
237
238
|
}
|
|
238
|
-
getChildren(treeItem) {
|
|
239
|
-
|
|
239
|
+
async getChildren(treeItem) {
|
|
240
|
+
const batches = await this.getChildrenBatch(treeItem ? [treeItem] : undefined);
|
|
241
|
+
return batches?.[0];
|
|
242
|
+
}
|
|
243
|
+
getChildrenBatch(treeItems) {
|
|
244
|
+
if (!treeItems) {
|
|
240
245
|
this.itemsMap.clear();
|
|
241
246
|
}
|
|
242
|
-
return this._proxy.$getChildren(this.treeViewId,
|
|
243
|
-
.then(children =>
|
|
247
|
+
return this._proxy.$getChildren(this.treeViewId, treeItems ? ( treeItems.map(item => item.handle)) : undefined)
|
|
248
|
+
.then(children => {
|
|
249
|
+
const convertedChildren = this.convertTransferChildren(treeItems ?? [], children);
|
|
250
|
+
return this.postGetChildren(convertedChildren);
|
|
251
|
+
}, err => {
|
|
244
252
|
if (!NoTreeViewError.is(err)) {
|
|
245
253
|
this.notificationService.error(err);
|
|
246
254
|
}
|
|
247
255
|
return [];
|
|
248
256
|
});
|
|
249
257
|
}
|
|
258
|
+
convertTransferChildren(parents, children) {
|
|
259
|
+
const convertedChildren = Array(parents.length);
|
|
260
|
+
if (children) {
|
|
261
|
+
for (const childGroup of children) {
|
|
262
|
+
const childGroupIndex = childGroup[0];
|
|
263
|
+
convertedChildren[childGroupIndex] = childGroup.slice(1);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return convertedChildren;
|
|
267
|
+
}
|
|
250
268
|
getItemsToRefresh(itemsToRefreshByHandle) {
|
|
251
269
|
const itemsToRefresh = [];
|
|
252
270
|
const checkboxesToRefresh = [];
|
|
@@ -281,22 +299,29 @@ class TreeViewDataProvider {
|
|
|
281
299
|
isEmpty() {
|
|
282
300
|
return this.itemsMap.size === 0;
|
|
283
301
|
}
|
|
284
|
-
async postGetChildren(
|
|
285
|
-
if (
|
|
302
|
+
async postGetChildren(elementGroups) {
|
|
303
|
+
if (elementGroups === undefined) {
|
|
286
304
|
return undefined;
|
|
287
305
|
}
|
|
288
|
-
const
|
|
306
|
+
const resultGroups = [];
|
|
289
307
|
const hasResolve = await this.hasResolve;
|
|
290
|
-
if (
|
|
291
|
-
for (const
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
308
|
+
if (elementGroups) {
|
|
309
|
+
for (const elements of elementGroups) {
|
|
310
|
+
const result = [];
|
|
311
|
+
resultGroups.push(result);
|
|
312
|
+
if (!elements) {
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
for (const element of elements) {
|
|
316
|
+
const resolvable = ( new ResolvableTreeItem(element, hasResolve ? (token) => {
|
|
317
|
+
return this._proxy.$resolve(this.treeViewId, element.handle, token);
|
|
318
|
+
} : undefined));
|
|
319
|
+
this.itemsMap.set(element.handle, resolvable);
|
|
320
|
+
result.push(resolvable);
|
|
321
|
+
}
|
|
297
322
|
}
|
|
298
323
|
}
|
|
299
|
-
return
|
|
324
|
+
return resultGroups;
|
|
300
325
|
}
|
|
301
326
|
updateTreeItem(current, treeItem) {
|
|
302
327
|
treeItem.children = treeItem.children ? treeItem.children : undefined;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MainThreadTunnelServiceShape, CandidatePortSource, PortAttributesSelector, TunnelDto } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
|
+
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
3
|
+
import { IRemoteExplorerService } from "vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service";
|
|
4
|
+
import { TunnelProviderFeatures, TunnelOptions, ProvidedPortAttributes, PortAttributesProvider } from "vscode/vscode/vs/platform/tunnel/common/tunnel";
|
|
5
|
+
import { ITunnelService } from "vscode/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
6
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import type { TunnelDescription } from "vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver";
|
|
8
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
10
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
11
|
+
import { IRemoteAgentService } from "vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
12
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
13
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
+
import { CandidatePort } from "vscode/vscode/vs/workbench/services/remote/common/tunnelModel";
|
|
15
|
+
export declare class MainThreadTunnelService extends Disposable implements MainThreadTunnelServiceShape, PortAttributesProvider {
|
|
16
|
+
private readonly remoteExplorerService;
|
|
17
|
+
private readonly tunnelService;
|
|
18
|
+
private readonly notificationService;
|
|
19
|
+
private readonly configurationService;
|
|
20
|
+
private readonly logService;
|
|
21
|
+
private readonly remoteAgentService;
|
|
22
|
+
private readonly contextKeyService;
|
|
23
|
+
private readonly _proxy;
|
|
24
|
+
private elevateionRetry;
|
|
25
|
+
private portsAttributesProviders;
|
|
26
|
+
constructor(extHostContext: IExtHostContext, remoteExplorerService: IRemoteExplorerService, tunnelService: ITunnelService, notificationService: INotificationService, configurationService: IConfigurationService, logService: ILogService, remoteAgentService: IRemoteAgentService, contextKeyService: IContextKeyService);
|
|
27
|
+
private processFindingEnabled;
|
|
28
|
+
$setRemoteTunnelService(processId: number): Promise<void>;
|
|
29
|
+
private _alreadyRegistered;
|
|
30
|
+
$registerPortsAttributesProvider(selector: PortAttributesSelector, providerHandle: number): Promise<void>;
|
|
31
|
+
$unregisterPortsAttributesProvider(providerHandle: number): Promise<void>;
|
|
32
|
+
providePortAttributes(ports: number[], pid: number | undefined, commandLine: string | undefined, token: CancellationToken): Promise<ProvidedPortAttributes[]>;
|
|
33
|
+
$openTunnel(tunnelOptions: TunnelOptions, source: string): Promise<TunnelDto | undefined>;
|
|
34
|
+
private elevationPrompt;
|
|
35
|
+
$closeTunnel(remote: {
|
|
36
|
+
host: string;
|
|
37
|
+
port: number;
|
|
38
|
+
}): Promise<void>;
|
|
39
|
+
$getTunnels(): Promise<TunnelDescription[]>;
|
|
40
|
+
$onFoundNewCandidates(candidates: CandidatePort[]): Promise<void>;
|
|
41
|
+
$setTunnelProvider(features: TunnelProviderFeatures | undefined, isResolver: boolean): Promise<void>;
|
|
42
|
+
$setCandidateFilter(): Promise<void>;
|
|
43
|
+
$setCandidatePortSource(source: CandidatePortSource): Promise<void>;
|
|
44
|
+
}
|