Conversation
|
Hey @hediet, thank you for working on this. 🙏 . We were using monaco-editor for a long time, but always struggle with the LSP support. I'm so happy to see this implement in the monaco project. I hope you can finish it soon, and expose enought APIs for public usage. My situation is about LSP-Server in Webworker (WASM-base), connect with the monaco like you did there. |
|
@giautm LSP client support is already in! This is about making it easy to create LSP servers in a webworker. |
Yes, I found the playground after comment there. And I was successful to integrate the LSP client with my LSP Server running in WASM. However, I need some "hack" to inject extra features to the client. I need access to the // LSP Client setup
class WasmFeature {
constructor(c: any) {
c.capabilities.addStaticClientCapabilities({
experimental: {
noFilesystem: true,
},
});
}
dispose() {}
}
class AtlasLspClient extends lsp.MonacoLspClient {
createFeatures() {
const store = super.createFeatures();
//@ts-ignore
store.add(new WasmFeature(this._connection));
//@ts-ignore
console.log("LSP Features initialized:", store, this._connection);
return store;
}
} |
Prepares for #5148