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

Broken navigation with VSCode VIM #407

Closed
Krakazybik opened this issue Feb 11, 2025 · 9 comments · Fixed by #413
Closed

Broken navigation with VSCode VIM #407

Krakazybik opened this issue Feb 11, 2025 · 9 comments · Fixed by #413

Comments

@Krakazybik
Copy link

In version 0.17.0, Vim navigation is broken: the cursor moves to the same position every time INSERT mode is activated.

It might be related to: #397.

Screen.Recording.2025-02-11.at.20.31.04.mov

The following setting is configured:

"files.autoSaveDelay": 10000

Steps to reproduce:

  1. Start editing text.
  2. Switch to any other window (with the setting to save on window change) or wait for auto-save.
  3. Enter INSERT mode at any position.

Expected result:

The cursor in INSERT mode remains at the same position as in NORMAL mode.

Actual result:

The cursor always moves to the same saved position.

@SunsetTechuila
Copy link
Member

SunsetTechuila commented Feb 11, 2025

hello, I think I understand the issue, but I'm unable to reproduce it

could you please test this change: https://github.com/editorconfig/editorconfig-vscode/tree/delay-newline?

EditorConfig-0.17.1.txt (extension changed to .txt because github doesn't allow to send vsix files, should be renamed back to EditorConfig-0.17.1.vsix)

alternatively you can build it yourself: git clone & npm i & npx vsce package and you will have a vsix file

@Krakazybik
Copy link
Author

Checked EditorConfig-0.17.1, the issue is fixed.

@SunsetTechuila
Copy link
Member

Thank you

@YazminMelgoza
Copy link

I was having this same issue.

@SunsetTechuila
Copy link
Member

SunsetTechuila commented Feb 18, 2025

proper fix requires microsoft/vscode#241075 to be resolved

see #410 (comment)

@diegodorado
Copy link

@SunsetTechuila , I am confused... does version 0.17.1 fix the issue? or is microsoft/vscode#241075 required?

meanwhile i just disabled the extension b/c the editor is unusable in this state.

thanks!

@SunsetTechuila
Copy link
Member

I am confused... does version 0.17.1 fix the issue

kinda, I suggest you to install one of the older versions instead

or is microsoft/vscode#241075 required?

for a proper fix - yes. I have already opened a PR to VSCode to resolve this issue

@Spongman
Copy link

Spongman commented Feb 19, 2025

why not just revert whatever change since 0.17.1 broke the extension, release it, and then release whatever the 'proper' fix is when vscode has released that?

@SunsetTechuila
Copy link
Member

v0.16.7 & v0.17.0 introduced different issues while trying to fix #330. I don't think it makes sense to revert those changes to reopen the original issue. PR has been already merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants