Skip to content

Fixed #83983 added highlight collapsed - #84955

Merged
Martin Aeschlimann (aeschli) merged 4 commits into
microsoft:masterfrom
dbeigi:issue83983
Dec 19, 2019
Merged

Martin Aeschlimann (aeschli) merged 4 commits into
microsoft:masterfrom
dbeigi:issue83983

Conversation

@dbeigi

Copy link
Copy Markdown
Contributor

This PR fixes #83983 . With the help of Martin Aeschlimann (@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

Microsoft Contribution License Agreements (msftclas) commented Nov 16, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

};

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

Copy link
Copy Markdown
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 Martin Aeschlimann (aeschli) added the editor-folding Editor code folding issues label Dec 19, 2019
@aeschli
Martin Aeschlimann (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