question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension doesn't recognize existing template literals

See original GitHub issue

Given the following piece of code:

console.log( `User submitted: ''.` );

Place the caret in between the single quotes and type ${. The code is converted to:

console.log( `User submitted: `${`.` );

Which is not valid syntax.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
meganroggecommented, Dec 30, 2020

added a setting you can toggle now @oliversalzburg

1reaction
meganroggecommented, Dec 16, 2020

it’s live now. you should just have to update and reload the window.

Read more comments on GitHub >

github_iconTop Results From Across the Web

template strings not working [duplicate] - Stack Overflow
Template literals are string literals allowing embedded expressions. You can use multi-line strings and string interpolation features with them.
Read more >
Intellisense inside JS template literal not showing ... - GitHub
Intellisense inside JS template literal not showing automatically after typing ${ # ... But, It's the variable name that popup doesn't open when...
Read more >
Template literals (Template strings) - JavaScript | MDN
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >
The EASIEST Way to Convert to ES6 Template Literal Strings ...
... having to manually switch between double or single quotes and JavaScript ES6 Template Literal Strings? Well, check out this extension.
Read more >
template-string-expander - Visual Studio Marketplace
The extension doesn't expose any settings. Known Issues. No known issues to-date. Please file a bug on github. Release Notes. 0.0.6.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found