Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 0451680

Browse files
authored
Provoke build (dotnet#9134)
* Provoke build * Use TryRemove ... ConcurrentDictionary doesnt have Remove
1 parent 17e5e7b commit 0451680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LanguageService/FSharpProjectOptionsManager.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
22

33
namespace Microsoft.VisualStudio.FSharp.Editor
4-
4+
55
open System
66
open System.Collections.Generic
77
open System.Collections.Concurrent
@@ -216,7 +216,7 @@ type private FSharpProjectOptionsReactor (workspace: Workspace, settings: Editor
216216

217217
if not (Seq.isEmpty projectsToClearCache) then
218218
projectsToClearCache
219-
|> Seq.iter (fun pair -> cache.Remove pair.Key |> ignore)
219+
|> Seq.iter (fun pair -> cache.TryRemove pair.Key |> ignore)
220220
let options =
221221
projectsToClearCache
222222
|> Seq.map (fun pair ->

0 commit comments

Comments
 (0)