Skip to content

[LSL] Add support for a .lslrc file with aliases for includes #68

@WolfGangS

Description

@WolfGangS

Luau already makes use of a .luaurc file and the plugin uses it's alias system in the slua require mechanism.

It would be nice to have a similar feature for LSL to make behavior between the two consistent and allow for include aliases to be stored with your project.

Proposed .lslrc format for now would only include the aliases section.

{
    "aliases": {
        "libs" : "D:\\secondlife\\lsl\\libraries",
        "my-lib" : "../../my-lib"
    }
}

Allowing for includes to follow a pattern like

#include "@libs/lib.lsl"
#include "@my-lib/my-lib.lsl"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions