microsoft / VSExtensibility

A repo for upcoming changes to extensibility in Visual Studio, the new extensibility model, and language server protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request for a Close() method

LeeMSilver opened this issue · comments

Currently for an in-proc extension I think the only way to close a file is with DTE.ActiveDocument.Close() and I don't know if there's a way to close a file in an out-of-proc extension. Also see #367.

There is also no way to invoke File.FormatDocument() .

For either a single-file (DTE.ActiveDocument) or files accessed via Extensibility.GetOpenDocumentsAsync() it would be very useful if ITextDocumentSnapshot had Close() and Format() methods.