Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old "Lua" output channel remains active after restarting server #164

Open
ian-h-chamberlain opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@ian-h-chamberlain
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant