Sk606
Sk606

Reputation: 2352

How does VS Code remember trusted workspaces?

I would like to know how VS Code remembers which folders, repos and workspaces are "trusted". That is, where is it stored? In my personal case I want to know for Linux and Mac installations, but others may be interested in where it's stored in Windows too.

enter image description here

Upvotes: 3

Views: 549

Answers (2)

Vasilis Plavos
Vasilis Plavos

Reputation: 583

I found where you can change the settings, and I am posting it here in case that other people are looking for this as well.

Although, I still don't know where this information is stored.

enter image description here

Upvotes: 0

Philippe
Philippe

Reputation: 26592

When you run code . in a directory, vscode create a workspace (For ex. 504186ccde2f6d27a29b695ad0ceb3dc) in

$HOME/.config/Code/User/workspaceStorage # Linux
$HOME/Library/Application Support/Code/User/workspaceStorage # MacOS
C:/Users/YourUser/AppData/Roaming/Code/User/workspaceStorage # Windows

In 504186ccde2f6d27a29b695ad0ceb3dc, there is a file state.vscdb (a sqlite database) which contains a key workspace.trust.startupPrompt.shown

Upvotes: 2

Related Questions