Skip to content

feat: main runnables, Stack/Cabal auto-detected#40

Open
sectore wants to merge 3 commits into
zed-extensions:mainfrom
sectore:runnables-main
Open

feat: main runnables, Stack/Cabal auto-detected#40
sectore wants to merge 3 commits into
zed-extensions:mainfrom
sectore:runnables-main

Conversation

@sectore

@sectore sectore commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Example (screenshot)

Run/Build buttons in the gutter. Result of the Build task in the terminal.

he-zed-task-example

Notes

  • Stack or Cabal will be auto-detected in default tasks (can be overridden in Zed's global or project settings)
  • Tests added for auto-detection of Stack or Cabal
  • In some (rare) cases a false positive might occur if other places in code uses another main function (e.g. in tests). It's fine to ignore it for now.
  • Bump zed_extension_api = "0.7.0" (to stay with latest version, similar to other open PRs)

Acknowledge

Closes #38

@MrSubidubi

Copy link
Copy Markdown
Contributor

Happy to take a look once you rebased/merged onto main after the other PR

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.

Add native Run button support

2 participants