-
Notifications
You must be signed in to change notification settings - Fork 73
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
Can't accept inline suggestions #1001
Comments
same issue also on a bare metal Ubuntu 22.04 installation |
same issue on macOS |
I'm unable to use github copilot, or any tab completions when edting ansible files |
@shaneholloman @LarsParTec @jeefberkey |
@hackatoo Great. Simply disabling/enabling the |
I got the exact same issue in the specified environment, please provide user an option to disable lightspeed completely. |
Adding this to my my keybindings.json fixed it for me (Command Palette > Preferences: Open Keyboard Shortcuts (JSON)): {
"key": "tab",
"command": "-ansible.lightspeed.inlineSuggest.accept",
"when": "inlineSuggestionVisible && editorLangId == 'ansible'"
},
{
"key": "escape",
"command": "-ansible.lightspeed.inlineSuggest.hide",
"when": "inlineSuggestionVisible && editorLangId == 'ansible'"
}, |
I finally figured this out! I couldn't use CoPilot suggestions due to the same error when pressing Tab. I fully uninstalled the Ansible extension, restarted VSCode, confirmed CoPilot Tab complete worked, then reinstalled the Ansible extension and it broke again. Finally, I found that in the Gear icon in VSCode, there is a "Keyboard Shortcuts" option (Ctrl+K Ctrl+S) Since I never had Lightspeed enabled in the settings, I'm surprised this binding was set at all, but with it completely conflicting with a more helpful option, I won't miss it. |
Summary
TLDR: When I set
"ansible.lightspeed.enabled": false
and hit tab to accept an inline suggestion in an ansible file, VSCode gives a warning in the bottom right:command 'ansible.lightspeed.inlineSuggest.accept' not found
instead of accepting the suggestion.Looks like it might be caused by the extension's keybindings settings not checking if lightspeed is enabled for tab and escape:
https://github.com/ansible/vscode-ansible/blob/main/package.json#L493-L515
Extension version
2.8.108
VS Code version
1.79.2
Ansible Version
OS / Environment
Windows 10, WSL (Ubuntu 22.04.3 LTS), ansible-lint 6.20.3
Relevant log output
No response
The text was updated successfully, but these errors were encountered: