8000 Retain original formatting for LSP messages, except in `echo` functionality. by benjamindblock · Pull Request #4964 · dense-analysis/ale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Retain original formatting for LSP messages, except in echo functionality. #4964

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benjamindblock
Copy link
Contributor
@benjamindblock benjamindblock commented Apr 29, 2025
  • Updates ale#lsp#response#ReadDiagnostics to always store the full, unaltered diagnostic message from the LSP in question. The current process is to replace all newline characters with whitespace (' '), which then leads to broken formatting when viewing complex output from an LSP with :ALEDetail and other commands.
  • Updates ale#cursor#TruncatedEcho to replace newline characters with a space ' ' instead of an empty string '' to retain the previous style of formatting for echoed messages.

Related Issues:

Screenshots

Before

Screenshot 2025-04-29 at 8 43 33 AM

After

Screenshot 2025-04-29 at 8 42 43 AM

@benjamindblock benjamindblock force-pushed the echo branch 2 times, most recently from 5695543 to bd09aa8 Compare April 29, 2025 15:51
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

Successfully merging this pull request may close these issues.

1 participant
0