Extension should notify users when their QL libraries are out of date

未關閉
#495 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
typescript
領域
devtools

研究方向

未指定任何檔案、測試或進入點。首先檢查擴充功能如何處理 vscode-codeql-starter 工作區和子模組,然後解決 issue 中所述的版本檢查和更新方案。完成標準是:向使用者警告有新的帶標籤 QL 程式庫版本,並提供清楚的更新說明。

由索引模型根據 Issue 內容生成。

描述

enhancement VSCode

Background

Most users consume QL through the vscode-codeql-starter workspace. Some cli and ide features not work unless you have up to date QL libraries. Most users aren't aware of this and there is no mechanism to notify users that updates need to happen. The only situation where users are notified is when they add a new database built from a later version of the QL libraries. However, this is not sufficient.

Proposed solution

The extension should periodically check to see if there are new QL libraries available and warn the user if there are. Optionally, the extension could try to install the changes automatically. Otherwise, clear manual instructions should be given.

Caveats and questions

  1. This will only work for the vscode-codeql-starter workspace.
  2. What is considered a new version? We probably don't want to assume any change in master is new. Likely, we want to parse tags and look for new version numbers. Or we can do this through branches.
  3. We can attempt to automatically upgrade. This is just going to be pulling the submodules, which probably won't do any harm unless a user has made changes or commits to the core queries.

It might look like this:

  1. On restart or periodically, fetch the tags for submodules
  2. Check to see if any new tagged version exists.
  3. If so prompt the user to update their libraries
  4. Ensure there is clear instuctions on how to do this.
主要語言
TypeScript
星號
539
分支
240
平均合併
2 天 6 小時
30 天內合併 PR
29

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/vscode-codeql 的其他 Issue

查看 github/vscode-codeql 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。