Skip to content

"Definition & Reference" hover for sublime-syntax context names #279

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

Open
michaelblyons opened this issue Feb 3, 2020 · 3 comments
Open

Comments

@michaelblyons
Copy link

Is there a way to get this thing for named contexts in .sublime-syntax? Ideally, I'd like the hover to be available (and to include) both definitions and uses... maybe even across files? (e.g. Git Formats/Git Common)

Screen Shot 2020-02-03 at 5 14 54 PM

@FichteFoll
Copy link
Member

Yes and no. Yes, it is possible, but I would need to remove the string scopes because ST explicitly excludes them currently.

Upstream issue: sublimehq/sublime_text#2546

@michaelblyons
Copy link
Author

Thanks. That's exactly what I was looking for.

@michaelblyons michaelblyons changed the title Minihtml "Definition & Reference" hover for sublime-syntax "Definition & Reference" hover for sublime-syntax context names Sep 3, 2022
@FichteFoll FichteFoll self-assigned this Sep 9, 2024
@michaelblyons
Copy link
Author

michaelblyons commented Feb 12, 2025

Lurkers, you can hack in the References hover on a context definition by dropping the string scope in context_definition's set:

- meta_scope: string.unquoted.plain.out.yaml entity.name.function.context.sublime-syntax

You are also able to F12 to definitions from includes, but I haven't seen the hover on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants