castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 26 forks source link

Conflicting VS Code keybindings to search Ruby documentation #261

Open Haltarys opened 1 year ago

Haltarys commented 1 year ago

Describe the bug I can't use the keyboard shortcut Ctrl+Shift+R to refactor my code because it is shadowed by this extension.

To Reproduce

  1. Install the extension.
  2. Open a text editor (with Ctrl+N for example)
  3. Press Ctrl+Shift+R. A text input appears at the top instead of showing the refactor pop-up.

Expected behavior I should be able to use the extension AND the refactor keyboard shortcut.

Potential solution Either change the keybinding to another combination altogether or add a when expression to restrict it to a context where it does not shadow any other keybindings.

Platform:

castwide commented 1 year ago

Sigh. I originally chose that shortcut because it didn't have any native assignments. Now it has three. I'll see if there's a configuration that makes sense for it.

In the meantime, you can delete or reassign it in your preferences.

  1. Go to the keyboard shortcuts page ("Preferences: Open Keyboard Shortcuts" in the command palette)
  2. Search for "solargraph"
  3. Highlight the "Solargraph: Search Ruby Documentation" row and hit delete