Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting for all enum-like UDAs #13

Open
claui opened this issue May 7, 2022 · 0 comments
Open

Syntax highlighting for all enum-like UDAs #13

claui opened this issue May 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@claui
Copy link
Owner

claui commented May 7, 2022

As a generalization of #12, I could do the same for any UDA that behaves like an enum, not just priority.

A possible implementation would register with VS Code’s semantic highlighting/semantic tokens provider API, and internally do something akin to:

$ task _show | grep 'uda\.[^.]*\.values='

Note that the task executable may be unavailable. Even if it is available, it may take a while until VS Code decides to invoke the provider because it’s busy doing other things.
Either way, the scopes added in #12 for the special case of priority are still helpful as a fallback, so I’d like to keep them around.

@claui claui added the enhancement New feature or request label May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant