vscode-typescript-exportallmodules icon indicating copy to clipboard operation
vscode-typescript-exportallmodules copied to clipboard

Remove additional newline at end of generated index

Open weary-pilgrim opened this issue 2 years ago • 1 comments

Currently (v2.7.0), when an index generates, it contains a second new-line at the end of the file:

export * from './a';
export * from './b';



This drives my eslint bananas, but because the plugin is generating it automatically, I can't delete the extra line in the VSCode; I have to either delete it in another editor or remove it with eslint --fix.

I have observed this behavior when a folder has an listener and and one or more excluded files.

weary-pilgrim avatar Dec 05 '23 20:12 weary-pilgrim

@weary-pilgrim I have been looking into it, but I cannot reproduce the second new line. The contents passed to the file edit only contains one new line at the end.

https://github.com/estruyf/vscode-typescript-exportallmodules/assets/2900833/a9a54052-1720-412c-b103-612511a0239e

estruyf avatar Jul 03 '24 09:07 estruyf