You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I request to provide a way to configure typescript-language-serverlocally 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.
The text was updated successfully, but these errors were encountered:
We aren't in hurry. This is the least desirable feature for now.
I agree we are not in a hurry but that feature I would expect to be present from the start since having to manually restart the server after changing settings would not be a good experience.
Uh oh!
There was an error while loading. Please reload this page.
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 thetsserver
) to read configuration settings from atsconfig.json
. For example, aformatOptions: ...
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.
The text was updated successfully, but these errors were encountered: