Skip to content

Commit

Permalink
always check scope for workspace$get_definition
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Apr 19, 2021
1 parent 3faeee2 commit 7eb82db
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 @@ -62,7 +62,7 @@ definition_reply <- function(id, uri, workspace, document, point) {
}
}

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 7eb82db

Please sign in to comment.