Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Jul 11, 2022

Conversation

aiday-mar
Copy link
Contributor

No description provided.

…options which allows to keep the original line formatting
@aiday-mar aiday-mar requested a review from aeschli July 7, 2022 15:53
@aiday-mar aiday-mar self-assigned this Jul 7, 2022
CHANGELOG.md Outdated Show resolved Hide resolved
.vscode/extensions.json Outdated Show resolved Hide resolved
src/impl/format.ts Outdated Show resolved Hide resolved
src/impl/format.ts Outdated Show resolved Hide resolved
@aiday-mar aiday-mar requested a review from aeschli July 8, 2022 14:17
CHANGELOG.md Outdated Show resolved Hide resolved
src/impl/format.ts Outdated Show resolved Hide resolved
src/impl/format.ts Outdated Show resolved Hide resolved
src/test/format.test.ts Outdated Show resolved Hide resolved
@microsoft microsoft deleted a comment from aeschli Jul 8, 2022
@aiday-mar aiday-mar requested a review from aeschli July 9, 2022 06:32
replaceContent = newLineAndIndent();
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) {
replaceContent = newLinesAndIndent();
} else if (options.keepLines) {
Copy link
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.
@aiday-mar aiday-mar requested review from aeschli and removed request for aeschli July 11, 2022 14:17
@aiday-mar aiday-mar requested a review from aeschli July 11, 2022 14:46
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