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

Set custom program name for the built-in LSP server #12855

Commits on Apr 19, 2024

  1. 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
    koic committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    c819a2d View commit details
    Browse the repository at this point in the history