Skip to content

Add ability to say "Create summary for this document" without selecting the whole document#14

Open
dustout wants to merge 2 commits into
FBarrca:mainfrom
dustout:main
Open

Add ability to say "Create summary for this document" without selecting the whole document#14
dustout wants to merge 2 commits into
FBarrca:mainfrom
dustout:main

Conversation

@dustout

@dustout dustout commented Feb 13, 2026

Copy link
Copy Markdown

I love this plugin, but I have found it a bit frusterating to select the whole document if I want to do something with it (make a summary, etc).

This PR changes it so that if nothing is selected then it sends the active document

Summary by CodeRabbit

Release Notes

  • Improvements

    • Widget submission now intelligently provides context by automatically utilizing the entire document when no explicit text selection is made, ensuring more comprehensive processing and improved results.
  • Chores

    • Updated repository configuration to exclude development environment directories from version control.

@coderabbitai

coderabbitai Bot commented Feb 13, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Two minor modifications: .gitignore now excludes the .vs directory for Visual Studio settings, and WidgetExtension.ts adds fallback logic to use the full editor document when no text selection is available for AI context.

Changes

Cohort / File(s) Summary
Build Configuration
.gitignore
Added ignore rule for .vs directory (Visual Studio project settings).
Widget Logic
src/modules/WidgetExtension.ts
Modified selection handling in submitAction to fall back to entire editor document (outerEditorView.state.doc.toString()) when no explicit text selection exists, with supporting comment clarifications.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A tiny .vs fade away,
Selection blooms, or doc saves the day,
Fallback whispers through code so clean,
Context flows where none has been! ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly describes the main change: enabling document summary creation without manual selection of the entire document.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

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