Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a setting to manage inactive region colorization #1604

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

bobbrow
Copy link
Member

@bobbrow bobbrow commented Feb 24, 2018

It still needs a corresponding change from the language server process so that the lightbulb and toggle commands work, but this handles the TypeScript part.

@bobbrow
Copy link
Member Author

bobbrow commented Feb 24, 2018

#1574

@@ -139,6 +139,12 @@
"description": "Controls whether suspected compile errors detected by the IntelliSense engine will be reported back to the editor. Warnings about #includes that could not be located will always be reported to the editor. This setting is ignored by the Tag Parser engine.",
"scope": "resource"
},
"C_Cpp.dimInactiveRegions": {
"type": "boolean",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be forward looking and change this to an opacity setting, e.g. 100 would be equal to false? Then when VS Code enables real opacity this setting could be used to change the amount of opacity.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open to that, but has VSCode committed to giving us an opacity setting?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have opacity, we just don't have access to the opacity AND current color, OR just the opacity w/o color. They have not responded to my GitHub issue, but I could bump the issue until they bother to respond to me.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume they would "eventually" implement text opacity to match VS 2017, it seems like adding an opacity setting now would confuse users since it wouldn't work (unless we make it affect the gray color).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobbrow @sean-mcmanus Just bumping this while looking through this PR to learn how to do my own setting. As of 3 days ago an opacity property was exposed. microsoft/vscode#43004
It was merged into master, though I'm not sure when it will ship. As soon as it is, however, we can expose our own opacity setting as a 0-100 or similar as Sean suggested.

Copy link
Contributor

@grdowns grdowns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a note for the future, disabling inactive regions in this manner will cause colorization from the regular expressions to appear (e.g. coloration from #if 0).

@bobbrow bobbrow merged commit a6c6c7e into master Feb 26, 2018
@bobbrow bobbrow deleted the bobbrow/inactiveRegionsSetting branch March 5, 2018 22:42
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants