Open simonz4031 opened 2 months ago
@simonz4031 is this still happening on 0.8.51? I'm on a Mac on 0.8.51 and seem to be able to use the URL context provider ok. Wondering if any other details might help me reproduce
@simonz4031 is this still happening on 0.8.51? I'm on a Mac on 0.8.51 and seem to be able to use the URL context provider ok. Wondering if any other details might help me reproduce
Yes, it still happened on 0.8.51, the predefined content provider like url able to show the query input box. only the custom content provider won't work, you can use the example in https://docs.continue.dev/customization/context-providers
or use mini configuration something as
onst GitHubPRsContextProvider: CustomContextProvider = {
title: "github-prs",
displayTitle: "GitHub PRs",
description: "Search and reference GitHub Pull Requests",
type: "query",
getContextItems: async (
query: string,
extras: ContextProviderExtras
): Promise<ContextItem[]> => {
// For now, just return a dummy item to verify it's working
return [{
name: "Test PR",
description: `Searched for: ${query}`,
content: `This is a test PR for the query: ${query}`,
}];
},
};
export function modifyConfig(config: Config): Config {
if (!config.contextProviders) {
config.contextProviders = [];
}
config.contextProviders.push(GitHubPRsContextProvider);
return config;
}
Before submitting your bug report
Relevant environment info
Description
No input box after select the custom content provider. but the 0.0.64 of idea and 0.8.47 of vsc works fine 0.8.47:
0.8.48+
To reproduce
@
and select the custom provider, no query input box shown up.Log output