Skip to content

yaml parser: support # in literal #281891

Description

@aelij
  • Copilot Chat Extension Version: 0.35.2025120802
  • VS Code Version: 1.107.0-insider
  • OS Version: 25H2
  • Feature (e.g. agent/edit/ask mode): Agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude Opus 4.5
  • Logs:

From Chat Debug:

<instruction>
<description>C</description>
<file>repo-path/.github/instructions/style.instructions.md</file>
<applyTo>**</applyTo>
</instruction>

style.instructions.md frontmatter:

---
description: C# coding conventions
applyTo: "**"
---

Steps to Reproduce:

  1. Add an .instructions.md file with a special character in the description frontmatter, e.g. description: C# coding conventions
  2. Write a chat message in Agent mode

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-promptsPrompt and Instruction files related issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions