import { IActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems"; import { IActionViewItem } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar"; import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters"; import { Disposable, MutableDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; 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 { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service"; import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service"; import { ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane"; import { IViewletViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewsViewlet"; import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service"; import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { TestExplorerViewMode, TestExplorerViewSorting } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/constants"; import { TestExplorerFilterState } from "../common/testExplorerFilterState.js"; import { ITestProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testProfileService.service"; import { ITestResultService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service"; import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service"; import { ITestRunProfile, InternalTestItem, TestRunProfileBitset } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testTypes"; import { ITestingContinuousRunService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testingContinuousRunService.service"; import { ITestingPeekOpener } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testingPeekOpener.service"; import { ITestTreeProjection, TestExplorerTreeElement, TestItemTreeElement, TestTreeErrorMessage } from "./explorerProjections/index.js"; import { TestingObjectTree } from "./explorerProjections/testingObjectTree.js"; export declare class TestingExplorerView extends ViewPane { private readonly testService; private readonly testProfileService; private readonly commandService; private readonly menuService; private readonly crService; viewModel: TestingExplorerViewModel; private readonly filterActionBar; private container; private treeHeader; private readonly discoveryProgress; private readonly filter; private readonly filterFocusListener; private readonly dimensions; private lastFocusState; get focusedTreeElements(): (TestItemTreeElement | TestTreeErrorMessage)[]; constructor(options: IViewletViewOptions, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, openerService: IOpenerService, themeService: IThemeService, testService: ITestService, hoverService: IHoverService, testProfileService: ITestProfileService, commandService: ICommandService, menuService: IMenuService, crService: ITestingContinuousRunService); shouldShowWelcome(): boolean; focus(): void; /** * Gets include/exclude items in the tree, based either on visible tests * or a use selection. If a profile is given, only tests in that profile * are collected. If a bitset is given, any test that can run in that * bitset is collected. */ getTreeIncludeExclude(profileOrBitset: ITestRunProfile | TestRunProfileBitset, withinItems?: InternalTestItem[], filterToType?: "visible" | "selected"): { include: InternalTestItem[]; exclude: InternalTestItem[]; }; render(): void; /** * @override */ protected renderBody(container: HTMLElement): void; /** @override */ createActionViewItem(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined; /** @inheritdoc */ private getTestConfigGroupActions; /** * @override */ saveState(): void; private getRunGroupDropdown; private getDropdownAction; private getContinuousRunDropdown; private createFilterActionBar; private updateDiscoveryProgress; /** * @override */ protected layoutBody(height?: number, width?: number): void; } declare enum WelcomeExperience { None = 0, ForWorkspace = 1, ForDocument = 2 } declare class TestingExplorerViewModel extends Disposable { private readonly menuService; private readonly contextMenuService; private readonly testService; private readonly filterState; private readonly instantiationService; private readonly storageService; private readonly contextKeyService; private readonly testResults; private readonly peekOpener; private readonly testProfileService; private readonly crService; tree: TestingObjectTree; private filter; readonly projection: MutableDisposable; private readonly revealTimeout; private readonly _viewMode; private readonly _viewSorting; private readonly welcomeVisibilityEmitter; private readonly actionRunner; private readonly lastViewState; private readonly noTestForDocumentWidget; /** * Whether there's a reveal request which has not yet been delivered. This * can happen if the user asks to reveal before the test tree is loaded. * We check to see if the reveal request is present on each tree update, * and do it then if so. */ private hasPendingReveal; /** * Fires when the visibility of the placeholder state changes. */ readonly onChangeWelcomeVisibility: Event; /** * Gets whether the welcome should be visible. */ welcomeExperience: WelcomeExperience; get viewMode(): TestExplorerViewMode; set viewMode(newMode: TestExplorerViewMode); get viewSorting(): TestExplorerViewSorting; set viewSorting(newSorting: TestExplorerViewSorting); constructor(listContainer: HTMLElement, onDidChangeVisibility: Event, configurationService: IConfigurationService, editorService: IEditorService, editorGroupsService: IEditorGroupsService, menuService: IMenuService, contextMenuService: IContextMenuService, testService: ITestService, filterState: TestExplorerFilterState, instantiationService: IInstantiationService, storageService: IStorageService, contextKeyService: IContextKeyService, testResults: ITestResultService, peekOpener: ITestingPeekOpener, testProfileService: ITestProfileService, crService: ITestingContinuousRunService, commandService: ICommandService); /** * Re-layout the tree. */ layout(height?: number, width?: number): void; /** * Tries to reveal by extension ID. Queues the request if the extension * ID is not currently available. */ private revealById; /** * Collapse all items in the tree. */ collapseAll(): Promise; /** * Tries to peek the first test error, if the item is in a failed state. */ private tryPeekError; private onContextMenu; private handleExecuteKeypress; private reevaluateWelcomeState; private ensureProjection; private updatePreferredProjection; private applyProjectionChanges; /** * Gets the selected tests from the tree. */ getSelectedTests(): (TestExplorerTreeElement | null)[]; } export {};