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

Make format-on-save work when editing Typescript (theia-in-theia) #1710

Closed
simark opened this issue Apr 16, 2018 · 2 comments
Closed

Make format-on-save work when editing Typescript (theia-in-theia) #1710

simark opened this issue Apr 16, 2018 · 2 comments
Labels
lsp language server protocol

Comments

@simark
Copy link
Contributor

simark commented Apr 16, 2018

One drawback of switching to Theia to develop Theia is the lack of format on save like in vscode. The manual alternative is invoke the command by hand (ctrl+i).

I looked into it a little bit, I started to implement the server side here:

https://github.com/simark/typescript-language-server/tree/will-save-wait-until-attempt

However, I can't get Theia to send those willSaveWaitUntil requests, where we could reply the edits to apply before saving. I am not sure where they should originate from. The monaco code, or our code? I am not actively working on it, so feel free to pick it up. Or if you have specific pointers that could help me, provide them here and I might look into it again.

@vince-fugnitto
Copy link
Member

I believe it's been addressed by #4012
Please re-open the issue @simark if it's not the case :)

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

No branches or pull requests

3 participants