-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
[html] Pasting HTML code adds extra closing tag on first line #227859
Comments
Can confirm, reproducable with the following steps.
VSCode adds a closing tag seen here...
Currently can only be resolved with Settings > HTML: Auto Closing Tags (Disable). Version: 1.93.0 (Universal) |
There was a change in how the paste is reported on the extension side. @hediet Any idea if that change was intended? |
Sorry, I was wrong, nothing has changed with the The bug is caused by
There can be eol-characters in lastChange.text . The new Position is then not valid with a character offset far off.
We only see this now as the last HTML service update (ce9ce04) included an update of the The workaround for users is to manually remove the inserted code, or, if that's too much of a hassle, turn off the auto close feature: |
Has this been fixed in version 1.94 with #228662? This issue is still open. |
Had the issue, which led me here. Noticed the update icon after seeing the last comment. Help: About is now showing 1.94.0. Still had the code on my clipboard, pasted it again, and no ending tag was added. |
Thanks, @dailytabs for mentioning that. I can confirm that after updating to 1.94.2, the bug seems to be fixed for me too. I'm so happy because this was so annoying. I kept wondering why my code changes were so weird and forgetting the extra closing tag it kept inserting. Thanks, all! |
Appears to be fine now, thanks everybody!
…________________________________
From: LucasOe ***@***.***>
Sent: Friday, October 4, 2024 6:19 AM
To: microsoft/vscode ***@***.***>
Cc: nickbstudy ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/vscode] [html] Pasting HTML code adds extra closing tag on first line (Issue #227859)
Has this been fixed in version 1.94 with #228662<#228662>? This issue is still open.
—
Reply to this email directly, view it on GitHub<#227859 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AX754VLTRG4FTWIM2GOXPULZZV4A5AVCNFSM6AAAAABNZTOZ46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRHEZTGMBSHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Type: Bug
Paste something like
hello world
and it will automatically insert a closing tag for the first line, showing up as:
hello world
VS Code version: Code 1.93.0 (4849ca9, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (17)
A/B Experiments
The text was updated successfully, but these errors were encountered: