Path: blob/main/src/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts
3290 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45// version: 267declare module 'vscode' {8/**9* An AITextSearchProvider provides additional AI text search results in the workspace.10*/11export interface AITextSearchProvider {12/**13* The name of the AI searcher. Will be displayed as `{name} Results` in the Search View.14*/15readonly name?: string;1617/**18*19* Provide results that match the given text pattern.20* @param query The parameter for this query.21* @param options A set of options to consider while searching.22* @param progress A progress callback that must be invoked for all results.23* @param token A cancellation token.24*/25provideAITextSearchResults(query: string, options: TextSearchProviderOptions, progress: Progress<TextSearchResult2>, token: CancellationToken): ProviderResult<TextSearchComplete2>;26}2728export namespace workspace {29/**30* Register an AI text search provider.31*32* Only one provider can be registered per scheme.33*34* @param scheme The provider will be invoked for workspace folders that have this file scheme.35* @param provider The provider.36* @return A {@link Disposable} that unregisters this provider when being disposed.37*/38export function registerAITextSearchProvider(scheme: string, provider: AITextSearchProvider): Disposable;39}40}414243