github / github/copilot-language-server-release
"[DEP0132] DeprecationWarning" warnings in the current main.js
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 290
- Forks
- 24
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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())})
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans main.js au niveau de l'appel de terminaison du worker indiqué dans l'issue. Mettez à jour cet appel comme décrit, puis exécutez le serveur de langage ou ses vérifications disponibles et confirmez que les avertissements DEP0132 n'apparaissent plus dans les journaux LSP.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, node.js
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 35/100