From 7cba16a666ecb39a24d9553dcf532ad61b0d0441 Mon Sep 17 00:00:00 2001 From: amirlan Date: Tue, 26 May 2026 10:23:34 +0500 Subject: [PATCH] fix(lsp): correct SourceKit extensions for Objective-C and Objective-C++ SourceKit was listing ".objc" and "objcpp" (no leading dot) instead of ".m" and ".mm". The LSP dispatcher matches via path.parse(file).ext which returns ".m" and ".mm" respectively, so SourceKit never activated for any Objective-C or Objective-C++ file. Closes #29314 --- packages/opencode/src/lsp/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/lsp/server.ts b/packages/opencode/src/lsp/server.ts index ad90ef5c786b..2d2197750aa0 100644 --- a/packages/opencode/src/lsp/server.ts +++ b/packages/opencode/src/lsp/server.ts @@ -884,7 +884,7 @@ export const FSharp: Info = { export const SourceKit: Info = { id: "sourcekit-lsp", - extensions: [".swift", ".objc", "objcpp"], + extensions: [".swift", ".m", ".mm"], root: NearestRoot(["Package.swift", "*.xcodeproj", "*.xcworkspace"]), async spawn(root) { // Check if sourcekit-lsp is available in the PATH