Skip to content

Add token/symbol for inactive code #1938

Open
@RobbyCBennett

Description

@RobbyCBennett

Currently, extensions have an odd way of dimming or coloring inactive code. They add non-standard a CSS class and the class dims the code. The opacity and colors are configured in the extension settings instead of in the standard place for colors in VS Code: tokenColorCustomizations: textMateRules.

// Here's what this may look like in VS Code if the user wants to configure it.
"editor.tokenColorCustomizations": {
	"textMateRules": [
		{
			"scope": "inactive",
			"settings": {
				"opacity": 0.5
			}
		}
	]
},

Here are some example of how this works already.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions