{{ message }}
feat: add yaml language server support#1345
Closed
Sam-3Degrees wants to merge 2 commits into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds YAML language server support to opencode, enabling syntax highlighting, error detection, and schema validation for .yml and .yaml files. The implementation uses yaml-language-server via Bun's package runner for automatic installation.
- Adds a new YAML language server configuration to the LSP server definitions
- Configures support for both
.ymland.yamlfile extensions - Uses Bun's package runner to automatically install and run yaml-language-server
There was a problem hiding this comment.
Consider adding error handling for the case where yaml-language-server is not available, similar to how the TypeScript language server checks for tsserver existence before spawning the process.
Suggested change
| const proc = spawn(BunProc.which(), ["x", "yaml-language-server", "--stdio"], { | |
| const bin = Bun.which("yaml-language-server", { | |
| PATH: process.env["PATH"] + ":" + Global.Path.bin, | |
| }) | |
| if (!bin) { | |
| log.error("yaml-language-server is not available. Please install it and try again.") | |
| return | |
| } | |
| const proc = spawn(bin, ["--stdio"], { |
Address code review feedback by: - Check if yaml-language-server binary exists before spawning - Add informative error message when binary is not found - Follow same pattern as other language servers in codebase - Use direct binary path instead of 'bun x' for better reliability 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
f16de3d to
cc0d460
Compare
772b621 to
eb855e1
Compare
f1dc981 to
3e15a39
Compare
f8ee907 to
6a9856d
Compare
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
Contributor
bussard76
pushed a commit
to bussard76/openwork
that referenced
this pull request
May 12, 2026
* fix(i18n): restore missing page translations * fix(i18n): correct settings locale labels * fix(dev): avoid reusing another checkout's Vite server --------- Co-authored-by: src-opn <src-opn@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
.ymland.yamlfilesTesting
service=lsp.client serverID=yaml starting clientandinitializedFixes