mayerwin / vs-customize-window-title

Customize Visual Studio Window Title - Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=mayerwin.RenameVisualStudioWindowTitle
MIT License
108 stars 30 forks source link

Feature Request - Has unsaved changes / IsAnythingDirty tag #24

Closed se-nora closed 4 years ago

se-nora commented 6 years ago

When the solution contains unsaved changes, I would like to see that in the title of the window as a So i suggest the tag [hasUnsavedFiles] which results in "" when no unsaved files and in "" when there are unsaved files

mayerwin commented 6 years ago

Good idea. Need to figure out if this can be determined simply with the DTE object.

Grahamvs commented 4 years ago

@mayerwin, are you able to create a solution / global unsaved tag based on the "DocumentDirtyResolver" that @pstaszko added?

I assume you would be able to iterate through all open documents to check if any are dirty / unsaved?

mayerwin commented 4 years ago

@Grahamvs indeed it should be fairly simple. I'll work on it next time I prepare a release (if urgent, feel free to submit a PR).

Grahamvs commented 4 years ago

I've created pull request #56 to add an "anythingUnsaved" resolver, but I'm not sure how to link it to this issue.

mayerwin commented 4 years ago

Pushing it in a release today. Thanks!