Skip to content

Request: add the possibility to choose between nimlsp and nimlangserver #131

@arkanoid87

Description

@arkanoid87

There are pro and cons using nimlangserver vs nimlsp. The main difference is that the first runs nimsuggest processes and controls them, just like this extension does internally when selecting "nimsuggest" option, while nimlsp is compiled with parts of nimsuggest inside, and runs without spawning extra nimsuggest processes.

According to my experience, both solutions that spawn nimsuggest happens fail to keep child processes lifetime under control, and sometimes nimsuggest processes accumulates until OOM is triggered on host.

I'm not blaming any solution here, just trying to point out that currently by selecting "lsp" option nimlangserver is executed, and seems that there is no option to switch to nimlsp, which is a good "plan B".

Considering that nimlagserver and numlsp should naturally speak the same protocol, would it be possible to add a selection to pick the desired LSP executable?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions