Skip to content

Search relative to project root for include files #30

@DonaldHays

Description

@DonaldHays

A few users have had project structures that don't work well with the extension's include search paths unless they add "" to their rgbdsz80.includePath setting, such as in #11. This is because the extension only searches (1) relative to the source file, and (2) relative to the include paths relative to the workspace root.

If, when building, the working directory is the workspace root, include files can be relative to the working directory/workspace root, but the extension won't search that by default.

What we really want is to add a search relative to the build working dir. This could be a setting, or we could just intuit that the workspace root will be the working dir.

Since RGBDS does not search relative to a source file, but rather only relative to both the working dir and the -I flags, arguably the fact that the extension searches relative to source files is actually wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions