Skip to content

Commit

Permalink
Merge pull request #48253 from ryzngard/cp/16.7_rename
Browse files Browse the repository at this point in the history
Merge pull request #46393 from ryzngard/issue/46192_nre_save_rename
  • Loading branch information
ryzngard authored Oct 12, 2020
2 parents a3738c4 + 75b30cb commit 1520e4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- job: VS_Integration
pool:
name: NetCorePublic-Pool
queue: buildpool.windows.10.amd64.vs2019.pre.open
queue: buildpool.windows.10.amd64.vs2019.open
strategy:
maxParallel: 2
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,14 @@ protected override void ApplyDocumentInfoChanged(DocumentId documentId, Document
}

// Must save the document first for things like Breakpoints to be preserved.
projectItemForDocument.Save();
// WORKAROUND: Check if the document needs to be saved before calling save.
// Should remove the if below and just call save() once
// https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1163405
// is fixed
if (!projectItemForDocument.Saved)
{
projectItemForDocument.Save();
}

var uniqueName = projectItemForDocument.Collection
.GetUniqueNameIgnoringProjectItem(
Expand Down

0 comments on commit 1520e4f

Please sign in to comment.