0

我的实现基于“vscode-languageserver”,我想知道如何将自定义请求发送到 vscode 服务器实现。

4

1 回答 1

0

服务器

const connection: LSP.IConnection = LSP.createConnection(LSP.ProposedFeatures.all);
connection.onNotification("handler/do", (handler)=>{});

客户

let client:LanguageClient = <initialize>
client.sendNotification("handler/do");
于 2020-01-19T14:52:22.707 回答