microsoft / microsoft/vscode

Copilot inline suggestions tried to add "]" when it would cause an error

Open
#335,068 0 comments 0 reactions 1 assignee Claimed by @hediet View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

ADD ISSUE DESCRIPTION HERE

Version: 1.136.1
Commit: a44adf7f53e00964ab890f9f8758a334f1fc15bc
User Agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Embedder: codespaces

The AI attempted to add another bracket ("]") even though it was already there. This was for closing an array. When accepted, it caused an error in the code. When deleted, the code functioned correctly. The AI offered to add the bracket again even though I deleted it and it would cause an error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.