Skip to content

LSP config in local directory not respected #14314

@imehtamav

Description

@imehtamav

Description

The project-local config looks like this:

{
  "$schema": "https://opencode.ai/config.json",
  "lsp": {
    "ty": {
      "command": [
        "uv",
        "run",
        "ty",
        "server"
      ],
      "extensions": [
        ".py",
        ".pyi"
      ]
    },
    "pyright": {
      "disabled": true
    }
  }
}

But when OpenCode reads a Python file, it activates the pyright LSP.

Plugins

"opencode-anthropic-auth@latest"

OpenCode version

1.2.6

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions