[PR #487] [MERGED] Formatters as plugins #9633

Closed
opened 2026-02-16 18:13:53 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/487
Author: @Polo123456789
Created: 6/27/2025
Status: Merged
Merged: 6/29/2025
Merged by: @thdxr

Base: devHead: feature/formatters-as-plugins


📝 Commits (4)

  • 22616c2 feat: Read FORMATTERS from formatters directory
  • ad3cd6c feat: Add old formatters
  • dcd1e3e fix: Remove debug logs
  • 4af9d87 fix: Manually import formatters

📊 Changes

5 files changed (+122 additions, -99 deletions)

View changed files

packages/opencode/src/format/definition.ts (+7 -0)
packages/opencode/src/format/formatters/gofmt.ts (+24 -0)
packages/opencode/src/format/formatters/mix.ts (+24 -0)
packages/opencode/src/format/formatters/prettier.ts (+58 -0)
📝 packages/opencode/src/format/index.ts (+9 -99)

📄 Description

Maybe this could help with the merge conflicts when there are multiple formatters PRs.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/487 **Author:** [@Polo123456789](https://github.com/Polo123456789) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/29/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `feature/formatters-as-plugins` --- ### 📝 Commits (4) - [`22616c2`](https://github.com/anomalyco/opencode/commit/22616c26ee1da92a55c122b83794035999f03867) feat: Read FORMATTERS from formatters directory - [`ad3cd6c`](https://github.com/anomalyco/opencode/commit/ad3cd6c83e6fe3b497a1611e24bb164d086326b7) feat: Add old formatters - [`dcd1e3e`](https://github.com/anomalyco/opencode/commit/dcd1e3e0103332d4a035af34bb484ca3228d3449) fix: Remove debug logs - [`4af9d87`](https://github.com/anomalyco/opencode/commit/4af9d87f43b4f8b98b2046ac829ecf1d1f906b01) fix: Manually import formatters ### 📊 Changes **5 files changed** (+122 additions, -99 deletions) <details> <summary>View changed files</summary> ➕ `packages/opencode/src/format/definition.ts` (+7 -0) ➕ `packages/opencode/src/format/formatters/gofmt.ts` (+24 -0) ➕ `packages/opencode/src/format/formatters/mix.ts` (+24 -0) ➕ `packages/opencode/src/format/formatters/prettier.ts` (+58 -0) 📝 `packages/opencode/src/format/index.ts` (+9 -99) </details> ### 📄 Description Maybe this could help with the merge conflicts when there are multiple formatters PRs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:53 -05:00
yindo closed this issue 2026-02-16 18:13:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9633