-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Can't accept code hints with Enter or Tab if using Emmet plugin #2455
Comments
This is a related case of issue reported in #2353. The preferred fix would be for CodeHintManager to get the key event before the Editor. Otherwise, I think we'd need an API call that Commands could use to determine if Code Hints are displayed (or more generically, if they can execute command). |
I don't think this is important for sprint 19. It needs some research. |
@redmunds: It seems like CodeHintManager would have to get the key not just before the Editor, but before KeyBindingManager too (otherwise it'll still get fed to the command Emmett registered, and then swallowed). That's way trickier since KBM's listener gets called so early (capture on document, I think). |
@sergeche has a strong suggestion about issue: emmetio/emmet#146 (comment) |
I installed Bracket Sprint 19, issue still there. |
OK, I made a few updated for Brackets plugin:
|
@sergeche Thanks for workaround and the suggestion about contexts for keybindings. We'll take a look at that. |
@sergeche I forked your work and tested. It works by all means, even with tab key and did not break intellisense or finding replacing. Issue solved. Thank you for your great effort and all interest. |
@ujjaval is this fixed? |
It looks like #4110 might make it so @sergeche can remove the hack in the Emmet plugin--that change basically makes it so we're doing what @peterflynn suggests above (getting the key event before the default key binding handling). @sergeche, if you feel like checking out that pull request and seeing if it makes it you can remove the hack, that's great, otherwise you can wait until we've merged it to try that out. |
Using Release 1.5 build 1.5.0-16538 and latest Emmet 1.2.2 and this issue is still existing. Any ideas for the workaround? |
Started using Emmet plugin in Brackets (Sprint 18) and noticed that intellisense gets affected by the plugin.
As I type
<sc
for<script>
, options show below for matching tags. But when I selected one by the down arrow key and pressed Enter,instead of completing
<sc
, it inserted new line in the code, without completing<script
. Happened with other tags too.Auto completion using Tab key also doesn't work, as Emmet plugin inserts tag for incomplete word. That is, type
<sc
and press tab key, instead of inserting<script
, it inserts<<sc></sc>
due to Emmet plugin.Removed the Emmet plugin and tags started to auto complete again using Enter/Tab.
The text was updated successfully, but these errors were encountered: