Why does ale sometimes omit id/seq from LSP/tsserver messages? #4575
Unanswered
benjaminjkraft
asked this question in
Q&A - Ask for help with problems
Replies: 1 comment
-
The original version of the LSP spec ALE implemented did not require |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My question is about this bit of code (and the same bit a few lines above for tsserver):
ale/autoload/ale/lsp.vim
Lines 140 to 142 in af42e0b
Why the
if
? It seems like both LSP and tsserver considerid
/seq
required for all messages. (The blame goes back to the original commits to add LSP, so it isn't very enlightening.)As far as I know this doesn't break anything in ordinary usage. I'm running into it for the following (admittedly strange) reason: I'm trying to do some performance profiling/logging on tsserver, running a proxy process that logs how long various commands take. But for commands without a
seq
, it's hard to know what's a response to what. (Obviously some messages from the server aren't a response to anything -- that's fine -- but e.g.geterr
does have some kind of response message that it's hard to track.) So I wonder: would it break anything to just always set seq/id?Beta Was this translation helpful? Give feedback.
All reactions