Skip to content

Add manual start and attach functions #267

@aoqia194

Description

@aoqia194

When running emmylua-analyzer-rust with a debug port and getting emmylua to listen on that port, and the extension is stopped, there is no way to force start the emmylua_ls or to force attach to emmylua_ls on the debug port.

Steps to replicate

  • Enter a debug port number into the emmylua extension settings in vscode
  • Restart the emmylua extension (so that it is RED in the status bar or failed to connect)
  • Start emmylua_ls and listening on that debug port number

Observe how emmylua will never connect to the emmylua_ls on the debug port. Stopping and or restarting the server will not work due to the extension being completely stopped by vscode due to multiple previous failed connection attempts or attempting to stop before it starts/listens again. Since the extension is already stopped it will cancel the connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions