Skip to content

Bug: Description is lost when importing from Cursor #31

@BramMusters

Description

@BramMusters

When importing from cursor using npx rulesync import --cursor I notice that descriptions get lost when a globs is specified in the Cursor rules:

Cursor:

---
description: Entity Framework Core Standards
globs: *.cs
alwaysApply: false
---

Becomes:

---
root: false
targets:
  - '*'
description: ''
globs:
  - '*.cs'
cursorRuleType: specificFiles
---

Notice the empty description.

However, this works:

---
description: Integration test instructions
globs:
alwaysApply: false
---
---
root: false
targets:
  - '*'
description: Integration test instructions
globs: []
cursorRuleType: intelligently
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions