LSP workspace/didRenameFiles

已回答

I am developing an LSP plugin and during debugging, I found that the client does not send the workspace/didRenameFiles request to the server. I have declared this capability on both the client and server sides. The client code is as follows. I wonder if currently only textDocument/* requests are supported.

FileOperationsWorkspaceCapabilities fileOperationsWorkspaceCapabilities = new FileOperationsWorkspaceCapabilities();
fileOperationsWorkspaceCapabilities.setDidCreate(true);
fileOperationsWorkspaceCapabilities.setWillCreate(true);
fileOperationsWorkspaceCapabilities.setDidDelete(true);
fileOperationsWorkspaceCapabilities.setWillDelete(true);
fileOperationsWorkspaceCapabilities.setDidRename(true);
fileOperationsWorkspaceCapabilities.setWillRename(true);

workspaceClientCapabilities.setFileOperations(fileOperationsWorkspaceCapabilities);

this.getClientCapabilities().setWorkspace(workspaceClientCapabilities);

the log

"capabilities":{"workspace":{"fileOperations":{"didCreate":true,"willCreate":true,"didRename":true,"willRename":true,"didDelete":true,"willDelete":true}}

 

1
正式评论

Unfortunately, `workspace/didRenameFiles` is not yet supported. Feel free to file a feature request in YouTrack (project: {IntelliJ Platform} subsystem: {Core. LSP})

请先登录再写评论。