'VSCode LSP (Language Server Protocol) DidDeleteFiles Notification not working

I am building VSCode plugin using VSCode language server. Delete file notification not working.

Server code:

this.connection.workspace.onDidDeleteFiles(event => this.fileDeleteHandler(event))

Server Dependencies

"vscode-json-languageservice": "4.1.8",
"vscode-languageserver": "^7.0.0",
"vscode-languageserver-textdocument": "^1.0.1",
"vscode-languageserver-types": "^3.16.0",
"vscode-nls": "^5.0.0",
"vscode-uri": "^3.0.2"

Client Dependencies

"fs-extra": "^9.1.0",
"request-light": "^0.5.7",
"vscode-languageclient": "7.0.0",
"vscode-nls": "^3.2.1",
"vscode-uri": "^2.0.3",
"yaml-language-server": "next"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source