Skip to content

Commit a6fdc0d

Browse files
author
Omar Tawfik
committed
Clear out state entries from completion API cache
1 parent 98e8c9a commit a6fdc0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vsintegration/src/FSharp.Editor/CompletionProvider.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ type internal FSharpCompletionProvider(workspace: Workspace, serviceProvider: SV
8888

8989
for declarationItem in declarations.Items do
9090
let completionItem = CompletionItem.Create(declarationItem.Name)
91+
declarationItemsCache.Remove(completionItem.DisplayText) |> ignore // clear out stale entries if they exist
9192
declarationItemsCache.Add(completionItem.DisplayText, declarationItem)
9293
results.Add(completionItem)
9394

0 commit comments

Comments
 (0)