ow-- / vscode-subword-navigation

Provides subword navigation for Visual Studio Code.
MIT License
51 stars 10 forks source link

Somehow getting into a state where ctrl+arrow stops working after some time. #19

Open xinaesthete opened 7 years ago

xinaesthete commented 7 years ago

I've been using the extension fine for a while now. In the past couple of days, I kept finding that after a little while, pressing ctrl+left/right appears to act like a no-op. When I disable the extension when it's in this state and then try to use one of the shortcuts, then it prints an error about the corresponding command not being found. Removing the associated keybindings then makes it behave as vanilla again.

I had thought that maybe I was inadvertently putting the editor into a state where ctrl was supposed to do something else, but now it seems that somehow it's getting into a state where it is calling your command, but nothing happens (at least, nothing readily apparent to the user).

This is localised to a VSCode window, but persists across tabs.

I'm on VSCode v 1.10.2.

xinaesthete commented 7 years ago

It seems to have occurred now in a situation where the Subword Navigation extension is disabled. Happened just after I pasted something. Ho hum.

ow-- commented 7 years ago

Hey man. Sorry about the delay, triaging at home as well after a day at work, you know.

Have you gotten any further sense of where the issue may lie?

xinaesthete commented 7 years ago

Not sure. I had the extension disabled for a little while, back on for a little while now... don't think I've had the problem since. If I think of anything, or encounter the bug again, I'll post here. I'll try to remember to update if after more use it continues to appear fine, too.

SHRoberts91 commented 7 years ago

hey @xinaesthete , dunno if this is the same, but I was having an issue where it wasn't working, and I at least found one reason why it wasn't working for me on my Mac. ctrl+left and ctrl+right are bound to switch between windows of Code if you have multiple windows open. I switched from that specific command and it worked fine. But I would prefer it to be bound to ctrl+left and ctrl+right, any idea how to get around this issue, @ow-- ?

UPDATE: Just saw issue #14, so this binding isn't in the keyboards shortcuts so that's why they didn't see it. And using alt+left or right is fine, but I'd prefer having both options available of subword and fullword navigation, ya know? 😄

xinaesthete commented 7 years ago

I hadn't been using this extension (at least, not on all of my machines, don't remember exactly). Just enabled on this one and we'll see if I have the issue again, but I don't think @SHRoberts91 was referring to the same issue anyway.

mcgwiz commented 6 years ago

Happening to me as well. Seems it might be related to editing JSX files. Editing a keybinding and then editing it back seems to wake everything back up and restore functionality.