Skip to content
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

Fix: Respect autocomplete enabled setting for keyboard shortcut trigger #6498

Closed
wants to merge 1 commit into from

Conversation

arafatkatze
Copy link
Collaborator

@arafatkatze arafatkatze commented Jan 1, 2025

Solves Linear

Description:

Currently, the keyboard shortcut (Ctrl+Alt+P/Control+Option+P) triggers Cody autocomplete even when autocomplete is disabled via "Disable Cody Autocomplete". This PR fixes the issue by checking if autocomplete is enabled before allowing the keyboard shortcut to trigger.

Changes:

Added check for isImplicitAutocompleteEnabledForEditor in TriggerAutocompleteActionHandler
Ensures consistent behavior between automatic and manual autocomplete triggers

Test plan

  1. Disable Cody Autocomplete
    Try triggering autocomplete with Control+Option+P (Mac) or Ctrl+Alt+P (Windows/Linux)
  2. Verify no autocomplete suggestions appear
    Enable Cody Autocomplete

Changelog

@arafatkatze arafatkatze requested a review from pkukielka January 1, 2025 10:40
@arafatkatze
Copy link
Collaborator Author

image

@arafatkatze arafatkatze closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant