wayou / vscode-todo-highlight

a vscode extension to highlighting todos, fixmes, and any annotations...
https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight
MIT License
510 stars 97 forks source link

Can we turn off the todo indicators in the editor scrollbar? #203

Open goldengecko opened 2 years ago

goldengecko commented 2 years ago

At the moment the scrollbar shows a yellow indicator for a TODO: item in the scroller, but I have so many other indicators that it gets confusing. I'd like to be able to turn them off for this extension.

While you're looking at it, it would be nice to be able to configure the colour of the indicator - at the moment it is very similar to that used for the yellow ones used for eslint warnings.

jgclark commented 2 years ago

Have you tried removing "overviewRulerColor": "#..." from the .defaultStyle, and see if that does what you want?

If it doesn't, then I suggest you head to my maintained fork of this extension (which I started as this sadly seems not to be maintained), and suggest there, and I will see what I can do. It's at https://github.com/jgclark/vscode-todo-highlight, and available with various improvements in the extension store at TODO Highlight V2.

Nhypocrite commented 2 months ago

You may use "overviewRulerLane": -1 or other unsupported values to disable the TODO indicators in the editor scrollbar.

According to the VSCode doc DecorationRenderOptions section, the valid values for overviewRulerLane are 1 (left), 2 (center), 4 (right), and 7 (full). However, after testing, I found that other values, such as 0, 5, and null, are also supported. Ultimately, I discovered that using an unsupported value like -1 or 100 can effectively disable the indicator.

Hope this helps.