import { BaseContextProvider } from "../index.js";
class SearchContextProvider extends BaseContextProvider {
    static description = {
        title: "search",
        displayTitle: "Search",
        description: "Use ripgrep to exact search the workspace",
        type: "query",
    };
    async getContextItems(query, extras) {
        const results = await extras.ide.getSearchResults(query);
        return [
            {
                description: "Search results",
                content: `Results of searching codebase for "${query}":\n\n${results}`,
                name: "Search results",
            },
        ];
    }
}
export default SearchContextProvider;
