redhat-developer/vscode-xml

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

Closed this issue · 4 comments

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

版本: 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

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

09-02-26.mp4

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

09-03-49.mp4

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?

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?