redhat-developer / vscode-xml

Editing XML in Visual Studio Code made easy
Eclipse Public License 2.0
262 stars 82 forks source link

Extra space in new line after click ENTER at the end of a comment #1019

Closed gengyj16 closed 2 months ago

gengyj16 commented 3 months ago

image click ENTER at the end of a comment that contains space result in extra space in new line

gengyj16 commented 3 months ago

版本: 1.91.1 (user setup) 提交: f1e16e1e6214d7c44d078b1f0607b2388f29d729 日期: 2024-07-09T22:06:49.809Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

angelozerr commented 3 months ago

Could you record a demo with the problem please, I don't understdand very well your issue?

gengyj16 commented 3 months ago

https://github.com/user-attachments/assets/d976fdf6-61b2-422b-832b-0f651da18a00

Demo screen record here. Note the extra space in line 4, which is unexpected.

https://github.com/user-attachments/assets/eb420c77-a15c-4385-9a9a-156a2f2eb828

After disable this extension, this problem is gone. I'm not sure if it is directly related to the extension. Any other details I should provide?

gengyj16 commented 3 months ago

In practice, the content on the line after a comment is generally XML tags that can be indented using formatting. However, extra spaces during editing are not the expected behavior. Am I guessing right?