continue icon indicating copy to clipboard operation
continue copied to clipboard

Query input box stop working of custom content provider with config.ts after 0.8.47 of visual studio code and 0.0.64

Open simonz4031 opened this issue 1 year ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: Mac
- Continue: 0.0.68 on intellij and 0.8.48+ of visual studio code
- IDE: Both
- Model: Any
- config.ts:
  
const RagContextProvider: CustomContextProvider = {
  title: "rag",
  displayTitle: "RAG",
  description:
    "Retrieve snippets from our vector database of internal documents",

  getContextItems: async (
    query: string,
    extras: ContextProviderExtras,
  ): Promise<ContextItem[]> => {
    const response = await fetch("https://internal_rag_server.com/retrieve", {
      method: "POST",
      body: JSON.stringify({ query }),
    });

    const results = await response.json();

    return results.map((result) => ({
      name: result.title,
      description: result.title,
      content: result.contents,
    }));
  },
};

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: image 0.8.48+

To reproduce

  1. write a custom content provider with query of type
  2. install 0.8.48+ in vsc or 0.0.68 in idea
  3. Type @ and select the custom provider, no query input box shown up.

Log output

can't find log in console and output tab of continue

simonz4031 avatar Sep 09 '24 17:09 simonz4031