Old "Lua" output channel remains active after restarting server
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- TypeScript
- Estrelas
- 215
- Forks
- 62
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
- Open a Lua file
- Run the
Lua: Restart Language Servercommand (many times makes it more obvious) - 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 used for logging.
Log
file_Users_ianchamberlain_Documents_Development_moon-rs-ls.log
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece pelo handler do comando Lua: Restart Language Server e rastreie como o OutputChannel do VS Code é criado e mantido. Reproduza a reinicialização repetidamente e, em seguida, verifique se Output: Show Output Channels... contém apenas o canal Lua atual e se uma nova saída do servidor aparece nele.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- typescript, vscode
- Domínio
- tooling
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100