Skip to content

Fix bug in decorationRenderHelper - #18361

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
nojvek:decorationHelperBugFix
Jan 19, 2017
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
nojvek:decorationHelperBugFix

Conversation

@nojvek

Copy link
Copy Markdown
Contributor

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

Isidor Nikolic (@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

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

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

@aeschli

Copy link
Copy Markdown
Contributor

Thanks Noj Vek (@nojvek) !

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