Skip to content

[VS Code] Variables missing when code blocks inserted from Duo Chat suggestions

Checklist

Summary

When Duo Chat returns a response that includes a code block with a variable in the format ${VAR_NAME} and the newly added insert button is used (as against copy/paste), the variables are missing in the inserted code. This was tested in WebIDE and VS Code, see conversation on Slack: https://gitlab.slack.com/archives/CMELFQS4B/p1728573581630019

Steps to reproduce

What is the current bug behavior?

Variables in Code blocks from Duo Chat's responses are missing when inserted into the Editor

What is the expected correct behavior?

Code should be inserted as is, with no part missing.

Relevant logs and/or screenshots

See video recording: https://drive.google.com/file/d/1PeepY2YFbuVUc2ep-hzsMPFZqvOLJlrf/view?usp=sharing

Screenshot:

image

Possible fixes

cc: @dnsmichi

Edited by Abubakar Siddiq Ango