8000 Feature Request: Index source codes, too (Why is the Zed repo not indexed completely?) · Issue #41 · upstash/context7 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature Request: Index source codes, too (Why is the Zed repo not indexed completely?) #41

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

Open
behrangsa opened this issue Apr 11, 2025 · 4 comments

Comments

@behrangsa
Copy link

Withing the Zed repo, is hidden a full-blown GUI programming library, called GPUI, which Zed itself is built on top of.

Example hello world code here, again inside the same repo.

Some symbols in this API:

use gpui::{
    App, Application, Bounds, Context, SharedString, Window, WindowBounds, WindowOptions, div,
    prelude::*, px, rgb, size,
};

However none of these symbols seem to have been indexed (I searched for WindowBounds).

Is there a reason why the repo is not entirely scanned?

@behrangsa
Copy link
Author

Never mind. I thought you scan the whole repo...

@enesakar
Copy link
Contributor

we scan the code snippets inside those files:
export const MARKDOWN_FILE_EXTENSIONS = /.(md|mdx|markdown|txt|rst|ipynb)$/;

wdyt? @behrangsa

@behrangsa
Copy link
Author

Would be great if you could parse Rust files, extract the AST for each file, index the AST, and learn how these undocumented libraries (GPUI for example), work.

In this case, as a massive full blown ap 8000 p (Zed) is in the same repo, which is built on top of GPUI, it should be relatively easier to create a RAG database to help with the so called vibe coding (eg create an RSS feed reader using GPUI).

@enesakar
Copy link
Contributor

I see. This is a major feature request. Right now the assumption is the library author has picked the most important code parts and put into docs as examples. But I agree working on source files will have a better coverage.

@enesakar enesakar changed the title Why is the Zed repo not indexed completely? Feature Request: Index soruce codes, too (Why is the Zed repo not indexed completely?) Apr 12, 2025
@enesakar enesakar changed the title Feature Request: Index soruce codes, too (Why is the Zed repo not indexed completely?) Feature Request: Index source codes, too (Why is the Zed repo not indexed completely?) Apr 12, 2025
@enesakar enesakar transferred this issue from upstash/context7-legacy Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0