-
Notifications
You must be signed in to change notification settings - Fork 648
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
Final newline insertion without wikilinks moves cursor #1361
Comments
Thanks for reporting this, super odd. A couple of questions:
|
Hi @riccardoferretti, thanks for your response.
This leads me to think that the issue is indeed in the formatter that runs on document save. If you by chanhe know where that is located in this code-base I could also look into that myself. As an additional note (and to make the behaviour even more curious) : The following has no issues
and the following has:
|
@SanderBeekhuis could you list the active extensions in your workspace? |
Describe the bug
When editing a markdown file and pausing for ~1sec with the cursor on the final position of the file the cursor jumps to a newly inserted newline.
This leads to the sentence to be broken into a new part when i continue typing.
I don't mind the insertion of newline that much (tough I don't like it either), but the movement of the cursor disturbs my flow.
If I can contribute in any way to solve this issue I would be willing to look into it and thanks for the hard work on the extension.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
When editing a markdown file, where
|
will indicate cursor position.Then after a brief pause (~1 sec) a newline is inserted and the cursor jumps to this new line.
Like this
This behavior does not happen when:
Expected behavior
As a user I expected the cursor position to stay the same, but I'm seeing it move down one line.
As a user I'm ambivalent about the insertion of a new trailing newline, but I would expect foam to not change files unnecessarily.
Screenshots or Videos
No response
Operating System Version
Seen this happen on both Linux and Windows (reporting for linux)
Visual Studio Code Version
Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:16:23.416Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.1.52-valve16-1-neptune-61
Additional context
No response
The text was updated successfully, but these errors were encountered: