Skip to content

Bug in Copilot extension #2621

@emurray-identifi

Description

@emurray-identifi

Describe the bug.

Error: "n is not iterable" when Copilot attempts to use file editing tools

Affected tools: replace_string_in_file, file_search, grep_search, get_errors, and others
Impact: Copilot cannot make code edits or perform basic file operations
Date: April 1,2026
Version: 1.111.0 (system setup)
Commit: ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
Date: 2026-03-06T23:06:10Z
GitHub CoPilot Chat: 0.39.2

Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

Reproduction Steps

Agent mode fails. Cannot use any internal tools

Expected Behavior

Agent should be able to change code as usual

Exceptions & Errors (if any)

No response

.NET Install Tool Version

v3.0.0

Your operating system? Please provide more detail, such as the version and or distro above.

N/A

VS Code Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions