hacksparrow/insert-line

Assuming prepend when overwriting line1

Opened this issue · 0 comments

If you are attempting to overwrite the contents of line 1 this line of code automatically changes to prepend mode which prepends instead of overwriting so what should be something like this...

insertLine(file).prependSync(`# cSpell:words ${words.join(' ')}`, {overwrite: true).at(1);

just adds the comment above the line that should be replaced and as far as I can tell there is no way to override the behavior.