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

report bug with html js reformatting function, adding spaces between single character compasison operators: '?.' '??', #199995

Closed
garythomanncogc opened this issue Dec 5, 2023 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@garythomanncogc
Copy link

Type: Bug

'Format Selection As HTML' (right click mouse menu)

let result = name ?? text; becomes let result = name ? ? text;

let name = car?.name; becomes let name = car ? .name;

VS Code version: Code 1.84.2 (1a5daa3, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz (8 x 2611)
GPU Status 2d_canvas: enabled
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 39.71GB (26.80GB free)
Process Argv --crash-reporter-id 08e77962-c7c0-47e0-9f49-dd178b1f1ea4
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
format-selection-as-html adr 2.3.0
prettier-vscode esb 10.1.0
go gol 0.40.0
vs-code-runner Har 2.0.1
pretty-formatter mbl 0.2.4
python ms- 2023.20.0
vscode-pylance ms- 2023.11.10
vscode-beautify vsc 1.5.12
vim vsc 1.27.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30887144
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

@IllusionMH
Copy link
Contributor

/needsMoreInfo

Is it reproducible with all extensions disabled?
You can try this with F1 and >Developer: Reload Window With Extensions Disabled

@vscodenpa vscodenpa added the ~info-needed Issue requires more information from poster (with bot comment) label Dec 5, 2023
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@vscodenpa vscodenpa added info-needed Issue requires more information from poster and removed ~info-needed Issue requires more information from poster (with bot comment) labels Dec 5, 2023
@garythomanncogc
Copy link
Author

garythomanncogc commented Dec 5, 2023 via email

@aeschli
Copy link
Contributor

aeschli commented Dec 5, 2023

The command is provided by the format-selection-as-html extension.
Please file the issue there. https://github.com/AdrianWilczynski/FormatSelectionAsHtml/issues

@aeschli aeschli closed this as completed Dec 5, 2023
@IllusionMH
Copy link
Contributor

IllusionMH commented Dec 5, 2023

You cannot use email to attach images, instead you should use github.
However you've used report issue from VS Code and it provides list of extensions.

And you have too much formatting extensions.

vscode-beautify - this is fork of old extension that has same issue in original repo HookyQR/VSCodeBeautify#415
So you should report this issue in new extension's repo as well

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants