microsoft / vscode

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

Opening a new file closes the previous file #212684

Closed Ed-CMI closed 4 months ago

Ed-CMI commented 4 months ago

Type: Performance Issue

When I have one file open in VS to view and open a second file the first file closes. This just started after an upgrade. How do I stop this from occuring?

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i9-12950HX (24 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)|63.69GB (34.74GB free)| |Process Argv|--crash-reporter-id 2860479b-0f6c-41a5-a035-267f62543b3f| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 104 4944 code main 0 84 14960 fileWatcher [1] 0 41 16648 utility-network-service 0 97 16792 window [2] (Issue Reporter) 0 92 20188 ptyHost 0 7 4540 conpty-agent 0 78 23224 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\bq824\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 164 25032 gpu-process 0 29 28696 crashpad-handler 0 96 29528 shared-process 0 167 29836 extensionHost [1] 0 182 24192 electron-nodejs (bundle.js ) 0 85 26748 "C:\Users\bq824\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\bq824\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=29836 0 210 32060 window [1] (Settings - full_conan - Visual Studio Code) ```
Workspace Info ``` | Window (Settings - full_conan - Visual Studio Code) | Folder (full_conan): 198 files | File types: jinja2(73) py(31) yml(13) txt(3) json(3) gitignore(2) | conf(1) md(1) | Conf files:; ```
Extensions (18) Extension|Author (truncated)|Version ---|---|--- csdevkit|ms-|1.5.20 csharp|ms-|2.28.11 vscode-dotnet-runtime|ms-|2.0.5 vscodeintellicode-csharp|ms-|2.1.11 debugpy|ms-|2024.6.0 python|ms-|2024.6.0 vscode-pylance|ms-|2024.5.1 jupyter|ms-|2024.4.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 cmake-tools|ms-|1.17.17 cpptools|ms-|1.20.5 cpptools-extension-pack|ms-|1.3.0 notepadplusplus-keybindings|ms-|1.0.7 cmake|twx|0.0.17 vstuc|vis|1.0.1 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 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:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 showvideoc:31016891 dsvsc021:30996838 jg8ic977:31013176 fchga941:31046352 dwnewjupytercf:31046870 ```
gjsjohnmurray commented 4 months ago

Please read about Preview Mode at https://code.visualstudio.com/docs/getstarted/userinterface#_preview-mode

VSCodeTriageBot commented 4 months ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!