MCPcopy
hub / github.com/conwnet/github1s / TestObserver

Interface TestObserver

extensions/github1s/src/vscode.proposed.d.ts:2081–2109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2079 }
2080
2081 export interface TestObserver {
2082 /**
2083 * List of tests returned by test provider for files in the workspace.
2084 */
2085 readonly tests: ReadonlyArray<TestItem>;
2086
2087 /**
2088 * An event that fires when an existing test in the collection changes, or
2089 * null if a top-level test was added or removed. When fired, the consumer
2090 * should check the test item and all its children for changes.
2091 */
2092 readonly onDidChangeTest: Event<TestChangeEvent>;
2093
2094 /**
2095 * An event the fires when all test providers have signalled that the tests
2096 * the observer references have been discovered. Providers may continue to
2097 * watch for changes and cause {@link onDidChangeTest} to fire as files
2098 * change, until the observer is disposed.
2099 *
2100 * @todo as below
2101 */
2102 readonly onDidDiscoverInitialTests: Event<void>;
2103
2104 /**
2105 * Dispose of the observer, allowing VS Code to eventually tell test
2106 * providers that they no longer need to update tests.
2107 */
2108 dispose(): void;
2109 }
2110
2111 export interface TestChangeEvent {
2112 /**

Callers

nothing calls this directly

Implementers 10

GitHub1sHoverProviderextensions/github1s/src/providers/hove
GitHub1sFileSearchProviderextensions/github1s/src/providers/file
GitHub1sTextSearchProviderextensions/github1s/src/providers/text
GitHub1sDefinitionProviderextensions/github1s/src/providers/defi
GitHub1sReferenceProviderextensions/github1s/src/providers/refe
GitHub1sChangedFileDecorationProviderextensions/github1s/src/providers/deco
GitHub1sSubmoduleDecorationProviderextensions/github1s/src/providers/deco
GitHub1sSourceControlDecorationProviderextensions/github1s/src/providers/deco
GitHub1sFileSystemProviderextensions/github1s/src/providers/file
FileEditorInputvscode-web/src/vs/workbench/contrib/fi

Calls

no outgoing calls

Tested by

no test coverage detected