-
-
Notifications
You must be signed in to change notification settings - Fork 91
Changed getRemovalHighlightRange to return a GeneralizedRange #2784
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
Conversation
sourceStyle: FlashStyle; | ||
destinationStyle: FlashStyle; | ||
getSourceRangeCallback: (target: Target) => Range; | ||
getSourceRangeCallback?: (target: Target) => GeneralizedRange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this optional. If you don't pass a callback into flashTargets() the content range is used by default.
decoration = { | ||
sourceStyle: FlashStyle.referenced, | ||
destinationStyle: FlashStyle.pendingModification0, | ||
getSourceRangeCallback: getContentRange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use default content range implementation
ide(), | ||
targets, | ||
FlashStyle.referenced, | ||
(target) => target.contentRange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use default content range implementation
.map((target) => { | ||
const range = getRange(target); | ||
|
||
if (range == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This optional behavior was never used. Better to have simpler code.
Fixes #1657
Checklist