Skip to content

Commit

Permalink
fix(syntaxes): add back block syntaxes to injection for entire TS file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
atscott committed Jul 11, 2024
1 parent 59a6caa commit ae2f8be
Show file tree
Hide file tree
Showing 5 changed files with 4,381 additions and 6,751 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
# This file should be checked into version control along with the pnpm-lock.yaml file.
.npmrc=974837034
pnpm-lock.yaml=274934855
pnpm-lock.yaml=1868866869
yarn.lock=-819276886
package.json=-2145211303
package.json=1934412187
pnpm-workspace.yaml=1711114604
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@
{
"path": "./syntaxes/template.json",
"scopeName": "template.ng",
"injectTo": ["text.html.derivative"]
"injectTo": ["text.html.derivative", "source.ts"]
},
{
"path": "./syntaxes/template-blocks.json",
"scopeName": "template.blocks.ng",
"injectTo": ["text.html.derivative"]
"injectTo": ["text.html.derivative", "source.ts"]
},
{
"path": "./syntaxes/let-declaration.json",
"scopeName": "template.let.ng",
"injectTo": ["text.html.derivative"]
"injectTo": ["text.html.derivative", "source.ts"]
},
{
"path": "./syntaxes/template-tag.json",
Expand Down
Loading

0 comments on commit ae2f8be

Please sign in to comment.