Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Visual Studio Code store information about enabled extensions per workspace?

Visual Studio Code has the option to disable extension globally and enable it only for specific workspace.

Where is this settings saved? In which file exactly?

Locations where I checked but couldn't find it are:

  • user settings file: %APPDATA%\Code\User\settings.json
  • workspace settings file (e.g., for my single-folder project it is located in .vscode/settings.json)
  • extensions installation folder: %USERPROFILE%\.vscode\extensions

Where is this setting?

like image 908
mlst Avatar asked Sep 02 '19 16:09

mlst


1 Answers

Visual Studio Code stores that information in the %APPDATA%\Code\User\workspaceStorage directory. Each subdirectory contains three files: workspace.json, state.vscdb, and state.vscdb.backup.

workspace.json is a JSON file that contains the URI of the workspace folder. Example:

{
  "folder": "file:///c%3A/Users/josia/MEGA/Projects/Programming%20Languages/Python/JSON%20Serialize"
}

state.vscdb (and state.vscdb.backup) are SQLite3 files that contain the workspace information that you are looking for. They can be opened with an SQLite viewer/editor such as DB Browser for SQLite.

like image 198
Gaming32 Avatar answered Oct 02 '22 23:10

Gaming32