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

Add some diagnostic logging for ruby-lsp #2057

Open
1 task done
marknuzz opened this issue May 16, 2024 · 1 comment
Open
1 task done

Add some diagnostic logging for ruby-lsp #2057

marknuzz opened this issue May 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@marknuzz
Copy link

I have checked that this feature is not already implemented

  • This feature does not exist

Use case

I think it would be great to have some more support to view diagnostic logs on the ruby-lsp. It seems more important to have that when there are features like formatter autodetection, where you might want to know what formatter is being used, what the command args are, etc.

Description

Show more info in the output window

Implementation

Things like "which formatter was selected, which configuration was used, etc" get shown in the ruby-lsp output window. Maybe this can also be a toggleable feature if there is a concern it is too noisy

@marknuzz marknuzz added the enhancement New feature or request label May 16, 2024
@Nakilon
Copy link

Nakilon commented May 20, 2024

I wish I could debug why my configuration doesn't apply.

On Sublime Text 4 I tried to disable Rubocop:

{
  "clients": {
    "ruby-lsp": {
      "enabled": true,
      "command": [
        "ruby-lsp"
      ],
      "selector": "source.ruby",
      "initializationOptions": {
        "enabledFeatures": {
          "diagnostics": false,

          "codeActions": false
        },
        "formatter": "none"
      }
    }
  },
  "inhibit_snippet_completions": true
}

I see in LSP logs that it was passed:

  'initializationOptions': {
    'enabledFeatures': {
      'codeActions': False,
      'diagnostics': False
    },
    'formatter': 'none'
  }

but it's still everywhere:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants