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

Do not allow for completions inside comments #604

Merged
merged 8 commits into from
Oct 26, 2021

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Oct 26, 2021

Fixes #603

Should this be configurable? I'm thinking no.

PR task list:

  • Update NEWS
  • Add tests (if possible)
  • [NA] Update documentation with devtools::document()

Also move comment checking to top. It does not matter if it is within a quote or not, the result is still "no autocompletion". So move the logic to the top to avoid performing unnecessary actions.
@schloerke schloerke marked this pull request as ready for review October 26, 2021 15:20
Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 Go team! Thanks @schloerke

@gadenbuie gadenbuie merged commit f1d0ec9 into master Oct 26, 2021
@gadenbuie gadenbuie deleted the no_comment_auto_complete branch October 26, 2021 16:52
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.

Disable code completion on lines that start with # (e.g. comment lines)
2 participants