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.

Wrong conversion for nested strings

See original GitHub issue

Issue Type: Bug


Here’s a GIF of me reproducing the issue:

The issue author reproducing the issue in VS Code


For the code:

'I said: "Hello world!"'

After the “Hello”, type ${

Expected This should result in:

`I said: "Hello ${}world!"`

Actual The part between the double quotes is converted:

'I said: `Hello ${}world!`'

Extension version: 0.2.0 VS Code version: 1.50.0 OS version: macOS 10.15.7

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
loilocommented, Nov 15, 2020

Works like a charm — thank you!

1reaction
BobbieGoedecommented, Oct 21, 2020

This works as expected by setting template-string-converter.quoteType to single in settings on my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wrong result when converting multiple strings to integers in c ...
wrong result when converting multiple strings to integers in c. Atoi does not remove the old conversions · 4. your array sizes aren't...
Read more >
Single/double quotes conversion broken for f-strings containing ...
Single/double quotes conversion broken for f-strings containing nested quotes ... Whereas PyCharm should convert all the inner strings in the opposite direction.
Read more >
List (nested) function does not convert string to list (count does ...
Hi there, My version: Terraform v0.12.16 My variable: variable "this_amq_network_cidr_blocks" { description = "LIST of network CIDR blocks ...
Read more >
JSON methods, toJSON - The Modern JavaScript Tutorial
JSON methods, toJSON ... Let's say we have a complex object, and we'd like to convert it into a string, to send it...
Read more >
5 Ways to Convert a Value to String in JavaScript
"" + val: simply cast number to string - let's say inside of the .map() · JSON.stringify(val): need to convert small non-nested object...
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