zimonitrome / vscode-color-blocks

VSCode extension for coloring ranges of comments.
https://marketplace.visualstudio.com/items?itemName=zimonitrome.color-blocks
MIT License
7 stars 1 forks source link

Feature Request: Add setting to change delay before updating Color Blocks #14

Open hs1955 opened 1 year ago

hs1955 commented 1 year ago

Hi zimonitrome,

I'm absolutely loving this plugin, but recently I was using it with Blockman (and other extensions) and the CPU load increases so heavily that the backspace key stopped working, while also crashing the extension host similar to #12 I think.

Edit: I made a separate issue where I managed to replicate this bug: #15

However, I believe there should be a setting to make color blocks wait longer before it updates. I believe that this setting could resolve errors like #12 as a quickfix. Much like how blockman has a setting to delay updates. Also I don't mind waiting 2-5 seconds for Color Blocks to update.

Many thanks for this extension

hs1955 commented 1 year ago

As another feature, can property: "color-blocks.behavior.enabled"

be registered as a language override setting? This could be helpful to problems #16 and #15, so we can still use color blocks, without having to worry about crashing the extension host when working in a git repo.

I would like to use this feature as follows:

"[gitignore]": {
    "color-blocks.behavior.enabled": false
}