-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Add SaveAllCommand #238
Add SaveAllCommand #238
Conversation
if (persistedDocument == null) continue; | ||
|
||
// skip if the file is new | ||
if (!persistedDocument.IsNew) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what Visual Studio does?
For my edification, is "what" (this) what Visual Studio does? |
@tgjones Actually the SaveAll command in VS saves all edited (IsDirty) documents and it shows "Save Prompt" for new documents. However, I think "skip new document" is enough, if users know it. |
Yes, I believe that's correct, including project changes. |
{ | ||
var tasks = new List<Task<Tuple<IPersistedDocument, bool>>>(); | ||
|
||
foreach (var document in _shell.Documents) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be changed to this:
foreach (var document in _shell.Documents.OfType<IPersistedDocument>().Where(x => !x.IsNew))
ffd86e6
to
aadeb81
Compare
LGTM - @diluculo is this ready to merge? |
Please merge this, which was rebased onto the latest master. |
Thanks! |
Please see #215 and #237