Skip to content

workspace.findFiles() only finds files in the current workspace folder #1073

Open
@volkanunsal

Description

@volkanunsal

Given a workspace definition file like this:

{
  "folders": [
    {
      "path": ".",
      "name": "Root"
    },
    {
      "path": "/my/path/to/project",
      "name": "Proj"
    }
  ]
}

Consider a genaiscript called test.genai.mts in Root folder:

const inputs0 = await workspace.findFiles("**/*.md");
const inputs1 = env.files;

console.log(inputs0);
console.log(inputs1);

This is run on a file in the Proj folder. There are md files in the Proj folder, but workspace.findFiles() cannot find them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions