continuedev / continuedev/continue

Rule globs don't match files with spaces in filename

Open
#13,135 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Description

Environment

  • Continue: latest
  • VS Code on Windows 11
  • Files on Debian via SSH Remote

The problem occurs when using VS Code Remote SSH with a Debian remote host. The project files reside on the remote Linux filesystem, so this is not caused by Windows filename handling.

Rule:

---
name: Test
globs:
  - docs/**/*.md
---

Expected:
The rule is applied to every Markdown file in docs/, including files whose names contain spaces.

Actual:
The rule is applied to:

  • docs/foo.md
  • docs/foo_bar.md

But not to:

  • docs/foo bar.md

Even an exact glob does not work:

globs:
  - docs/foo bar.md

The rule is not included in the prompt.

Renaming the file to remove the space immediately fixes the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the rule matching and prompt inclusion behavior in VS Code Remote SSH with docs/**/*.md and an exact glob for docs/foo bar.md. Trace the glob-matching entry point for rule files and compare filenames containing spaces with filenames using underscores. Done means both patterns apply the rule to Markdown files whose names contain spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.