From 550f356d58836a010e5d346e0c0aafc56a09ee13 Mon Sep 17 00:00:00 2001 From: hobostay <110hqc@gmail.com> Date: Mon, 2 Mar 2026 08:46:23 +0800 Subject: [PATCH 1/2] fix: add Bicep and Bicepparam file extension mappings Adds `.bicep` and `.bicepparam` file extensions to the LANGUAGE_EXTENSIONS mapping in lsp/language.ts. This allows custom configured Bicep LSP to work correctly, instead of falling back to plaintext. Fixes #15569 --- packages/opencode/src/lsp/language.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/opencode/src/lsp/language.ts b/packages/opencode/src/lsp/language.ts index 58f4c8488ba..3c63be86050 100644 --- a/packages/opencode/src/lsp/language.ts +++ b/packages/opencode/src/lsp/language.ts @@ -109,6 +109,8 @@ export const LANGUAGE_EXTENSIONS: Record = { ".zig": "zig", ".zon": "zig", ".astro": "astro", + ".bicep": "bicep", + ".bicepparam": "bicepparam", ".ml": "ocaml", ".mli": "ocaml", ".tf": "terraform", From 375205601755cf970d48f4d995f07675623e1128 Mon Sep 17 00:00:00 2001 From: hobostay <110hqc@gmail.com> Date: Mon, 2 Mar 2026 10:57:35 +0800 Subject: [PATCH 2/2] fix: use correct bicep-params language ID for .bicepparam files The official Bicep LSP source code defines the language ID for .bicepparam files as "bicep-params", not "bicepparam". Reference: https://github.com/Azure/bicep/blob/main/src/Bicep.Core/LanguageConstants.cs - public const string ParamsLanguageId = "bicep-params"; Co-Authored-By: Claude Opus 4.6 --- packages/opencode/src/lsp/language.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/lsp/language.ts b/packages/opencode/src/lsp/language.ts index 3c63be86050..9c5e0a956bc 100644 --- a/packages/opencode/src/lsp/language.ts +++ b/packages/opencode/src/lsp/language.ts @@ -110,7 +110,7 @@ export const LANGUAGE_EXTENSIONS: Record = { ".zon": "zig", ".astro": "astro", ".bicep": "bicep", - ".bicepparam": "bicepparam", + ".bicepparam": "bicep-params", ".ml": "ocaml", ".mli": "ocaml", ".tf": "terraform",