Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for a Close() method #337

Closed
LeeMSilver opened this issue Mar 12, 2024 · 1 comment
Closed

Request for a Close() method #337

LeeMSilver opened this issue Mar 12, 2024 · 1 comment
Assignees
Milestone

Comments

@LeeMSilver
Copy link

LeeMSilver commented Mar 12, 2024

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.

@tinaschrepfer
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants