Skip to content

Fix bug in decorationRenderHelper#18361

Merged
aeschli merged 1 commit intomicrosoft:masterfrom
nojvek:decorationHelperBugFix
Jan 19, 2017
Merged

Fix bug in decorationRenderHelper#18361
aeschli merged 1 commit intomicrosoft:masterfrom
nojvek:decorationHelperBugFix

Conversation

@nojvek
Copy link
Copy Markdown
Contributor

@nojvek nojvek commented Jan 10, 2017

getCSSTextForModelDecorationContentClassName will not escape ' in contentText since its escaping " rather than '

_CSS_MAPcontentText: 'content:'{0}';' uses single apostrophe so we need to escape ' rather than "

This is a bug that was always present and breaks inlineValueDebugging feature I am working on #16129

getCSSTextForModelDecorationContentClassName will not escape ' in contentText since its escaping " rather than '

_CSS_MAPcontentText: 'content:\'{0}\';' uses single apostrophe so we need to escape ' rather than "

This is a bug that was always present and breaks inlineValueDebugging feature I am working on #16129
@nojvek
Copy link
Copy Markdown
Contributor Author

nojvek commented Jan 10, 2017

@isidorn any chance you could take a quick look at this. This is ported from the other PR as you had requested.

@nojvek
Copy link
Copy Markdown
Contributor Author

nojvek commented Jan 10, 2017

Notes from other PR:
This doesn't have side effects because its only escaping the contentText property and that's the only usage of it.

Without this fix, python string values won't show up. Since python strings show up as 'cat bat mat' in the watches view.

@isidorn
Copy link
Copy Markdown
Collaborator

isidorn commented Jan 10, 2017

@alexandrudima as @nojvek explains the other PR #16129 depends on this as this seems to be the issue with handling of python words.

@alexdima alexdima assigned aeschli and unassigned alexdima Jan 12, 2017
@aeschli aeschli merged commit 906d4df into microsoft:master Jan 19, 2017
@aeschli aeschli added this to the January 2017 milestone Jan 19, 2017
@aeschli
Copy link
Copy Markdown
Contributor

aeschli commented Jan 19, 2017

Thanks @nojvek !

@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants