Skip to content

Using the "/fix" shortcut is duplicating code in a Python project #373

@KalleV

Description

@KalleV
  • VS Code Version: 1.82.0-insider
  • OS Version: Darwin x64 22.5.0
  • Logs: N/A

Kudos for tools like Copilot making moving between frameworks, programming languages, and projects significantly easier! I encountered this one while trying to customize a Streamlit project.

Steps to Reproduce:

  1. Select a code block and activate an in-line chat prompt. Example:
    Screenshot 2023-08-20 at 10 28 31 AM

  2. Ask it to change the code block using "/fix". Example:

/fix Change the Podcast Guest Details to show a results list with clickable links.
  1. Duplicated code is generated. Example:
    Screenshot 2023-08-20 at 10 37 20 AM

  2. The duplicated code is not generated after removing the "/fix" shortcut and applying the exact same instructions. Example:
    Screenshot 2023-08-20 at 10 35 54 AM

Metadata

Metadata

Assignees

Labels

/fixbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions