Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

:TSLspOrganize formatting #104

Discussion options

You must be logged in to vote

On my end, the behavior is slightly different. Starting with this:

import {
  foo,
  bar,
} from 'baz';

foo()
bar()

And running :TSLspOrganize results in this:

import {
    bar, foo
} from 'baz';

foo()
bar()

VS Code produces the same results. If you look at the code for :TSLspOrganize, you can see that all we are doing is sending a simple request to the client and applying the results, so there's not much we can do here to control how things are formatted.

As for the second issue, this is controlled by your tsconfig.json. All this plugin does is get and apply actions from the language server.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@onosendi
Comment options

@jose-elias-alvarez
Comment options

Answer selected by onosendi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants