Restrict which subsets of the markdown grammar the js/ts injection eagerly loads

Fixes #77990
This commit is contained in:
Matt Bierner 2019-08-20 10:34:21 -07:00
parent 07ef53b206
commit 5c27385212

View file

@ -11,10 +11,13 @@
"while": "(^|\\G)\\s*\\*(?!/)(?=([^*]|[*](?!/))*$)",
"patterns": [
{
"include": "text.html.markdown#fenced_code_block"
"include": "text.html.markdown#fenced_code_block_js"
},
{
"include": "text.html.markdown#lists"
"include": "text.html.markdown#fenced_code_block_ts"
},
{
"include": "text.html.markdown#fenced_code_block_unknown"
},
{
"include": "#example"
@ -47,4 +50,4 @@
}
},
"scopeName": "documentation.injection"
}
}