Kaido Iwamoto
Kaido Iwamoto
:+1: I really want this feature.
I made pull request for this: #161.
How about adding command: "Prettier: Reload Config"? It looks easy to implement and better than nothing.
Dear technical committee members of TypeScript, please check this pull request if you have time. :bow: @TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @topce @akehir @petejohansonxo @amakhrov @davidgamero @mkusaka
Oops, CI on Node.js 12 failed because latest Jest only supports Node 14+.
I also published forked version of the package. It contains changes of this pull request. Feel free to use it. https://www.npmjs.com/package/@odiak/prettier-plugin-sort-imports
I also found some similar code pieces, though I'm not sure if they cause error. https://github.com/dsherret/ts-morph/blob/c12673319f919a4386685c63d31356cd2c1a981c/packages/ts-morph/src/manipulation/nodeHandlers/RangeParentHandler.ts#L89-L90 https://github.com/dsherret/ts-morph/blob/c12673319f919a4386685c63d31356cd2c1a981c/packages/ts-morph/src/manipulation/nodeHandlers/DefaultParentHandler.ts#L64-L65 https://github.com/dsherret/ts-morph/blob/c12673319f919a4386685c63d31356cd2c1a981c/packages/ts-morph/src/manipulation/nodeHandlers/UnwrapParentHandler.ts#L50-L51
I'm sorry for my late response. I'll add README in the future.
Thanks. I'll consider about them!
@sir4ur0n I also realized same problem last month. I have workaround for it but I forgot to submit pull request. Sorry! My solution is just adding `return json` to the...