如何从客户端向服务器发送自定义命令(LSP 实现)
How to send custom command from client to server (LSP implementation)
我的实现基于 'vscode-languageserver',我想知道如何将自定义请求发送到 vscode 服务器实现。
服务器
const connection: LSP.IConnection = LSP.createConnection(LSP.ProposedFeatures.all);
connection.onNotification("handler/do", (handler)=>{});
客户
let client:LanguageClient = <initialize>
client.sendNotification("handler/do");
我的实现基于 'vscode-languageserver',我想知道如何将自定义请求发送到 vscode 服务器实现。
服务器
const connection: LSP.IConnection = LSP.createConnection(LSP.ProposedFeatures.all);
connection.onNotification("handler/do", (handler)=>{});
客户
let client:LanguageClient = <initialize>
client.sendNotification("handler/do");