Skip to content

Commit

Permalink
Clear out state entries from completion API cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Tawfik committed Oct 11, 2016
1 parent 9a5484c commit 071dbc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CompletionProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type internal FSharpCompletionProvider(workspace: Workspace, serviceProvider: SV

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

Expand Down

0 comments on commit 071dbc8

Please sign in to comment.