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

Ignore --format option when running in LSP mode #638

Closed
searls opened this issue Jul 1, 2024 · 1 comment
Closed

Ignore --format option when running in LSP mode #638

searls opened this issue Jul 1, 2024 · 1 comment

Comments

@searls
Copy link
Contributor

searls commented Jul 1, 2024

The LSP depends on using the base formatter, because printing to STDOUT will break any LSP (since that's the communication channel back to the host). This is a recent regression: standardrb/vscode-standard-ruby#26 (comment)

Make sure this can't be overridden by user settings: https://github.com/standardrb/standard/blob/main/lib/standard/lsp/stdin_rubocop_runner.rb#L15

@searls
Copy link
Contributor Author

searls commented Jul 2, 2024

Fixed in 1.39.1

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

No branches or pull requests

1 participant