docs(extensions): document custom file previews - #644
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| The examples are not bundled or loaded by default. Run one directly while developing: | ||
|
|
||
| ```bash | ||
| bun run src/main.tsx -- diff --extension ./examples/extensions/rendered-markdown before.md after.md |
There was a problem hiding this comment.
The copyable launch command references before.md and after.md, but those files are not included or identified as user-provided placeholders, so running it from a repository checkout ends with a missing-file error instead of launching the example.
Knowledge Base Used: Extension System: API, Loading, and Host Integration
Prompt To Fix With AI
This is a comment left during a code review.
Path: website/src/content/docs/docs/extend/file-previews.md
Line: 199
Comment:
**Example inputs are absent**
The copyable launch command references `before.md` and `after.md`, but those files are not included or identified as user-provided placeholders, so running it from a repository checkout ends with a missing-file error instead of launching the example.
**Knowledge Base Used:** [Extension System: API, Loading, and Host Integration](https://app.greptile.com/modem/-/custom-context/knowledge-base/modem-dev/hunk/-/docs/extension-system.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Greptile SummaryThis PR adds public documentation for extension API v2 custom file previews.
Confidence Score: 4/5The PR appears safe to merge, with one non-blocking documentation issue in the example launch command. The documented feature contract aligns with the implementation, but the copyable quick-start command references input files that are neither included nor identified as placeholders. Files Needing Attention: website/src/content/docs/docs/extend/file-previews.md Important Files Changed
Prompt To Fix All With AI### Issue 1
website/src/content/docs/docs/extend/file-previews.md:199
**Example inputs are absent**
The copyable launch command references `before.md` and `after.md`, but those files are not included or identified as user-provided placeholders, so running it from a repository checkout ends with a missing-file error instead of launching the example.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "docs(extensions): document custom file p..." | Re-trigger Greptile |
Summary
hunk.registerFileView()ctx.fileViewsValidation
bun run typecheckbun run lintcd website && bun run checkcd website && bun run buildbun test scripts/generate-docs.test.ts scripts/check-pack.tsgit diff --checkThis PR description was generated by Pi using OpenAI GPT-5.2