Repository navigation
fix: recommend plugins for documents and binary files - #3175
Open
deadlyjack wants to merge 3 commits into
Open
deadlyjack wants to merge 3 commits into
deadlyjack wants to merge 3 commits into
Conversation
Opening a pdf, docx or other binary file never suggested a plugin that can open it, because binary files were skipped before the registry lookup. Recommend them like other unsupported files, both for in-app opens (before the binary prompt and the size limit) and for files opened from other apps. Skip binary files an installed handler covers, honor the user's mode association, and catch errors thrown while recommending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe PR adds plugin suggestions for unsupported documents and binary files.
Reviews (3) · Last reviewed commit: "fix: honor disabled recommendations afte..." · Reviewed by Greptile |
Files opened from other apps can be rejected before plugins finish loading, and nothing retried their recommendation. Wait for the initial plugin load instead of dropping it; editor tabs are still rechecked by setMode after the load. A plugin can register a file handler while the registry lookup is pending, so check for a binary file handler again right before showing the notification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening a pdf, docx or other binary file never suggested a plugin that can open it, because binary files were skipped before the registry lookup. Recommend them like other unsupported files, both for in-app opens (before the binary prompt and the size limit) and for files opened from other apps.
Skip binary files an installed handler covers, honor the user's mode association, and catch errors thrown while recommending.