Skip to content

Grammar Injection - Consider broader Scopes #50534

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

Conversation

AdrieanKhisbe
Copy link
Contributor

In order to be able in an extension to inject grammar to all languages without having to enumerate all of them, Consider broader Scopes in getInjections()

With this, we could use

"grammars": [
     {
     "injectTo": ["source", "text",....]
// ....
}
     ]

instead of :

"grammars": [
     {
     "injectTo": ["source.js", "source.ts", "source.jsx", "source.yaml", ....]
// ....
}
     ]

In order to be able to inject grammar to all language without having to enumerate all of them.

With this, we could use
```json
"grammars": [
     {
     "injectTo": ["source", "text"....]
// ....
}
     ]
```
instead of :
```json
"grammars": [
     {
     "injectTo": ["source.js", "source.ts", "source.jsx", "source.yaml", ....]
// ....
}
     ]
```
AdrieanKhisbe added a commit to AdrieanKhisbe/omni-tags.vscode that referenced this pull request May 29, 2018
@AdrieanKhisbe
Copy link
Contributor Author

Just a gentle reminder to get some input from you @alexandrudima :)
(as you were assigned by @weinand)

best regards :)

@alexdima
Copy link
Member

alexdima commented Nov 2, 2018

Thank you!

@alexdima alexdima merged commit dc1777c into microsoft:master Nov 2, 2018
@alexdima alexdima added this to the November 2018 milestone Nov 2, 2018
@AdrieanKhisbe AdrieanKhisbe deleted the grammar-injection-consider-general-types branch November 2, 2018 18:05
@AdrieanKhisbe
Copy link
Contributor Author

Awesome! =)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants