Skip to content

Model/type references in other models shouldn't receive the support.class scope. #3

@UltraInstinct05

Description

@UltraInstinct05

Description of the bug

Currently, model/type references in other models/types receive the support.class scope which is totally wrong (because they are not something that a standard library provides. Prisma Schema Language doesn't have that concept). The reason I chose it was for the coloring of model/types to be different from standard scalar types (like Int, String etc.). Ideally, it should receive something like variable.other.model.prisma based on sublimehq/Packages#1861 but variable scopes are always colorless, so it's visually straining to distinguish them.

Steps to reproduce

Refer the syntax definition.

Expected behavior

Model/type references have variable.other.model scope. We could put some steps on tweaking the color scheme to color variable.other.model the same as support.class but that's an additional wall for some.

Actual behavior

Model/type references have support.class scope.

PrismaHighlight version

1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsyntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions