Skip to content

[build] ignore .bazelbsp/ IDE-generated directory - #17932

Merged
diemol merged 1 commit into
trunkfrom
gitignore-bazelbsp
Aug 21, 2026
Merged

[build] ignore .bazelbsp/ IDE-generated directory#17932
diemol merged 1 commit into
trunkfrom
gitignore-bazelbsp

Conversation

@diemol

@diemol diemol commented Aug 21, 2026

Copy link
Copy Markdown
Member

🔗 Related Issues

N/A

💥 What does this PR do?

Adds /.bazelbsp/ to .gitignore. This directory is generated by the JetBrains Bazel plugin for IntelliJ to run Bazel Build Server Protocol queries for IDE features (indexing, run configs, etc.). It was showing up as untracked in git status for anyone using that plugin since nothing excluded it.

🔧 Implementation Notes

Placed the new entry next to the existing /.vscode/ and /.bazelrc.local IDE/tooling ignores for consistency.

🤖 AI assistance

  • No substantial AI assistance used
  • AI assisted (complete below)
    • Tool(s): Claude Code
    • What was generated: the .gitignore entry and this PR description
    • I reviewed all AI output and can explain the change

💡 Additional Considerations

None.

🔄 Types of changes

  • Cleanup (formatting, renaming)

The JetBrains Bazel plugin for IntelliJ generates a .bazelbsp/
directory in the project root to run Bazel Build Server Protocol
queries for IDE features. It was showing up as untracked since
nothing in .gitignore excluded it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016UGAATQ9swH6hNCer7cwVw
@qodo-code-review

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can tweak Display preferences with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Ignore JetBrains BazelBSP IDE directory in .gitignore

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Ignore JetBrains Bazel plugin-generated /.bazelbsp/ directory.
• Prevent IDE BSP artifacts from showing as untracked in git status.
• Keep IDE/tooling ignores grouped alongside similar entries.
High-Level Assessment

Adding /.bazelbsp/ to .gitignore is the most direct and standard solution for IDE-generated workspace artifacts. Alternatives like changing IDE plugin settings are user-specific and not reliably enforceable across contributors.

Files changed (1) +1 / -0

Other (1) +1 / -0
.gitignoreIgnore JetBrains BazelBSP workspace directory +1/-0

Ignore JetBrains BazelBSP workspace directory

• Adds '/.bazelbsp/' to ignore IDE-generated Bazel Build Server Protocol artifacts created by JetBrains Bazel tooling. This prevents the directory from appearing as untracked files for developers using the plugin.

.gitignore

@diemol
diemol merged commit 62a82fe into trunk Aug 21, 2026
29 checks passed
@diemol
diemol deleted the gitignore-bazelbsp branch August 21, 2026 16:02
This was referenced Aug 28, 2026
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.

1 participant