"Add Database Source to Workspace" does not preserve loaded database
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 52/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- typescript, vscode
研究方向
使用以資料夾為基礎的 CodeQL 資料庫,透過「Add Database Source to Workspace」動作重現問題,然後追蹤 VS Code 工作區重新載入後有哪些內容被持久化。比較重新開啟工作區前後的資料庫清單。當先前載入的資料庫仍列在清單中,且 AST 檢視器無需手動重新新增即可使用該資料庫時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
When using the "Add Database Source to Workspace" action and the current folder is re-opened as VS Code workspace, the opened database is not preserved; the list of databases is empty afterwards.
Version
Extension:
CodeQL extension version: 1.17.7
CodeQL CLI version: 2.25.1
Platform: win32 x64
VS Code:
Version: 1.113.0 (user setup)
Commit: cfbea10c5ffb233ea9177d34726e6056e89913dc
Date: 2026-03-24T15:07:18+01:00
Electron: 39.8.3
ElectronBuildId: 13620978
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
To reproduce
- Open a regular folder in VS Code
- Load a CodeQL database (folder-based)
- Right-click the database and select "Add Database Source to Workspace"
ℹ️ As expected: The VS Code window is reloaded as workspace
ℹ️ As expected: The database source was added
❌ Bug: The CodeQL database added in step 2 is not listed anymore as database, you have to manually re-add it
Expected behavior
After using "Add Database Source to Workspace" the database is still loaded
Additional context
The current behavior can be quite confusing. For example, I wanted to browse the AST of a database source file, so I loaded the database, selected "Add Database Source to Workspace", opened the source file and tried to open CodeQL's AST viewer. But it failed, saying that it could not find the database for the source.
Only then I noticed that the list of databases was empty (as mentioned in the description above).
- 主要語言
- TypeScript
- 星號
- 539
- 分支
- 240
- 平均合併
- 2 天 6 小時
- 30 天內合併 PR
- 29
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/vscode-codeql 的其他 Issue
-
bug VSCode
難度 2/5 1-3 小時 新手友好度 68/100
github/vscode-codeql#4471 · 1 則留言 ·
-
bug enhancement VSCode
難度 2/5 1-3 小時 新手友好度 68/100
github/vscode-codeql#592 · 2 則留言 ·
-
enhancement VSCode
難度 3/5 1-2 天 新手友好度 55/100
github/vscode-codeql#4432 · 1 則留言 ·
-
bug VSCode
難度 3/5 1-2 天 新手友好度 64/100
github/vscode-codeql#4339 · 1 則留言 ·
-
CLI test failure 未關閉cli-test-failure
難度 3/5 1-2 天 新手友好度 32/100
github/vscode-codeql#4330 · 4 則留言 ·
查看 github/vscode-codeql 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難度 2/5 1-3 小時 新手友好度 78/100
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
-
calcite-components needs triage refactor
難度 2/5 1-3 小時 新手友好度 75/100
Esri/calcite-design-system#15203 ·
-
難度 2/5 1-3 小時 新手友好度 90/100
danielmiessler/LifeOS#2218 ·