Skip to content

Allow plugins to change foreground text color through manually adding regions #817

@DanielRosenwasser

Description

@DanielRosenwasser

The TypeScript Language Service has an API for getting "classification ranges" of a source file, which are intended to be used for colorization in editors.

A mapping of classifications to Sublime regions seems to be fairly trivial, and so it would appear that the Sublime API would make this easy; however, the foreground color of the text does not seem to change when using add_regions.

I'm not sure if this is an intentional limitation (using build 3083), but it would allow us to focus on other features for our Sublime plugin instead of maintaining a separate grammar file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions