Setting Content Type of virtual editors (Opened using IVsUIShell.CreateDocumentWindow)

Sajith 21 Reputation points
2025-07-17T14:48:18.9733333+00:00

I have implemented an LSP Language Server and want this to be loaded / associated with virtual documents.

Virtual documents are opened using IVsUIShell.CreateDocumentWindow.

How to set the Content Type of these virtual documents so that LSP Server gets loaded when opening them ?

Developer technologies | Visual Studio | Extensions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.