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

Make TextMate scopes available for extensions. #11649

Closed
svitalij opened this issue Sep 7, 2016 · 1 comment
Closed

Make TextMate scopes available for extensions. #11649

svitalij opened this issue Sep 7, 2016 · 1 comment
Assignees
Labels
api *duplicate Issue identified as a duplicate of another issue(s)

Comments

@svitalij
Copy link

svitalij commented Sep 7, 2016

As far as I can see, currently VS Code flatten TextMate scopes and this is impossible to get all scopes from specified location. It would be cool to have TextDocument method like 'getScope(at: Position):string[]' which returns the syntax scope names assigned to the given position.

<html><head><style>
    .test { color: rgb(255, 255, 0); }
</style></head></html>

for Position(1,12) – into the ‘color’ token this method may return:
['text.html.basic', 'source.css.embedded.html', 'meta.property-list.css', 'meta.property-name.css', 'support.type.property-name.css']

@jrieken
Copy link
Member

jrieken commented Sep 8, 2016

closing as duplicate of #580

@jrieken jrieken closed this as completed Sep 8, 2016
@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 8, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants