最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

multiroot workspaces: code-workspace files always with empty content - Stack Overflow

programmeradmin0浏览0评论

Let's start with this. Multiroot workspaces always work with no issues. This is just to know if I have some misconfiguration. I have tested several times with extensions disabled and digged over the internet on why does this happens

Versions Version: 1.97.2 Commit: e54c774 Date: 2025-02-12T23:20:35.343Z Electron: 32.2.7 ElectronBuildId: 10982180 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Darwin arm64 24.3.0

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

Save as workspace Select a name I end up with a code-workspace file empty like this:

{
  "folders": [],
  "settings": {}
}

So please tell me where is my misconfiguration or where can I find the list of open files and folders and extensions used. Thank you

Let's start with this. Multiroot workspaces always work with no issues. This is just to know if I have some misconfiguration. I have tested several times with extensions disabled and digged over the internet on why does this happens

Versions Version: 1.97.2 Commit: e54c774 Date: 2025-02-12T23:20:35.343Z Electron: 32.2.7 ElectronBuildId: 10982180 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Darwin arm64 24.3.0

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

Save as workspace Select a name I end up with a code-workspace file empty like this:

{
  "folders": [],
  "settings": {}
}

So please tell me where is my misconfiguration or where can I find the list of open files and folders and extensions used. Thank you

Share Improve this question asked Mar 4 at 10:36 Sverre JørnSverre Jørn 1492 silver badges7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

After some research done, as of 2025 workspaces created as .code-workspace files:

If you search for the file where the opened files are for a workspace on macos, you will need to search for it on this folder

~/Library/Application\ Support/Code/User/workspaceStorage

And you would do it like this:

grep -RHin part-of-filename ~/Library/Application\ Support/Code/User/workspaceStorage/*

You will open the state.vscdb file with some any sqlite3 compatible app. I used the base app and looked into the ItemTable and then the relevant key is: history.entries

NOTE:

What I still don't know is how to store the opened file and workspace settings on the .code-workspace itself so I can make it portable. Keep in mind you will lose all opened files or configuration if you move your code-workspace file to a different file name or folder path.

发布评论

评论列表(0)

  1. 暂无评论