Skip to content

fix: Support single-level packages in runnables#254

Open
fredyw wants to merge 1 commit into
zed-extensions:mainfrom
fredyw:single_package_bugfix
Open

fix: Support single-level packages in runnables#254
fredyw wants to merge 1 commit into
zed-extensions:mainfrom
fredyw:single_package_bugfix

Conversation

@fredyw
Copy link
Copy Markdown

@fredyw fredyw commented May 18, 2026

The tree-sitter query for runnables was only capturing scoped_identifier for package names. This caused it to completely miss single-level packages, e.g., package example;, which are parsed as a basic identifier.

This updates the query to match both identifier and scoped_identifier.

The tree-sitter query for runnables was only capturing `scoped_identifier` for package names.
This caused it to completely miss single-level packages, e.g., `package example;`, which are
parsed as a basic `identifier`.

This updates the query to match both `identifier` and `scoped_identifier`.
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 18, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @fredyw on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@fredyw
Copy link
Copy Markdown
Author

fredyw commented May 18, 2026

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label May 18, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 18, 2026

The cla-bot has been summoned, and re-checked this pull request!

@tartarughina
Copy link
Copy Markdown
Collaborator

@fredyw thanks for the contribution.

Could you expand the description explaining all the additions included in the PR?

@tartarughina
Copy link
Copy Markdown
Collaborator

Consider also to extend the PR covering what #248 does for files without a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants