microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.46k stars 29.36k forks source link

Changing the window triggers (formate on save action) #208193

Closed CH4R4F closed 8 months ago

CH4R4F commented 8 months ago

Type: Bug

most of the time I work with autosave option enabled, but when i make a change and quickly switch windows (alt + tab), I see the code reformatted and it's anoyying as some times git detectes many changes

to reporoduce:

being quick is important as it doesn't work if i made a change and wait some seconds before changing the windows

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-1270P (16 x 2496)| |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)|15.24GB (2.57GB free)| |Process Argv|--crash-reporter-id 65c379ef-7150-4b11-985e-df147612a2a6| |Screen Reader|no| |VM|0%|
Extensions (30) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 ng-template|Ang|17.3.0 jsoncrack-vscode|Ayk|2.0.2 markdown-preview-github-styles|bie|2.0.4 vscode-tailwindcss|bra|0.10.5 dart-code|Dar|3.84.0 flutter|Dar|3.84.0 es7-react-js-snippets|dsz|4.4.3 rust-syntax|dus|0.6.1 gitlens|eam|14.9.0 prettier-vscode|esb|10.1.0 auto-rename-tag|for|0.1.10 backticks|fra|1.7.0 copilot|Git|1.175.0 copilot-chat|Git|0.13.1 vscode-pull-request-github|Git|0.82.0 mayukaithemevsc|Gul|3.2.4 dot-log|jal|0.1.6 svg|joc|1.5.3 dotenv|mik|1.0.1 debugpy|ms-|2024.2.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.3.1 material-icon-theme|PKi|4.34.0 postman-for-vscode|Pos|0.19.1 rust-analyzer|rus|0.3.1885 sass-indented|syl|1.8.29 even-better-toml|tam|0.19.2 markdown-all-in-one|yzh|3.6.2 material-theme|zhu|3.17.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30992800 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww2:30991134 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 ```
bpasero commented 8 months ago

/duplicate https://github.com/microsoft/vscode/issues/206475

vscodenpa commented 8 months ago

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 similar existing issues. See also our issue reporting guidelines.

Happy Coding!