Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

How to react to file-system events in the language server

$
0
0

I'm writing a language server protocol extension for a custom language for VS Code. I'm writing the server part in C# using OmniSharp Language Server API.

I'm having trouble implementing DidChangeWatchedFile functionality. Even if I implement the IDidChangeWatchedFilesHandler interface the notification is not sent from the client or the server.

According to the specification there ought to be a DidChangeWatchedFilesRegistrationOptions interface where one could register for custom file events but I can't find this interface anywhere in OmniSharp. I want to be able to react to situations where a specific file is changed/added/deleted in the workspace and the file is not opened in the editor (thus not handled by DidChangeTextDocument handler).

Any tip/suggestion would be more than welcomed.

Thank you!


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>