Skip to content

Commit

Permalink
Merge branch 'master' into release/0.3.10
Browse files Browse the repository at this point in the history
* master:
  always check scope for workspace$get_definition
  • Loading branch information
randy3k committed Apr 19, 2021
2 parents a88d819 + 8141600 commit e272fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/definition.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ definition_reply <- function(id, uri, workspace, document, point, rootPath) {
}
}

if (!resolved) {
if (!resolved && check_scope(uri, document, point)) {
result <- workspace$get_definition(token_result$token, token_result$package,
exported_only = token_result$accessor != ":::")
}
Expand Down

0 comments on commit e272fe1

Please sign in to comment.