broadinstitute / wdl-ide

Rich IDE support for Workflow Description Language
BSD 3-Clause "New" or "Revised" License
40 stars 8 forks source link

VS Code: prevent shift+enter keybind conflicts #17

Closed vincent-czi closed 3 years ago

vincent-czi commented 3 years ago

Addresses #16. Tightens up scope of when the editor.action.codeAction command fires from keybinding. More restrictive keybinding (use alt as well) since shift+enter is very common. Adds when clauses so only happens when editor has focus and language is wdl.

[My motivation for this was specifically because it was breaking "Find Previous" (which also uses shift+enter) due to the fact that wdl-ide keybindings have precedence because they're an Extension.]