codeium-chrome icon indicating copy to clipboard operation
codeium-chrome copied to clipboard

Expose a completions API on the window object for websites

Open supriyo-biswas opened this issue 2 years ago • 1 comments

Hi there,

I run a coding playground that uses Codemirror 6, and I'd like this extension to support my website.

I understand that Codemirror 6 is currently not supported. Since supporting Codemirror 6 is likely to involve some work, I'd like to ask for an API, exposed on the window object, which I can trigger with the editor text and provide autocompletions myself.

I understand that you may not want to inject Codeium's content scripts on every website out there, so I'm open to having my website added manually to the list of supported sites. In this request, I'm simply asking for an API to be exposed for websites which will be in the said (and as of yet not implemented) list.

supriyo-biswas avatar Aug 07 '23 14:08 supriyo-biswas

This amounts to us implementing a JavaScript API layer on top of our RPC API layer. I think this would be a longer term effort.

It might be quicker to figure out a CodeMirror 6 solution.

pqn avatar Aug 09 '23 00:08 pqn