Skip to content

Commit e272fe1

Browse files
committed
Merge branch 'master' into release/0.3.10
* master: always check scope for workspace$get_definition
2 parents a88d819 + 8141600 commit e272fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/definition.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ definition_reply <- function(id, uri, workspace, document, point, rootPath) {
8585
}
8686
}
8787

88-
if (!resolved) {
88+
if (!resolved && check_scope(uri, document, point)) {
8989
result <- workspace$get_definition(token_result$token, token_result$package,
9090
exported_only = token_result$accessor != ":::")
9191
}

0 commit comments

Comments
 (0)