vscode-languageserver-node: Language client does not automanticly send file operation notification/reqiuest when working on certain path
My language client does not automanticly send file operation notification/reqiuest (the 6 things in ServerCapabilities.workspace.file_operations
, didCreate and willCreate, etc) on file change. Did I forget something in client startup?
More detailed information is provided in discussion in tower-lsp repo and stackoverflow. Source code is here. Looks like this is not a server-side issue, since force sending a didRename notification works, and capabilities in initialize result is just like expected.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (9 by maintainers)
To clarify: these operations are only send when the user triggers these operation from within the VS Code user interface or via applying a txt edit.
In addition your server needs to register for these.
I tested it locally and the events fire for me for a registration like this:
The testbed code is here: https://github.com/microsoft/vscode-languageserver-node/tree/dbaeumer/onWillRenameFiles
If you provide me with a GitHub repository I can clone that demos the missing events in a TS/JS server setup I will have a look.