Skip to content

Commit

Permalink
Merge pull request #323 from renkun-ken/fix-import-completion
Browse files Browse the repository at this point in the history
Only provide imported completions without package
  • Loading branch information
renkun-ken authored Aug 19, 2020
2 parents 52181ca + 1a80806 commit 24a6aef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/completion.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,10 @@ workspace_completion <- function(workspace, token,
}
}

imported_object <- imported_object_completion(workspace, token, snippet_support)

completions <- c(
completions,
imported_object)
if (is.null(package)) {
imported_completions <- imported_object_completion(workspace, token, snippet_support)
completions <- c(completions, imported_completions)
}

completions
}
Expand Down

0 comments on commit 24a6aef

Please sign in to comment.