Skip to content

Commit ae2f8be

Browse files
committed
fix(syntaxes): add back block syntaxes to injection for entire TS file
We rely on the `injectionSelector` to prevent matching our grammars in contexts which they should not apply. The `injectionSelector` only applies when the grammar is injected to the file via `injectTo`. Otherwise, the grammer is applied directly when it is included in the `patterns` array of another match. fixes #2062
1 parent 59a6caa commit ae2f8be

File tree

5 files changed

+4381
-6751
lines changed

5 files changed

+4381
-6751
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=974837034
5-
pnpm-lock.yaml=274934855
5+
pnpm-lock.yaml=1868866869
66
yarn.lock=-819276886
7-
package.json=-2145211303
7+
package.json=1934412187
88
pnpm-workspace.yaml=1711114604

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@
164164
{
165165
"path": "./syntaxes/template.json",
166166
"scopeName": "template.ng",
167-
"injectTo": ["text.html.derivative"]
167+
"injectTo": ["text.html.derivative", "source.ts"]
168168
},
169169
{
170170
"path": "./syntaxes/template-blocks.json",
171171
"scopeName": "template.blocks.ng",
172-
"injectTo": ["text.html.derivative"]
172+
"injectTo": ["text.html.derivative", "source.ts"]
173173
},
174174
{
175175
"path": "./syntaxes/let-declaration.json",
176176
"scopeName": "template.let.ng",
177-
"injectTo": ["text.html.derivative"]
177+
"injectTo": ["text.html.derivative", "source.ts"]
178178
},
179179
{
180180
"path": "./syntaxes/template-tag.json",

0 commit comments

Comments
 (0)