github / github/copilot-language-server-release
"[DEP0132] DeprecationWarning" warnings in the current main.js
- 主要言語
- 言語のデータがありません
- スター
- 290
- フォーク
- 24
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm using neovim with copilot. Current code of language server spam my logs with an annoying depreciation warnings in LSP logs (I'm using the copilot.lua though):
```
[ERROR][2025-07-04 16:10:21] ...p/_transport.lua:36 "rpc" "node" "stderr" "(node:32377) [DEP0132] DeprecationWarning: Passing a callback to worker.terminate() is deprecated. It returns a Promise instead.\n(node:32377) [DEP0132] DeprecationWarning: Passing a callback to worker.terminate() is deprecated. It returns a Promise instead.\n(node:32377) [DEP0132] DeprecationWarning: Passing a callback to worker.terminate() is deprecated. It returns a Promise instead.\n(node:32377) [DEP0132] DeprecationWarning: Passing a callback to worker.terminate() is deprecated. It returns a Promise instead.\n"
```
The could be easily fixed if we replace this piece of code in `main.js`:
```diff
- this.workers[i].worker.terminate(()=>{n++,n===this.workers.length&&(this.workers=[],r())})
+ this.workers[i].worker.terminate().then(()=>{n++,n===this.workers.length&&(this.workers=[],r())})
```
コントリビューションガイド
調査の方向性
main.js にある、issue に示されている worker 終了呼び出しから始めます。その呼び出しを説明どおりに更新し、次に language server または利用可能なチェックを実行して、DEP0132 警告が LSP ログに表示されなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100