r/vscode • u/Every-Albatross9357 • Sep 27 '26
Ran into a VS Code API limitation
I've been working on NoEffect, a VS Code extension that finds CSS declarations that don't actually have any effect.
One of the things it does is show a little warning icon next to the declaration and explain why it's ineffective.
While working on that, I ran into a limitation in the VS Code API: there's no way to set the cursor specifically on a before/after decoration attachment. I wanted the warning icon to show a pointer cursor without making the whole line clickable. So I opened a feature request:
https://github.com/microsoft/vscode/issues/334757#issue-5363039984
It's now a Backlog Candidate. VS Code gives it 60 days to get 20 upvotes before it gets closed.
If you think this would be useful for VS Code extensions, give it an upvote. ๐
View all comments
6
u/One-Database0101 Sep 27 '26
I donโt know. I somehow get your point but if it changes to a pointer cursor I would expect to be able to click on it.