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

Whitelist/blacklist options for better performance with multicursors in large files #153

Open
nickpapoutsis opened this issue Apr 14, 2024 · 0 comments

Comments

@nickpapoutsis
Copy link

When using multicursors in large files, the extension highlights every tag pair, like <product></product>. In large files this not only uses quite a lot of CPU/RAM but, more importantly, takes an extremely long amount of time (even minutes for huge files) and often causes the window to crash.

Suggested Enhancements:

  • Multicursor Toggle: Introduce an option to enable or disable tag pair highlighting when using multicursors. This would help manage resource utilization more effectively.
  • Selective File Type Activation: Implement the ability to activate or deactivate the extension based on file types. This could include a whitelist or blacklist feature, allowing users to specify which file types should use the extension.
  • File Size and Line Thresholds: Allow users to set thresholds for activating the extension based on the number of lines or the file size, providing greater control over its behavior.
  • Limit on Tag Highlights: Set a maximum number of tag pairs that the extension will highlight at any one time to prevent overwhelming the system.

These options, especially the last one, should easily fix/sidestep this issue.

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

No branches or pull requests

1 participant