Skip to content

The ai can't catch the code selection in chat when using the newly version of copilot chat #276281

@394988736

Description

@394988736
  • Copilot Chat Extension Version:copilot-chat-0.34.0
  • VS Code Version:VSCodeUserSetup-x64-1.106.0-insider
  • OS Version:win11
  • Feature (e.g. agent/edit/ask mode):agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet):GPT 4.1
  • Logs:这段代码意思

Proceeding with task implementation...
I'll create a short TODO plan for reading and explaining the selected code.

Created 2 todos

现在我将打开 CodeSegmentIdentifier.ts 的第 20–30 行并读取内容。

Read CodeSegmentIdentifier.ts, lines 20 to 31

Simplifying logic conditions
现在我把“已读取”标记为完成,并把“解释代码”标为进行中。

Starting: Explain code in Chinese (2/2)

下面是对 CodeSegmentIdentifier.ts 中第 20–30 行代码的中文解释与说明:

代码片段

Steps to Reproduce:

1.send a chat request with code selection
2.the ai didn't know what my code context is

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions