diff --git a/azure-pipelines-integration.yml b/azure-pipelines-integration.yml index 87a597c974b14..0881cab68895e 100644 --- a/azure-pipelines-integration.yml +++ b/azure-pipelines-integration.yml @@ -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: diff --git a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs index 2687b3b81cf07..842d672cfdfdb 100644 --- a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs +++ b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs @@ -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(