0

Small problem with VS Code, when I open the program it always opens like 6000 tabs.

Problem is, I wanted to replace a string in the files, and it searched through all files. As it turns out, these were around 6000 files. When I use the command CTRL+K W it will ask me to save, don't save, or cancel. I am trying to get this solved, first tried to close all others but still same dialog. I uninstalled VS Code in the hope that it would stop opening these files, no luck. Furthermore, I searched the Regedit to find any information about the program, there is a lot, but I cannot find the file that is responsible for opening all these files.

The files don't exist anymore except in some memory of VS Code.

Does anyone know a way to solve this?

Jean Paul
  • 21
  • 3
  • if you delete the sqlite3 db (and the backup) belonging to the workspace all tabs are gone, search the correct folder in `.....\AppData\Roaming\Code\User\workspaceStorage` – rioV8 Sep 20 '22 at 11:42
  • can't you use `File > Save All` and command `View: Close All Editors` – rioV8 Sep 20 '22 at 11:47

2 Answers2

0

Did you try to set

"window.restoreWindows": "none"

in the settings and restart vscode?

Bastian
  • 438
  • 4
  • 11
0

I found a solution.here

I delete some folders inside '\AppData\Roaming\Code\Backups'.

Now VS Code runs normal again.

Jean Paul
  • 21
  • 3