Skip to content

Fixed #83983 added highlight collapsed#84955

Merged
aeschli merged 4 commits intomicrosoft:masterfrom
dbeigi:issue83983
Dec 19, 2019
Merged

Fixed #83983 added highlight collapsed#84955
aeschli merged 4 commits intomicrosoft:masterfrom
dbeigi:issue83983

Conversation

@dbeigi
Copy link
Contributor

@dbeigi dbeigi commented Nov 16, 2019

This PR fixes #83983 . With the help of @aeschli , i added a class to the collapsed visual decoration. This is then referenced in registerThemingParticipant to match the selected color depending on the theme. In decorationRange i set the startColumn to 0 to ensure the highlight starts from character 0.

@msftclas
Copy link

msftclas commented Nov 16, 2019

CLA assistant check
All CLA requirements met.

};

registerThemingParticipant((theme, collector) => {
const highlightCollapsedBackground = theme.getColor(editorSelectionBackground);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use editorSelectionBackground but define a new color.
That way users can enabled / disable / configure.

Note sure is we also need a user setting. I'd start without one, for now.

@aeschli aeschli added this to the December/January 2020 milestone Dec 19, 2019
@aeschli aeschli added the editor-folding Editor code folding issues label Dec 19, 2019
@aeschli aeschli merged commit 3767978 into microsoft:master Dec 19, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

editor-folding Editor code folding issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[folding] highlight folded line

3 participants