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

Add stubs for missing method overrides

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, vscode

調査の方向性

Issue には実装ファイルやテストが記載されていません。まず、クラス関連アクションを処理する VS Code 拡張機能のエントリーポイントと、抽象メソッドに対する CodeQL language-service のサポートを見つけ、Java IDE が override スタブを生成する方法と比較してください。複数の抽象基底クラスを含め、欠落しているすべての抽象メソッドに対して、コマンドが正しくフォーマットされたスタブを挿入できれば完了です。

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

説明

enhancement VSCode

Is your feature request related to a problem? Please describe.

I'm always frustrated when subclassing an abstract class in QL, since I need to manually write out names and signatures of abstract methods I must implement.

And all the while, my IDE is laughing at my struggle, since it knows what I need to do (with the <YourClass> must implement abstract method: <methodName> errors).

I usually go to the abstract base class and use multiple-cursors on the abstract part, but with multiple base classes that are abstract, even this process becomes tedious.

Describe the solution you'd like

class MyClass extends AbstracClass {
  MyClass() { this = foo() }
}

Right-click the MyClass part of class MyClass, select Add stubs for missing method overrides, and the above code is extended to become

class MyClass extends AbstracClass {
  MyClass() { this = foo() }

  override string method1(int arg) { 
    // TODO: this is a stub
    none() 
  }

  override method2() {
    // TODO: this is a stub
    none() 
  }
}

I think this is very common in Java, so we might be able to borrow how the stubs are populated from there (like how the TODO comment is formulated).

Describe alternatives you've considered
N/A

Additional context
N/A

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

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

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

はじめの一歩

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

github/vscode-codeql のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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