Open li-xin-yi opened 9 months ago
Adding @kevinzlu to take a look if he has time, since I am OOO right now.
@li-xin-yi is this PR still a WIP or is it ready for review? I was not able to get the contextMenu item when I tested it + failed to get completions in Colab.
Hi @kevinzlu , Thanks for testing.
Update: generate a regex to match the current primary domain.
This PR is still in process, I just posted it to know if it understand the requirement correctly.
Add a contextMenu option to control the behavior on the current tab:
Three status:
Implementation issues:
contentScript.ts and the injected script.ts are running independently, so we have to construct so many messages to communicate between different environments. Temporarily, the "disabled" feature is hacked by passing the global variable
codeium_disabled
and let the completion provider in Monaco/CodeMirror be dummy when observingcodeium_disabled
becomefalse
, instead of implementing a real clean up script to unregister all completion handlers. It may be problematic, for example, Colab supports inline completion for some eligible users. If we turn off the Codeium extension, the built-in colab completion is also disabled.For issue #49 (for now, only 1 and 3 are done)