Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore missing packages in completion and definition #90

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

renkun-ken
Copy link
Member

Closes #81

This PR uses find.package(pkg, quiet = TRUE) to detect if a package is installed in workspace$get_namespace() and workspace$get_code() so that they may return NULL if the requested package is not installed. And subsequent calls to them ignores the case where package is missing so that writing and hovering on an non-installed package (e.g. abc::) in the code does not trigger extra logging to notice user that the package is not installed (in vscode the bottom panel jumps to extension logging, which is annoying).

@randy3k
Copy link
Member

randy3k commented Oct 15, 2019

Seems reasonable.

@randy3k randy3k merged commit 42f41fb into REditorSupport:master Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

definition does not exclude :: in strings
2 participants