We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I know you said indent issues should be sent to the tsi project but this may belong here
When I press TAB on a line the indent is 2 (correct) but when mark a region and use indent-region (ie. lsp-format-region) the indent is 4.
I have set tsi-typescript-indent-offset to 2.
Tracing lsp communication
[Trace - 06:19:45 ] Sending request 'textDocument/rangeFormatting - (172)'. Params: { "textDocument": { "uri": "file:///c%3A/Users/vagn/src/vj-react-app/src/App.tsx" }, "options": { "tabSize": 4, "insertSpaces": true },
Note the tabSize.
My local fix is
(add-to-list 'lsp--formatting-indent-alist '(tsx-mode . tsi-typescript-indent-offset))
Should tsx-mode or tsi fix this?
The text was updated successfully, but these errors were encountered:
Seems related to orzechowskid/tsi.el#40
Sorry, something went wrong.
No branches or pull requests
I know you said indent issues should be sent to the tsi project but this may belong here
When I press TAB on a line the indent is 2 (correct) but when mark a region and use indent-region (ie. lsp-format-region) the indent is 4.
I have set tsi-typescript-indent-offset to 2.
Tracing lsp communication
Note the tabSize.
My local fix is
(add-to-list 'lsp--formatting-indent-alist '(tsx-mode . tsi-typescript-indent-offset))
Should tsx-mode or tsi fix this?
The text was updated successfully, but these errors were encountered: