Closed petervdonovan closed 1 year ago
Is there a way to make calls to the formatting blocking?
Is there a way to make calls to the formatting blocking?
Maybe... If we did that, then I think we might have to implement it on the client side (TS), so that the requests do not get interleaved. There might be a way to intercept them.
Another alternative would be for the server to fail more gracefully when it receives these invalid requests. I think XText has a way for us to bind our own hover provider, which can probably extend the one that they provide.
This seems to have been fixed by https://github.com/lf-lang/lingua-franca/commit/9bd1792605528d5e6323338291cebbde2a19c3bf.
The following error message appeared while I was testing the LF formatter in VS Code:
Perhaps this happened because the content of the document changed during the request -- I'm not sure.
I wonder if this is something that we can tolerate until we decide it is time to move away from Xtext.