[PR #1345] [CLOSED] feat: add yaml language server support #9900

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1345
Author: @Sam-3Degrees
Created: 7/26/2025
Status: Closed

Base: devHead: dev


📝 Commits (2)

  • de65786 feat: add yaml language server support
  • 7fc616f fix: add error handling for yaml-language-server availability

📊 Changes

1 file changed (+26 additions, -0 deletions)

View changed files

📝 packages/opencode/src/lsp/server.ts (+26 -0)

📄 Description

Summary

  • Add YAML language server support to opencode
  • Enables syntax highlighting, error detection, and schema validation for .yml and .yaml files
  • Uses yaml-language-server via Bun's package runner for automatic installation

Testing

  • Verified LSP starts correctly: service=lsp.client serverID=yaml starting client and initialized
  • Tested with multiple YAML file formats (.yml, .yaml)

Fixes


🔄 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/1345 **Author:** [@Sam-3Degrees](https://github.com/Sam-3Degrees) **Created:** 7/26/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`de65786`](https://github.com/anomalyco/opencode/commit/de657863a4a94315eba2368923e61864050cf3d7) feat: add yaml language server support - [`7fc616f`](https://github.com/anomalyco/opencode/commit/7fc616f8f529d0d5987af662cfa7e792de3b4dc6) fix: add error handling for yaml-language-server availability ### 📊 Changes **1 file changed** (+26 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/lsp/server.ts` (+26 -0) </details> ### 📄 Description ## Summary - Add YAML language server support to opencode - Enables syntax highlighting, error detection, and schema validation for `.yml` and `.yaml` files - Uses yaml-language-server via Bun's package runner for automatic installation ## Testing - ✅ Verified LSP starts correctly: `service=lsp.client serverID=yaml starting client` and `initialized` - ✅ Tested with multiple YAML file formats (.yml, .yaml) ## Fixes - Closes #1343 --- <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:14:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9900