How to use Language Server (LSP) with editors opened using IVSUIShell.CreateDocumentWindow
Sajith
11
Reputation points
I have a Visual Studio extension that opens editors using IVSUIShell.CreateDocumentWindow.
I am now trying to use Language Server (LSP) for the editors from this extension -
https://learn.microsoft.com/en-us/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2022
But on opening the editor, Language Client is not getting invoked. Is this because ContentType for the editor is not set? How to set ContentType for an editor opened using IVSUIShell.CreateDocumentWindow ?
Sign in to answer