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

Fix bug in decorationRenderHelper #18361

Merged
merged 1 commit into from
Jan 19, 2017
Merged

Fix bug in decorationRenderHelper #18361

merged 1 commit into from
Jan 19, 2017

Conversation

nojvek
Copy link
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
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
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
Contributor

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
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.

None yet

5 participants