Skip to content

An additional parameter keepLines has been added into the formatting options which allows to keep the original line formatting - #66

Merged
Martin Aeschlimann (aeschli) merged 9 commits into
mainfrom
aiday/keepNewLines
Jul 11, 2022
Merged

An additional parameter keepLines has been added into the formatting options which allows to keep the original line formatting#66
Martin Aeschlimann (aeschli) merged 9 commits into
mainfrom
aiday/keepNewLines

Conversation

@aiday-mar

Copy link
Copy Markdown
Contributor

No description provided.

…options which allows to keep the original line formatting
Comment thread CHANGELOG.md Outdated
Comment thread .vscode/extensions.json Outdated
Comment thread src/impl/format.ts Outdated
Comment thread src/impl/format.ts Outdated
Comment thread CHANGELOG.md Outdated
Comment thread src/impl/format.ts Outdated
Comment thread src/impl/format.ts Outdated
Comment thread src/test/format.test.ts Outdated
Comment thread src/impl/format.ts Outdated
replaceContent = newLineAndIndent();
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) {
replaceContent = newLinesAndIndent();
} else if (options.keepLines) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think at that point, options.keepLines is always true -> can remove the check

…hanged `withFormatting` so that keepLines option is always false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants