Skip to content

Commit 265a0be

Browse files
committed
Revert
1 parent 0fd187d commit 265a0be

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

R/completion.R

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -468,17 +468,6 @@ completion_reply <- function(id, uri, workspace, document, point, capabilities)
468468

469469
completions <- list()
470470

471-
if (token_result$accessor == "") {
472-
call_result <- document$detect_call(point)
473-
if (nzchar(call_result$token)) {
474-
completions <- c(
475-
completions,
476-
arg_completion(uri, workspace, point, token,
477-
call_result$token, call_result$package,
478-
exported_only = call_result$accessor != ":::"))
479-
}
480-
}
481-
482471
if (nzchar(full_token)) {
483472
if (is.null(package)) {
484473
completions <- c(completions,
@@ -494,6 +483,17 @@ completion_reply <- function(id, uri, workspace, document, point, capabilities)
494483
workspace, token, package, token_result$accessor == "::", snippet_support))
495484
}
496485

486+
if (token_result$accessor == "") {
487+
call_result <- document$detect_call(point)
488+
if (nzchar(call_result$token)) {
489+
completions <- c(
490+
completions,
491+
arg_completion(uri, workspace, point, token,
492+
call_result$token, call_result$package,
493+
exported_only = call_result$accessor != ":::"))
494+
}
495+
}
496+
497497
if (is.null(token_result$package)) {
498498
existing_symbols <- vapply(completions, "[[", character(1), "label")
499499
completions <- c(

0 commit comments

Comments
 (0)