Skip to content

Unable to get file operation notifications (willRename, etc) #387

Answered by ebkalderon
GeForceLegend asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there, @GeForceLegend! I think your server capabilities code looks fine, on a cursory glance (though I believe did_rename needs to be activated also by being set to Some(_), if you'd like to receive that type of notification statically, but that's a minor thing).

Have you verified that the client extension has willRename enabled in its TextDocumentSyncClientCapabilities as well? You can find out by inspecting the params passed into the LanguageServer::initialize() method. I'm currently away from my computer, so I can't confirm right now, unfortunately.

Here's a page you might find helpful regarding dynamic capability registration, if you haven't looked at it already: link

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@GeForceLegend
Comment options

@GeForceLegend
Comment options

@ebkalderon
Comment options

@GeForceLegend
Comment options

@ebkalderon
Comment options

Answer selected by GeForceLegend
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