Path: blob/main/src/vscode-dts/vscode.proposed.aiSettingsSearch.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*--------------------------------------------------------------------------------------------*/45declare module 'vscode' {6export enum SettingsSearchResultKind {7EMBEDDED = 1,8LLM_RANKED = 2,9CANCELED = 310}1112export interface SettingsSearchResult {13query: string;14kind: SettingsSearchResultKind;15settings: string[];16}1718export interface SettingsSearchProviderOptions {19limit: number;20embeddingsOnly: boolean;21}2223export interface SettingsSearchProvider {24provideSettingsSearchResults(query: string, option: SettingsSearchProviderOptions, progress: Progress<SettingsSearchResult>, token: CancellationToken): Thenable<void>;25}2627export namespace ai {28export function registerSettingsSearchProvider(provider: SettingsSearchProvider): Disposable;29}30}313233