Skip to content

Mask/blur text in a document #104

Aug 19, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You can set the color of the text to equal the backgroundColor using https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions so it will appear as a solid block. You could also look at using opacity .

You can add an action above the first line of the .env to uncensor using https://code.visualstudio.com/api/references/vscode-api#CodeLensProvider%3CT%3E .

It might be possible purely with syntax highlighting or semantic tokens highlighting but I'm not familiar with that.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@motdotla
Comment options

@motdotla
Comment options

@motdotla
Comment options

@r3m0t
Comment options

@motdotla
Comment options

Answer selected by isidorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants