Skip to content

[FEATURE]: Force LSP usage #8712

Closed
Closed

Description

@YPares

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently, some LSPs are auto-activated based on the project layout.

For instance, TS LSP is activated it seems if there is a package.json at the root of the repo with a typescript dependency, and a node_modules folder.

In my case, I'm working in a monorepo where the typescript workspace is one level lower. Would it possible to force-activate via config the use of the TS LSP (even if it means I need to put it in the PATH myself).

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 15, 2026
  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  3. OverHash commented on Mar 26, 2026

    @OverHash
    {
        "$schema": "https://opencode.ai/config.json",
        "lsp": {
            "typescript": {
                "command": ["pnpm", "dlx", "typescript-language-server", "--stdio"],
                "initialization": {
                    "tsserver": {
                        "path": "./client/node_modules/typescript/lib/tsserver.js",
                        "fallbackPath": "./server/node_modules/typescript/lib/tsserver.js"
                    }
                }
            }
        }
    }

    This config worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions