Apply text opacity decoration without setting text color #43004
Labels
api
editor-rendering
Editor rendering issues
feature-request
Request for new features or functionality
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
I'm working on the C++ extension here at Microsoft. One of our features for this release is inactive region colorization, similar to Visual Studio. While we've achieved end to end, there are a couple "nice to have" changes that would make the feature shine more. For modularity's sake I will expound upon just one here.
We would like a way to modify only the opacity of text without modifying other properties. We are using
vscode.TextEditor.setDecorations
to apply a text decoration to the inactive region.vscode.TextEditor.setDecorations
applies properties filled out in avscode.DecorationRenderOptions
. However, this interface does not allow for directly setting the opacity of the text without modifying the other color properties. E.g. supplyingrgba:(150,150,150,0.5)
will set the opacity with the unwanted side effect of changing the color to gray.Are there other means of setting the text opacity unaware to us? If not, we would greatly appreciate having such a thing implemented to give the user an experience more comparable to Visual Studio.
The text was updated successfully, but these errors were encountered: