From f3a71f06d0c3a31ee186fe4a584b55d7f76b185c Mon Sep 17 00:00:00 2001 From: Jason Malinowski Date: Fri, 24 Jan 2020 14:18:01 -0800 Subject: [PATCH] Add link to https://github.com/dotnet/roslyn/issues/41211 to track a bug --- src/Workspaces/Core/Portable/Workspace/Solution/Project.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Workspaces/Core/Portable/Workspace/Solution/Project.cs b/src/Workspaces/Core/Portable/Workspace/Solution/Project.cs index fc94400de51..6f2e8bc2937 100644 --- a/src/Workspaces/Core/Portable/Workspace/Solution/Project.cs +++ b/src/Workspaces/Core/Portable/Workspace/Solution/Project.cs @@ -599,6 +599,8 @@ public TextDocument AddAnalyzerConfigDocument(string name, SourceText text, IEnu /// public Project RemoveDocument(DocumentId documentId) { + // NOTE: the method isn't checking if documentId belongs to the project. This probably should be done, but may be a compat change. + // https://github.com/dotnet/roslyn/issues/41211 tracks this investigation. return this.Solution.RemoveDocument(documentId).GetProject(this.Id)!; } -- GitLab