vscode-clang-format icon indicating copy to clipboard operation
vscode-clang-format copied to clipboard

.mjs file format break string template

Open cjbd opened this issue 5 years ago • 0 comments

copied from 80052

Issue Type: Bug

hello,

for below code:

console.log(`Today : ${todaysDate}`);

when using clang-format tool, it changes to

console.log(`Today : $ { todaysDate }`);

which breaks string template

VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z) OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.41GB (2.54GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
vscode-eslint dba 1.9.1
python ms- 2019.8.30787
cpptools ms- 0.25.0
vscode-typescript-tslint-plugin ms- 1.2.2
debugger-for-chrome msj 4.11.7
clang-format xav 1.9.0

cjbd avatar Aug 30 '19 03:08 cjbd