Skip to content

Commit 4bb0644

Browse files
authored
Auto detect jinja and j2 files as jinja templates (microsoft#1575)
Fixes microsoft#1484
1 parent e5c4bf7 commit 4bb0644

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

news/1 Enhancements/1484.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Auto detect `*.jinja2` and `*.j2` extensions as Jinja templates, to enable debugging of Jinja templates.

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,8 @@
747747
"enableBreakpointsFor": {
748748
"languageIds": [
749749
"python",
750-
"html"
750+
"html",
751+
"jinja"
751752
]
752753
},
753754
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
@@ -1747,7 +1748,6 @@
17471748
"description": "Whether to re-build the tags file on start (defaults to true).",
17481749
"scope": "resource"
17491750
},
1750-
17511751
"python.workspaceSymbols.tagFilePath": {
17521752
"type": "string",
17531753
"default": "${workspaceFolder}/.vscode/tags",
@@ -1780,6 +1780,16 @@
17801780
"filenames": [
17811781
".condarc"
17821782
]
1783+
},
1784+
{
1785+
"id": "jinja",
1786+
"extensions": [
1787+
".jinja2",
1788+
".j2"
1789+
],
1790+
"aliases": [
1791+
"Jinja"
1792+
]
17831793
}
17841794
],
17851795
"grammars": [

0 commit comments

Comments
 (0)