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

Add configurable threshold for number of lines for big files #2484

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

mpsijm
Copy link
Contributor

@mpsijm mpsijm commented Jun 18, 2022

Follow-up of #784 (comment).

This PR adds a text field to the checkbox for "do NOT rainbowify big files", to configure the maximum number of lines for which the plugin will work, if this checkbox is enabled. I've also updated the notification that pops up if a file is larger than that: instead of an "enable rainbowify for big files" button, it's now an "open settings" button, because the user may want to either disable the setting or increase the threshold.

Small implementation note: I'm not sure how the ids for the form components are generated, so I typed some random hexadecimal values and hope that's fine 🙂

Copy link
Owner

@izhangzhihao izhangzhihao left a comment

Choose a reason for hiding this comment

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

It works great! thansk for the PR

@izhangzhihao izhangzhihao merged commit 9cad30b into izhangzhihao:2020.3 Jun 18, 2022
@mpsijm mpsijm deleted the big-files-lines-threshold branch June 18, 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