Old "Lua" output channel remains active after restarting server
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 215
- Forks
- 62
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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...`)
### Additional Notes
I think this is probably pretty simple to fix, just by either `clear()`ing and reusing or `destroy()`ing the [OutputChannel](https://code.visualstudio.com/api/references/vscode-api#OutputChannel) used for logging.
### Log
[file_Users_ianchamberlain_Documents_Development_moon-rs-ls.log](https://github.com/user-attachments/files/19100943/file_Users_ianchamberlain_Documents_Development_moon-rs-ls.log)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con el handler del comando `Lua: Restart Language Server` y sigue cómo se crea y conserva su `OutputChannel` de VS Code. Reproduce el reinicio repetidamente y verifica después que `Output: Show Output Channels...` contiene únicamente el canal actual de Lua y que allí aparece la nueva salida del servidor.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, vscode
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100