Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

CodeQL CLI update dialog blocks extension start / update dialog is easy to miss

オープン
#905 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, vscode
領域
devtools

調査の方向性

extensions/ql-vscode/src/extension.ts の207~208行目付近から始め、CodeQL CLI のリリースを待つか、VS Code のグローバルストレージを操作して、更新条件を再現します。無視された更新ダイアログが拡張機能のアクションにどのような影響を与えるかを確認し、更新通知を適切に表示したまま拡張機能を起動できることを完了条件とします。

索引モデルが issue の本文から書いたものです。

説明

bug VSCode

Describe the bug
Relates to #297, #447

When a CodeQL CLI update is available the start of the extension is blocked until the user interacted with the update dialog, see:
https://github.com/github/vscode-codeql/blob/db66184c35410bc2545a9d9a1d37305c8b99c2e6/extensions/ql-vscode/src/extension.ts#L207-L208

However, personally I think the info dialog shown by VSCode is easy to miss, especially when there are other dialogs from other extensions (and VSCode collapses the CodeQL dialog?).
When you then overlook CodeQL's dialog, you will wonder why the extension is not working.

Version
Extension:

CodeQL extension version: 1.5.1 
CodeQL CLI version: 2.5.7 
Platform: win32 x64

VSCode:

Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19041

To reproduce

  1. Wait for the next CodeQL CLI release (maybe also possible with VSCode global storage manipulation)
  2. Start VSCode with the extension installed
  3. Activate the extension, for example by clicking on the "CodeQL" icon on the left sidebar
    ℹ️ The extension should show an info dialog about the CodeQL CLI update in the bottom right corner
  4. Ignore the update dialog (neither close it nor accept it)
  5. Try to use any extension action
    ❌ Nothing happens (note: from my memories; cannot test because there is no new CodeQL CLI release)

Expected behavior
Maybe the dialog should not be blocking and the extension should start with the existing CodeQL CLI?

主要言語
TypeScript
スター
539
フォーク
240
平均マージ
2日 6時間
マージ済み PR(30日)
29

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/vscode-codeql のほかの issue

github/vscode-codeql の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。