anchor.diff:                          |> Array.ofSeq
   
                       if projRefs.Length > 0 then
  -                        lock gate (fun () ->
  -                            projRefs
  -                            |> Array.iter (fun proj ->
  -                                let proj = args.NewSolution.GetProject(proj.Id)
  -                                match proj with
  -                                | null -> ()
  -                                | _ ->
  -                                    if proj.IsFSharpMiscellaneousOrMetadata then
  -                                        match proj.Documents |> Seq.tryExactlyOne with
  -                                        | Some doc when not (workspace.IsDocumentOpen(doc.Id)) ->
  -                                            tryRemove doc
  -                                        | _ ->
  -                                            ()
  -                            )
  +                        projRefs
  +                        |> Array.iter (fun proj ->
  +                            let proj = args.NewSolution.GetProject(proj.Id)
  +                            match proj with
  +                            | null -> ()
  +                            | _ ->
  +                                if proj.IsFSharpMiscellaneousOrMetadata then
  +                                    match proj.Documents |> Seq.tryExactlyOne with
  +                                    | Some doc when not (workspace.IsDocumentOpen(doc.Id)) ->
  +                                        tryRemove doc
  +                                    | _ ->
  +                                        ()
                           )
               | _ ->
                   ()
  
positive.code:     member _.RenameFile(filePath, newFilePath) =
          match files.TryRemove(filePath) with
          | true, projectContext ->
              let project = workspace.CurrentSolution.GetProject(projectContext.Id)
              if project <> null then
                  let documentOpt =
                      project.Documents 
  
negative.code:                                              miscFilesWorkspace: Workspace, 
                                               projectContextFactory: IFSharpWorkspaceProjectContextFactory) =
  
      let files = ConcurrentDictionary<string, Lazy<IFSharpWorkspaceProjectContext>>(StringComparer.OrdinalIgnoreCase)
      let optionsManager = workspace.Services.GetRequiredService<IFSharpWorkspaceService>().FSharpProjectOptionsManager
  
      static let mustUpdateProjectReferences (refSourceFiles: string []) (projectContext: IFSharpWorkspaceProjectContext) =
  