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

createTextEditorDecorationType doesn't display text in single quotes #19008

Closed
capaj opened this issue Jan 23, 2017 · 1 comment
Closed

createTextEditorDecorationType doesn't display text in single quotes #19008

capaj opened this issue Jan 23, 2017 · 1 comment
Assignees

Comments

@capaj
Copy link

capaj commented Jan 23, 2017

Version 1.8.1
Commit ee428b0
Date 2016-12-19T14:41:20.664Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

  • OS Version: Ubuntu 16.10

When I add a decoration like this:

                  const decoration = vscode.window.createTextEditorDecorationType({
                    isWholeLine: true,
                    backgroundColor: `rgba(255,0,0, 0.5)`,
                    color: 'white',
                    after: {
                      contentText: `'this is not visible'`,
                      color: 'rgba(1, 1, 1, 1.0)'
                    }
                  })
                  const range = new Range(line, 0, line, 1000)
                  window.activeTextEditor.setDecorations(decoration, [range])

the textContent 'this is not visible' is not visible.

Also when I put in just ' it displays some css.

@capaj capaj changed the title createTextEditorDecorationType doesn't display text in singe quotes createTextEditorDecorationType doesn't display text in single quotes Jan 23, 2017
@jrieken jrieken assigned aeschli and unassigned jrieken Jan 23, 2017
@aeschli
Copy link
Contributor

aeschli commented Jan 23, 2017

fixed by #18361

@aeschli aeschli closed this as completed Jan 23, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants