formulahendry / vscode-auto-close-tag

Auto Close Tag for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag
MIT License
179 stars 53 forks source link

Wrong HTML comment open tag if language is markdown #171

Open crystalfp opened 5 years ago

crystalfp commented 5 years ago

Issue Type: Bug

If the file language is HTML, after typing <!-- the extension correctly complete it to <!----> with the cursor in the middle.

But if the file language is markdown, where I use HTML comments to exclude parts of the text, the comment opening bracket is changed to <> so after I add the comment start tag, the end result is <!-->

I have added markdown to auto-close-tag.activationOnLanguage

BTW, I'm not sure if this is a bug or a feature request. Thanks! mario

Extension version: 0.5.6 VS Code version: Code 1.40.0 (86405ea23e3937316009fc27c9361deee66ffbf5, 2019-11-06T17:02:13.381Z) OS version: Windows_NT x64 10.0.18362

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)| |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)|15.81GB (5.13GB free)| |Process Argv|--file-uri file:///d%3A/Montessori/Libro%20-%20Tecnologia%20in%20famiglia/Tecnologia%20in%20famiglia.code-workspace| |Screen Reader|no| |VM|0%|