Add support for viewing unit test databases with the AST viewer
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- typescript, vscode
- 領域
- devtools
研究方向
先在 CodeQL VS Code 擴充功能中重現單元測試工作流程,並追蹤 AST 檢視器如何處理匯入的資料庫。完成的標準是:不需要手動進行封存和資料夾的權宜處理,即可匯入單元測試資料庫並檢視其原始碼 AST;此 issue 僅確認了 Windows 上的測試,因此也需要檢查 Linux 和 macOS 上的行為。
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe.
When developing CodeQL queries, it is convenient to write unit tests and query the database that is output from running them to iteratively test/develop a query. The alternative is to maintain a separate project and database which increases the number of moving parts and commands that need to be run when altering code or building additional tests and debugging. Currently you can import a unit test database using the CodeQL extension, however you will not be able to view the AST of its source code.
The current workaround is cumbersome and time consuming, it would be great if it could be automatically handled by the extension.
Describe the solution you'd like
Unit test databases imported by CodeQL VSCode extension should be able to have their AST viewed without performing extra steps.
Describe alternatives you've considered
Currently, the work around looks like this:
- Run the unit test using the unit test tab in VS Code.
- Navigate to the unit test path. You will see a XYZ.testproj folder.
- Remove .testproj from the folder name
- Navigate to XYZ/src and zip the folder inside. Rename to src.zip
- Move the newly created src.zip to the XYZ unit test directory
- Delete the src/ folder
- Import the database with the CodeQL extension. You will now be able to view the AST.
Additional context
I have only tested this on Windows, I am unsure of if the existing workaround works on Linux or MacOS.
- 主要語言
- TypeScript
- 星號
- 541
- 分支
- 242
- 平均合併
- 3 天 5 小時
- 30 天內合併 PR
- 42
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/vscode-codeql 的其他 Issue
-
`createLockFileForStandardQuery` always creates temp lock because `packPacklist` doesn't return lock files可能已有人在做 @Pybsama 於 71 天前認領。 未關閉bug VSCode
難度 2/5 1-3 小時 新手友好度 68/100
github/vscode-codeql#4471 · 1 則留言 ·
維護者通常 3 天內回覆
-
bug enhancement VSCode
難度 2/5 1-3 小時 新手友好度 68/100
github/vscode-codeql#592 · 2 則留言 ·
維護者通常 3 天內回覆
-
Qua未關閉VSCode
難度 2/5 1-3 小時 新手友好度 10/100
github/vscode-codeql#4591 ·
維護者通常 3 天內回覆
-
enhancement VSCode
難度 3/5 1-2 天 新手友好度 55/100
github/vscode-codeql#4432 · 1 則留言 ·
維護者通常 3 天內回覆
-
bug VSCode
難度 3/5 1-2 天 新手友好度 52/100
github/vscode-codeql#4356 ·
維護者通常 3 天內回覆
查看 github/vscode-codeql 的全部 Issue
相似的 Issue
-
[Docs] README: FAQ setup command, IDA in the intro, Node badge可能已有人在做 @akram1089 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked files未關閉
難度 2/5 1-3 小時 新手友好度 70/100
maniator/verticopolis#880 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 62/100
siyuan-note/siyuan#20353 ·
維護者通常 1 天內回覆
-
afk-ok area:data-quality importer size:S
難度 2/5 1-3 小時 新手友好度 82/100
enorm-labs/event-junkie#3027 ·
維護者通常 1 天內回覆