Skip to content

Prevent failed ruby-lsp command execution from crashing the extension #1483

@st0012

Description

@st0012

When Ruby LSP: Restart failed due to ruby-lsp crashing, the failure will be propagated all the way to VSCode. Then VSCode will prevent the user from rerunning Ruby LSP: Restart again, even though it may not crash this time. Below is an example error message:

VSCode preventing failed command to be run again

This creates development hassle because the user (usually developer) needs to reload the entire VSCode window instead (Developer: Reload Window).

@vinistock suggested that we can catch the execution failure from the extension (may be this line?) to avoid this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions