Skip to content
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] mirror cursor: issues when pasting new content that is not a tag #87170

Closed
Kirubelabr opened this issue Dec 17, 2019 · 4 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Kirubelabr
Copy link

Issue Type: Bug

Trying to paste additional info i.e. 'class' on existing div tag it adds extra cursor on the closing tag too and good to change to any other HTML tags. But while pasting some CSS class or anything that includes space at the beginning it also adds it on the closing tag and leads to HTML template parse errors.
To reproduce: paste info on HTML div tag with leading space.
i.e. paste class="page-wrapper" in an existing div tag

// first
//

it should only paste content on oppening tag.

Please fix this.

VS Code version: Code 1.41.0 (9579eda, 2019-12-11T18:37:42.077Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 11.84GB (1.98GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
vscode-css-formatter aes 1.0.1
flutter-snippets ale 2.0.0
dart-code Dar 3.7.1
flutter Dar 3.7.1
vscode-eslint dba 2.0.6
githistory don 0.4.11
auto-close-tag for 0.5.6
vscode-react-native msj 0.13.2
awesome-flutter-snippets Nas 2.0.3
material-icon-theme PKi 3.9.2
vscode-scss-formatter sib 1.4.2
code-spell-checker str 1.7.20
vscode-icons vsc 9.6.0
vscode-todo-highlight way 1.0.4
html-css-class-completion Zig 1.19.0
@vscodebot
Copy link

vscodebot bot commented Dec 17, 2019

@aeschli aeschli changed the title Auto-complete paste on html closing tag [html] mirror cursor: issues when pasting new content that is not a tag Dec 18, 2019
@aeschli aeschli assigned octref and unassigned aeschli Dec 18, 2019
@jsgoupil
Copy link

jsgoupil commented Jan 3, 2020

#87067

@gjsjohnmurray
Copy link
Contributor

/duplicate

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 10, 2020
@vscodebot
Copy link

vscodebot bot commented Jan 10, 2020

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 10, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

5 participants