-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cursor moved during typing #396
Comments
Hello, thank you for your feedback! I couldn't reproduce a jumpy cursor when editing a .bb. Maybe it only appears in specific conditions? |
I have the same behavior since the last update. For me it happens when I was trying to change something from a python task. |
Indeed I was able to reproduce this, but it's not systematic.
We'll investigate this further. May be due to a new way vscode handles tab transitions, or some of the companion extensions (bash-ide, python, shellcheck). bash-ide has not been updated recently, so that's not the issue. Disabling shellcheck slightly improves responsiveness but the bug is still present. So it's likely within our tab management that broke. Downgrading this extension to 2.7 did not solve the issue. I reproduced the same with code v1.92.2 which is 6 months dated. I'd say it's a random issue that we may have had for some time apparently. We should bring up the debugger and see if it's linked to bash or python specifically. It looks like we remember a cursor position and a race condition replays an event to teleport there even though its outdated and we forgot to clean it up. TEMPORARY WORKAROUND (Outdated, a better one is presented bellow) I was able to figure it is linked to our "embedded languages files feature". As a workaround, you can disable this feature through the setting bitbake.disableEmbeddedLanguagesFiles. You'll lose some features within the bash/python sections like go to definition and error highlights. |
Recording_1.mp4Any text of bitbake edit could happened |
Yes, with additional testing, it also requires to parse the file once. |
I'm having the exact same issue. Cursor jumps randomly on typing/pasting/new-line. Disabling the extension removes the issue. |
I found an interference with another extension: Disable the EditorConfig extension or Downgrade it to 1.16.7For now, you can disable that extension and implement the file formatting parameters through the VSCode settings. Further investigation will be needed to make this extension and the EditorConfig compatible by cross-debugging both code bases. Thanks @idillon-sfl for testing on your side |
Probably linked to:
For our embedded languages features, we apply vscode edits behind the scene in temporary background tabs that we edit/save/close. The way the editorconfig extension also tries to apply edit when we save those background files is likely mixing cursor positions. Apparently EditorConfig extension v1.17 broke other tools like: |
Tested with EditorConfig extension branch delay-newline which fixed the issue. |
EditorConfig extension v1.17.1 was just released. I tested it on my side and it fixed the bug. |
Describe the bug
Cursor moved during typing
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: