Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set custom program name for the built-in LSP server
This PR sets custom program name for the built-in LSP server. Before: ```console $ ps aux | grep rubocop user 17414 0.0 0.2 5557716 144376 ?? Ss 4:48PM 0:02.13 /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/bin/rubocop --lsp ``` After: ```console $ ps aux | grep 'rubocop' user 17414 0.0 0.2 5557716 144376 ?? Ss 4:48PM 0:02.13 rubocop --lsp /Users/user/src/github.com/rubocop/rubocop ``` When searching for the LSP server process, it is helpful to display the path to the project root instead of the Ruby command path. This approach is already being implemented in server mode: https://github.com/rubocop/rubocop/blob/v1.63.2/lib/rubocop/server/core.rb#L31
- Loading branch information