Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Sep 17, 2022

add a comparison view before user confirm

image

@czgu czgu requested a review from jczhong84 September 17, 2022 02:12
@czgu czgu marked this pull request as ready for review September 19, 2022 17:39
const [addedRanges, removedRanges] = useMemo(() => {
const added: IHighlightRange[] = [];
const removed: IHighlightRange[] = [];
const diffObjects = diffWordsWithSpace(fromQuery, toQuery);
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we want to do diffLines instead?
image

also is it easy to add empty rows if one side has few lines than the other? so the line numbers will match

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

maybe codemirror 6, it is kind of a hassle to use MergeView right now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i tried diffLines, but there is too much detail missing

@czgu czgu merged commit 225b0ac into pinterest:master Sep 19, 2022
@czgu czgu deleted the jsdiff branch September 19, 2022 21:46
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
* feat: add diff view when transpiling query

* comments
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