Skip to content

Commit 346a166

Browse files
authored
Add support for Jinja template debugging (microsoft#1211)
Fixes microsoft#1210
1 parent 73bec31 commit 346a166

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

news/1 Enhancements/1210.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for Jinja template debugging.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@
806806
],
807807
"debugOptions": [
808808
"RedirectOutput",
809-
"Flask"
809+
"Jinja"
810810
]
811811
}
812812
},
@@ -930,7 +930,7 @@
930930
"RedirectOutput",
931931
"DebugStdLib",
932932
"Django",
933-
"Flask",
933+
"Jinja",
934934
"Sudo",
935935
"Pyramid"
936936
]
@@ -1004,7 +1004,7 @@
10041004
],
10051005
"debugOptions": [
10061006
"RedirectOutput",
1007-
"Flask"
1007+
"Jinja"
10081008
]
10091009
},
10101010
{

src/client/debugger/Common/Contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export enum DebugOptions {
3434
WaitOnNormalExit = 'WaitOnNormalExit',
3535
RedirectOutput = 'RedirectOutput',
3636
Django = 'Django',
37-
Flask = 'Flask',
37+
Jinja = 'Jinja',
3838
DebugStdLib = 'DebugStdLib',
3939
BreakOnSystemExitZero = 'BreakOnSystemExitZero',
4040
Sudo = 'Sudo',

src/client/debugger/configProviders/pythonV2Provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class PythonV2DebugConfigurationProvider extends BaseConfigurationProvide
2626
debugConfiguration.debugOptions.push(DebugOptions.FixFilePathCase);
2727
}
2828
if (debugConfiguration.module && debugConfiguration.module.toUpperCase() === 'FLASK'
29-
&& debugConfiguration.debugOptions.indexOf(DebugOptions.Flask) === -1) {
30-
debugConfiguration.debugOptions.push(DebugOptions.Flask);
29+
&& debugConfiguration.debugOptions.indexOf(DebugOptions.Jinja) === -1) {
30+
debugConfiguration.debugOptions.push(DebugOptions.Jinja);
3131
}
3232
}
3333
}

src/test/debugger/configProvider/provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
356356

357357
expect(debugConfig).to.have.property('debugOptions');
358358
expect((debugConfig as any).debugOptions).contains(DebugOptions.RedirectOutput);
359-
expect((debugConfig as any).debugOptions).contains(DebugOptions.Flask);
359+
expect((debugConfig as any).debugOptions).contains(DebugOptions.Jinja);
360360
});
361361
});
362362
});

0 commit comments

Comments
 (0)