import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { Position } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position"; import { Location } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { MainThreadTestCollection } from "./mainThreadTestCollection.js"; import { MutableObservableValue } from "./observableValue.js"; import { TestExclusions } from "./testExclusions.js"; import { ITestProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testProfileService.service"; import { ITestResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResult"; import { ITestResultService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service"; import { AmbiguousRunTestsRequest, IMainThreadTestController, IMainThreadTestHostProxy, ITestFollowups } from "./testService.js"; import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service"; import { InternalTestItem, ResolvedTestRunRequest, TestMessageFollowupRequest, TestsDiff } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testTypes"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; export declare class TestService extends Disposable implements ITestService { private readonly editorService; private readonly testProfiles; private readonly notificationService; private readonly configurationService; private readonly testResults; private readonly workspaceTrustRequestService; readonly _serviceBrand: undefined; private testControllers; private testExtHosts; private readonly cancelExtensionTestRunEmitter; private readonly willProcessDiffEmitter; private readonly didProcessDiffEmitter; private readonly testRefreshCancellations; private readonly isRefreshingTests; private readonly activeEditorHasTests; /** * Cancellation for runs requested by the user being managed by the UI. * Test runs initiated by extensions are not included here. */ private readonly uiRunningTests; /** * @inheritdoc */ readonly onWillProcessDiff: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event; /** * @inheritdoc */ readonly onDidProcessDiff: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event; /** * @inheritdoc */ readonly onDidCancelTestRun: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{ runId: string | undefined; taskId: string | undefined; }>; /** * @inheritdoc */ readonly collection: MainThreadTestCollection; /** * @inheritdoc */ readonly excluded: TestExclusions; /** * @inheritdoc */ readonly showInlineOutput: MutableObservableValue; constructor(contextKeyService: IContextKeyService, instantiationService: IInstantiationService, uriIdentityService: IUriIdentityService, storage: IStorageService, editorService: IEditorService, testProfiles: ITestProfileService, notificationService: INotificationService, configurationService: IConfigurationService, testResults: ITestResultService, workspaceTrustRequestService: IWorkspaceTrustRequestService); /** * @inheritdoc */ expandTest(id: string, levels: number): Promise; /** * @inheritdoc */ cancelTestRun(runId?: string, taskId?: string): void; /** * @inheritdoc */ runTests(req: AmbiguousRunTestsRequest, token?: Readonly): Promise; /** @inheritdoc */ startContinuousRun(req: ResolvedTestRunRequest, token: CancellationToken): Promise; /** * @inheritdoc */ runResolvedTests(req: ResolvedTestRunRequest, token?: Readonly): Promise; /** * @inheritdoc */ provideTestFollowups(req: TestMessageFollowupRequest, token: CancellationToken): Promise; /** * @inheritdoc */ publishDiff(_controllerId: string, diff: TestsDiff): void; /** * @inheritdoc */ getTestController(id: string): IMainThreadTestController | undefined; /** * @inheritdoc */ syncTests(): Promise; /** * @inheritdoc */ refreshTests(controllerId?: string): Promise; /** * @inheritdoc */ cancelRefreshTests(): void; /** * @inheritdoc */ registerExtHost(controller: IMainThreadTestHostProxy): IDisposable; /** * @inheritdoc */ getTestsRelatedToCode(uri: URI, position: Position, token?: CancellationToken): Promise; /** * @inheritdoc */ registerTestController(id: string, controller: IMainThreadTestController): IDisposable; /** * @inheritdoc */ getCodeRelatedToTest(test: InternalTestItem, token?: CancellationToken): Promise; private updateEditorContextKeys; private saveAllBeforeTest; }