-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add patch/diff file highlighting #516
base: main
Are you sure you want to change the base?
Conversation
Forgot to update the unit tests and themes, whoops. |
Thanks for the PR! Sorry @SentientCoffee, this patch will have to wait because if we merge it now we'll have to fix many conflicts with the long running branch which is blocking everything. In fact I wish you hadn't updated the config, tests and themes, because it would've been easier to add them later |
Is it just the default config/themes/tests that would cause an issue? I can revert those if needed, I updated them because otherwise |
Yes please, then it will be easier to merge later
…On Fri, 14 Feb 2025 at 10:38, SentientCoffee ***@***.***> wrote:
Is it just the default config/themes/tests that would cause an issue? I
can revert those if needed, I updated them because otherwise jai
first.jai - release fails the unit tests.
—
Reply to this email directly, view it on GitHub
<#516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4OX77QLMARCWIDEXMKKEZT2PUGEFAVCNFSM6AAAAABXBGEFJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJXG43DGMBRG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: SentientCoffee]*SentientCoffee* left a comment
(focus-editor/focus#516)
<#516 (comment)>
Is it just the default config/themes/tests that would cause an issue? I
can revert those if needed, I updated them because otherwise jai
first.jai - release fails the unit tests.
—
Reply to this email directly, view it on GitHub
<#516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4OX77QLMARCWIDEXMKKEZT2PUGEFAVCNFSM6AAAAABXBGEFJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJXG43DGMBRG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Reverted the unit test and theme changes 👍🏻 |
Great, thanks. If you want a release build for yourself in the mean time, you can just disable tests temporarily. |
Added patch/diff file highlighting for easy at a glance viewing. Does not try to highlight based on language, just a simple green for additions and red for deletions, plus some extra colours for metadata. (This could be changed in the future if we did want to highlight per language since the regions I added could stay the same and just change the token colours... That would involve needing to detect language based on the file extensions of the diff'd files though which might be kind of slow, especially for large patches that involve many files.)
Added patch/diff file highlighting for easy at a glance viewing.
Does not try to highlight based on language, just a simple green for additions and red for deletions, plus some extra colours for metadata.
(This could be changed in the future if we did want to highlight per language since the regions I added could stay the same and just change the token colours... That would involve needing to detect language based on the file extensions of the diff'd files though which might be kind of slow, especially for large patches that involve many files.)