i want to send godots LSP some file with some content and then i want to retrieve any errors or warnings which would usually show up in the script editor.
yea… that’s it.
i wanna to retrieve the errors and warnings which occur when writing a script with a certain content!
(i am building a plugin, if there is any way to get those errors without interacting with the LSP, and using some internal functions instead, that would be great too!)
Do you believe this is important enough to be a Godot Proposal?
I feel that only very few usecases or plugins could take adventage of this…
Also, like you said, this can essentially be accomplished with a TcpClient, even if it is weird that we have to access the LSP like that, since we are in the program with the LSP already.
Thank you very much for the code! I tried to do this myself and only got… towards the very first jsonrpc reply.. But you seem to know much more about the matter, so I will try to iterate on the code and see where I can take it!