LuaLS / LuaLS/vscode-lua

Old "Lua" output channel remains active after restarting server

Aperta
#164 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
TypeScript
Stelle
215
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Which OS are you using?

MacOS

Expected Behaviour

When restarting the language server, I expect the output channel to be either

  • cleared and reused by the new server instance
  • or deleted and a new one used to replace it
Actual Behaviour

The old channel is never destroyed, leaving multiple channels with the same name which can be confusing if you're looking for new channel output.

Reproduction steps
  1. Open a Lua file
  2. Run the Lua: Restart Language Server command (many times makes it more obvious)
  3. Open the output channel selector dropdown (Output: Show Output Channels...)
Image
Additional Notes

I think this is probably pretty simple to fix, just by either clear()ing and reusing or destroy()ing the OutputChannel used for logging.

Log

file_Users_ianchamberlain_Documents_Development_moon-rs-ls.log

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dall'handler del comando Lua: Restart Language Server e segui come viene creato e mantenuto il suo OutputChannel di VS Code. Riproduci ripetutamente il riavvio, quindi verifica che Output: Show Output Channels... contenga solo il canale Lua corrente e che al suo interno compaia il nuovo output del server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript, vscode
Ambito
tooling
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.