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

"Retry as admin" don't respect "File: Save without Formatting" #207401

Closed
bansan85 opened this issue Mar 12, 2024 · 1 comment
Closed

"Retry as admin" don't respect "File: Save without Formatting" #207401

bansan85 opened this issue Mar 12, 2024 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-io File I/O insiders-released Patch has been released in VS Code Insiders verified Verification succeeded workbench-run-as-admin Issues concerning running as administrator
Milestone

Comments

@bansan85
Copy link

Type: Bug

Open Visual Studio Code without admin privilege.

In settings, check "Format On Save".

Open a .html file that need admin privilege.

Insert html code that need to be formatted.

Save with "File: Save without Formatting"

Visual Studio Code will show a message box with "Retry as admin..."

Click on "Retry as admin..."

Validate Windows popup warning about admin rights.

The text will be formatted before be saved. (should not)

The problem also appears with cmake-format (I didn't test more formatter).

VS Code version: Code - Insiders 1.88.0-insider (9c3cc8b, 2024-03-12T05:49:05.934Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.67GB (18.14GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
vsaa593cf:30376535
py29gd2263:30784851
c4g48928:30535728
a9j8j154:30646983
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
2e7ec940:30986170
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
d6fi2104:30968146
pydisww1:30981707
cppperfnew:30980852
d34g3935:30961436
fegfb526:30952798
bg6jg535:30979844
ccp1r6:30958151
pythonait:30973460

@jrieken jrieken assigned bpasero and unassigned jrieken Mar 12, 2024
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug file-io File I/O workbench-run-as-admin Issues concerning running as administrator labels Mar 12, 2024
@bpasero bpasero added this to the March 2024 milestone Mar 12, 2024
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Mar 12, 2024
@bansan85
Copy link
Author

Fixed with vscode insiders. Thanks !

@bpasero bpasero added the verified Verification succeeded label Mar 13, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug file-io File I/O insiders-released Patch has been released in VS Code Insiders verified Verification succeeded workbench-run-as-admin Issues concerning running as administrator
Projects
None yet
Development

No branches or pull requests

4 participants