Skip to content

Should distinguish between *.d.rhai and *.rhai #77

@schungx

Description

@schungx

Currently, it seems that files with .d.rhai extension are treated the same as Rhai script files instead of LSP definition files.

This makes, for example, some Rhai code with definition files come back with parse errors. For example, in the definitions API folder:

image
image

The solution is to treat *.d.rhai as definition files automatically.

Or require all definition files to have some magic doc comment at the top? For example:

//! @RHAI-DEF-FILE

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