-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Codeium: Disable" in the command palette doesn't work #10
Comments
Same here on Mac OS. |
Same here in elementary OS 7.1 (based on Ubuntu 22.04.3 LTS) |
Same here with Linux Mint (based on Ubuntu 22:04.1 LTS) |
Would be pretty cool if someone responded. |
Okay, so I'm not a Python guy, but I decided to see if I could figure this out. I installed Extract Sublime Package, and used it to extract Codeium.sublime-package. This placed the extracted package in my "Packages" folder, as opposed to "Installed Packages" folder, where Codeium.sublime-package resides. Sublime then prefers the extracted package, allowing me to tinker with the files and see the effects of my changes as I make them. I discovered on line 74 of
As far as I can tell, this turns completion on regardless of whether it has been turned off by the user. In any case, aside of the fact the Codeium should surely not be making a request if it has been disabled(?), simply commenting this line out has, in my testing, resulted in the "Codeium: Disable" and "Codeium: Enable" commands in the command palette working as expected - no more code completion once I've run Codeium: Disable, but code completion is restored after running Codeium: Enable. HOWEVER, a side-effect I've noticed is that, with this line commented out, when code completion is enabled, my escape key no longer rejects a suggestion (backspace does, though). Could possibly be something to do with line 132 of the same file, within the
It's late here, I'll dig more into it tomorrow, time permitting, and report further findings. |
Turns out the above solution not only broke But I have found the answer. If you've commented out line 74 of
Append ' == true', so it looks like this:
et voilà, Enable/Disable Codeium now works as it should, without breaking any functionality. Bonus tip: edit Default.sublime-keymap and change the binding for
|
@fortenforge, @mochaaP, @2022tgoel - can one of you test + apply the abovementioned fix, or do I need to figure out how to repackage Codeium.sublime-package and submit a PR? |
@chris3eleven thank you so much man! |
Finally I tried and for me your solution works pretty well. Again, thanks! Now I chan change to sublime from vscode xD |
In the end, what worked best for me was to create a plugin that manages the enable and disable of Codeium. The code is this:
Now you just need to assign a keybinding to this command:
|
As per title, the option to disable the plugin doesn't work, it relentlessly continues to make suggestions. Restarting ST isn't helpful.
I'm running Sublime Text 4168 on Kubuntu 22.04.
Thanks for your work!
The text was updated successfully, but these errors were encountered: