8000 Don't complete inside comments by rszyma · Pull Request #171 · oxalica/nil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't complete inside comments #171

New issue
8000

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

Merged
merged 2 commits into from
Jul 1, 2025

Conversation

rszyma
Copy link
Contributor
@rszyma rszyma commented Jun 29, 2025

Fixes nix-community/vscode-nix-ide#490.

Tested manually via vscode-nix-ide that it works.

@@ -164,6 +164,11 @@ impl Context<'_> {
return None;
}

// Do not complete inside comments.
if let SyntaxKind::COMMENT = self.token.kind() {
Copy link
Owner

Choose a reason for hiding this comment

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

There is already a token kind check just above this line. We can merge them into a single one.

Also can we add a test for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@oxalica oxalica merged commit b043bfe into oxalica:main Jul 1, 2025
9 of 10 checks passed
@oxalica
Copy link
Owner
oxalica commented Jul 1, 2025

Thanks!

@rszyma rszyma deleted the no-completion-in-comments branch July 1, 2025 06:33
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.

Turn off suggestions in comments
2 participants
0