Skip to content

Commit

Permalink
fix(diffs): add ignore whiteSpace option to diff library
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Nov 14, 2024
1 parent 57ca58c commit ed58a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactiveDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export async function present_diff_to_user(editor: vscode.TextEditor, modif_doc:

const diff = Diff.diffLines(whole_doc, modif_doc, {
// ignoreNewlineAtEof: true,
// ignoreWhitespace: true, // can remove trailing new lines
ignoreWhitespace: true, // can remove trailing new lines
// newlineIsToken: true,
});

Expand Down

0 comments on commit ed58a73

Please sign in to comment.