Skip to content

Commit f6b3c33

Browse files
authored
Merge pull request #1600 from OmarTawfik/fix-1599-ctrl-space-completion
Clear out state entries from completion API cache
2 parents 7b82874 + a6fdc0d commit f6b3c33

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)