Skip to content

Continue fails to parse prompts.md file when EOL sequence is CRLF #11876

@SteenH68

Description

@SteenH68

Before submitting your bug report

Relevant environment info

- OS:Windows 11
- Continue version: 1.3.34
- IDE version: 1.113.0
- Model: irrelevant
- config: .continue/prompts/helloworld.md

Description

When trying to load a prompt with '/' command and the prompt md file has CRLF EOL sequence, the UI presents the entire file and loads as well when selected.

Image Image

Changing the md file to LF EOL sequence fixes the problem.

Image Image

To reproduce

helloworld.md

Steps to reproduce:

  1. Create a prompt.md file in your .continue/prompts folder, eg. .continue/prompts/helloworld.md.
  2. Make sure end of line sequence is CRLF.
  3. Reload Window
  4. Type: '/' in your chat window and you should see that the helloworld.md file is shown, rather than the name chosen within the md file.

My helloworld.md test file (with CRLF):

---
name: HelloWorld
description: A simple prompt
invokable: true
---

Write "Hello World".

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions