Skip to content

Root relative Workspace/Project local configuration file #725

Open
@hinell

Description

@hinell

export class LspClientImpl implements LspClient {
constructor(protected connection: lsp.Connection) {}

I request to provide a way to configure typescript-language-server locally i.e. relative to the root of the project (i.e. tsconfig.json) by forcing lsp-client (I mean client from this repo that connects to the tsserver) to read configuration settings from a tsconfig.json. For example, a formatOptions: ... field might be used by the server immediately from a such config file.

Why tsserver doesn't have config file

There is a TypeScript issue discussion on this issue that took place many years ago regarding whether tsserver should support local-config file and it seems that devs have decided (microsoft/TypeScript#8709 (comment)) to unload this responsibility to the LSP clients, which is utterly wrong IMO. Many LSP servers (clangd, lua etc.) read their config from a project root config files like xyz_rc.json.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions