Skip to content

Send didSave LSP notification iwth Monaco Language Client #348

Answered by CGNonofr
theogiraudet asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

You need to have your own implementation of Workspace, you can extends MonacoWorkspace and define onWillSaveTextDocument and onDidSaveTextDocument

You'll need to use Services.install instead of MonacoServices.install to be able to provide your custom implementation (take a look at monaco-services.ts)

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@theogiraudet
Comment options

@CGNonofr
Comment options

@theogiraudet
Comment options

@CGNonofr
Comment options

@theogiraudet
Comment options

Answer selected by theogiraudet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants