Skip to content

Add troubleshooting and best-practices guides for VSCode extension #331 & #332 #409

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

Closed

Conversation

syedalinaqihasni
Copy link

@syedalinaqihasni syedalinaqihasni commented Jun 23, 2025

fixes: #331 #332
requester: @jmacdotorg

Summary

This PR introduces two new documentation pages focused on enhancing user experience with the CodeRabbit VSCode extension:

  • Troubleshoot the VSCode extension
  • Best practices for using the VSCode extension

Details

  • Added troubleshoot-vscode.md with a structured list of common issues, symptoms, and step-by-step fixes.
  • Added best-practices-vscode.md outlining optimal usage patterns, suggested settings, and collaboration strategies.
  • Maintained consistent formatting and structure used across the documentation:
    • Frontmatter with title and description
    • Internal links to related guides (e.g. install, use)
    • Clear sectioning with ## headers and lists
  • Ensured that the new content aligns with existing workflows and terminology.

Motivation

To improve usability and support coverage by documenting known pitfalls and offering actionable tips. These pages help developers quickly self-diagnose problems and adopt workflows that maximize CodeRabbit’s value.

Reviewer Notes

  • Confirm whether all major troubleshooting cases are addressed clearly.
  • Review the best practices and suggest improvements based on real-world usage.
  • Let me know if either guide should be renamed or relocated for better discoverability.

@syedalinaqihasni syedalinaqihasni requested a review from a team as a code owner June 23, 2025 15:00
Copy link
Contributor

coderabbitai bot commented Jun 23, 2025

Walkthrough

Two new documentation guides were added: one on best practices for using the VSCode extension and another on troubleshooting common issues. The sidebar configuration was updated to include these guides under the "Review local changes" category. No code or logic changes were made.

Changes

Files/Paths Change Summary
docs/guides/best-practices-vscode.md Added a comprehensive best-practices guide for the CodeRabbit VSCode extension.
docs/guides/troubleshooting-vscode.md Added a troubleshooting guide for resolving common VSCode extension issues.
sidebars.ts Updated sidebar to include the new best-practices and troubleshooting guides.

Assessment against linked issues

Objective Addressed Explanation
Write a best-practices guide for using the VSCode extension (#331)

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Addition of troubleshooting guide (docs/guides/troubleshooting-vscode.md) The troubleshooting guide is not mentioned in the objectives of the linked issue, which only requests a best-practices guide.
Sidebar update to include troubleshooting guide (sidebars.ts) Updating the sidebar to add the troubleshooting guide is not required by the linked issue.

Poem

In burrows deep, with code so neat,
A guide for VSCode is quite the treat!
Best practices now light the way,
Troubles vanish—hip hip hooray!
With every hop, our docs expand,
CodeRabbit’s wisdom close at hand.
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (7)
docs/guides/best-practices-vscode.md (4)

6-6: Link to troubleshooting guide
Consider adding a pointer to the troubleshooting guide for users who hit issues before diving into best practices.
Example addition:

For troubleshooting common problems, see [Troubleshoot the VSCode extension](/guides/troubleshooting-vscode).

8-23: Expand setup recommendations
It could be helpful to mention customizing core extension settings (e.g., comment sensitivity thresholds, diff context lines) to tailor reviews to your workflow.


46-56: Clarify .coderabbitignore usage
You may rephrase “you don’t want reviewed” as “you don’t want to be reviewed” or “you don’t want included” for readability.


59-69: Team collaboration tips are solid
Consider suggesting that teams pin a specific extension version in their shared settings to avoid unexpected updates.

docs/guides/troubleshooting-vscode.md (3)

6-9: Add link to best practices guide
Round-trip your users by linking back to the best-practices guide in the intro:

For proactive usage tips, see [Best practices for using the VSCode extension](/guides/best-practices-vscode).

26-39: Consider verifying Git hooks
You might add a step to confirm that the .git/hooks directory is intact, as missing hooks can prevent commit-triggered events.


88-96: Enhance additional help with log locations
Suggest specifying where users can find extension logs (e.g., in the VSCode Output panel under “CodeRabbit” or at ~/.vscode/extensions/coderabbitai.coderabbit-vscode/logs).

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b448a3c and f345212.

📒 Files selected for processing (3)
  • docs/guides/best-practices-vscode.md (1 hunks)
  • docs/guides/troubleshooting-vscode.md (1 hunks)
  • sidebars.ts (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/guides/troubleshooting-vscode.md

[uncategorized] ~26-~26: The preposition ‘to’ seems more likely in this position.
Context: .... --- ### 2. Reviews aren't triggered on commit #### Symptoms - Committing cha...

(AI_HYDRA_LEO_REPLACE_ON_TO)

docs/guides/best-practices-vscode.md

[uncategorized] ~49-~49: Possible missing preposition found.
Context: ...Avoid large, monolithic commits Break up big changes into logical units. This...

(AI_HYDRA_LEO_MISSING_TO)


[style] ~49-~49: The word ‘big’ tends to be overused. Consider an alternative.
Context: ...arge, monolithic commits** Break up big changes into logical units. This speeds up revi...

(BIG_DIFFERENCE)


[uncategorized] ~55-~55: Possible missing preposition found.
Context: ...nce. - Use .coderabbitignore Exclude files or directories you don’t want rev...

(AI_HYDRA_LEO_MISSING_TO)

🔇 Additional comments (9)
docs/guides/best-practices-vscode.md (3)

1-4: Frontmatter looks correct
The YAML frontmatter is valid and follows the existing docs convention.


26-43: Daily workflow tips are comprehensive
Great guidance on leveraging incremental commits and manual reviews; no changes needed here.


72-76: Keep your tools updated section is clear
This reminder aligns with best practices.

sidebars.ts (1)

129-134: New sidebar entries are correctly placed
The guides for best practices and troubleshooting appear in the intended location under “Review local changes” with proper indentation and ordering.

docs/guides/troubleshooting-vscode.md (5)

1-4: Frontmatter is valid
The metadata block is well-formed and consistent with other docs.


10-23: Issue 1 coverage is good
Activation failure scenarios and fixes are clearly laid out.


42-55: Issue 3 is clear and actionable
Branch comparison error guidance is spot on.


58-71: Issue 4 guidance is thorough
Good checklist for missing or misaligned diffs.


73-85: Issue 5 remedies are complete
Crash and unresponsiveness steps cover key diagnostics.

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.

Write a best-practices guide for using the VSCode extension
1 participant