znikola / es6-typescript-import-sorter

GNU General Public License v3.0
0 stars 0 forks source link

Add more debug information to the algorithm #11

Closed znikola closed 6 years ago

znikola commented 6 years ago

Add a mechanism to have as much information as possible about the current file/directory that's being processed.

I.e. we need to have a file name information available in src/lib/index.ts' sortImports method. If something goes wrong, we can print that file name in console, for debugging purposes.

This information should probably be provided by the caller (either CLI or extension). It can be maybe defined as the second info parameter.