Description
typescript-language-server/src/lsp-client.ts
Lines 31 to 34 in 9f3e578
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.