[PR #6717] fix(kotlin-ls): improve root detection for Gradle multi-project builds #12059

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

Original Pull Request: https://github.com/anomalyco/opencode/pull/6717

State: closed
Merged: Yes


Ensure the Kotlin language server is started at the correct Gradle root for multi-project and composite builds.

The root resolution now prioritizes settings.gradle(.kts), followed by the Gradle wrapper, before falling back to module-level build files or Maven projects. This prevents submodules from being incorrectly detected as the workspace root.

Follow up for #6601

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6717 **State:** closed **Merged:** Yes --- Ensure the Kotlin language server is started at the correct Gradle root for multi-project and composite builds. The root resolution now prioritizes settings.gradle(.kts), followed by the Gradle wrapper, before falling back to module-level build files or Maven projects. This prevents submodules from being incorrectly detected as the workspace root. Follow up for #6601
yindo added the pull-request label 2026-02-16 18:16:59 -05:00
yindo closed this issue 2026-02-16 18:16:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12059