Skip to content

Commit a8b2b83

Browse files
Add auto start browser as default value (#229)
* Add autoStartBrowser * fix tests * fix lint * fix tests
1 parent 0827379 commit a8b2b83

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/extension/debugger/configuration/providers/djangoLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export async function buildDjangoLaunchDebugConfiguration(
3131
program: program || defaultProgram,
3232
args: ['runserver'],
3333
django: true,
34+
autoStartBrowser: false,
3435
};
3536
if (!program) {
3637
const selectedProgram = await input.showInputBox({

src/extension/debugger/configuration/providers/flaskLaunch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function buildFlaskLaunchDebugConfiguration(
3232
},
3333
args: ['run', '--no-debugger', '--no-reload'],
3434
jinja: true,
35+
autoStartBrowser: false,
3536
};
3637

3738
if (!application) {

src/test/unittest/configuration/providers/djangoLaunch.unit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ suite('Debugging - Configuration Provider Django', () => {
109109
program: 'hello',
110110
args: ['runserver'],
111111
django: true,
112+
autoStartBrowser: false,
112113
};
113114

114115
expect(state.config).to.be.deep.equal(config);
@@ -129,6 +130,7 @@ suite('Debugging - Configuration Provider Django', () => {
129130
program: defaultProgram,
130131
args: ['runserver'],
131132
django: true,
133+
autoStartBrowser: false,
132134
};
133135

134136
expect(state.config).to.be.deep.equal(config);

src/test/unittest/configuration/providers/flaskLaunch.unit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ suite('Debugging - Configuration Provider Flask', () => {
6060
},
6161
args: ['run', '--no-debugger', '--no-reload'],
6262
jinja: true,
63+
autoStartBrowser: false,
6364
};
6465

6566
expect(state.config).to.be.deep.equal(config);
@@ -82,6 +83,7 @@ suite('Debugging - Configuration Provider Flask', () => {
8283
},
8384
args: ['run', '--no-debugger', '--no-reload'],
8485
jinja: true,
86+
autoStartBrowser: false,
8587
};
8688

8789
expect(state.config).to.be.deep.equal(config);

0 commit comments

Comments
 (0)