Skip to content

Commit cf074f4

Browse files
authored
Remove "no-reload" from debug configurations by default (#13439)
* Remove "no-reload" from debug configurations by default * Flask: remove "--no-reload" flag * Django: remove "--noreload" flag * Add news entries & remove redundant space in constructor * Add news content.
1 parent c37c79d commit cf074f4

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

news/1 Enhancements/13061.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove default "--no-reload" from debug configurations.
2+
(thanks [ian910297](https://github.com/ian910297))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DjangoLaunchDebugConfigurationProvider implements IDebugConfigurati
3737
type: DebuggerTypeName,
3838
request: 'launch',
3939
program: program || defaultProgram,
40-
args: ['runserver', '--noreload'],
40+
args: ['runserver'],
4141
django: true
4242
};
4343
if (!program) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class FlaskLaunchDebugConfigurationProvider implements IDebugConfiguratio
3434
FLASK_ENV: 'development',
3535
FLASK_DEBUG: '0'
3636
},
37-
args: ['run', '--no-debugger', '--no-reload'],
37+
args: ['run', '--no-debugger'],
3838
jinja: true
3939
};
4040

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ suite('Debugging - Configuration Provider Django', () => {
139139
type: DebuggerTypeName,
140140
request: 'launch',
141141
program: 'xyz.py',
142-
args: ['runserver', '--noreload'],
142+
args: ['runserver'],
143143
django: true
144144
};
145145

@@ -159,7 +159,7 @@ suite('Debugging - Configuration Provider Django', () => {
159159
type: DebuggerTypeName,
160160
request: 'launch',
161161
program: 'hello',
162-
args: ['runserver', '--noreload'],
162+
args: ['runserver'],
163163
django: true
164164
};
165165

@@ -182,7 +182,7 @@ suite('Debugging - Configuration Provider Django', () => {
182182
type: DebuggerTypeName,
183183
request: 'launch',
184184
program: defaultProgram,
185-
args: ['runserver', '--noreload'],
185+
args: ['runserver'],
186186
django: true
187187
};
188188

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ suite('Debugging - Configuration Provider Flask', () => {
6969
FLASK_ENV: 'development',
7070
FLASK_DEBUG: '0'
7171
},
72-
args: ['run', '--no-debugger', '--no-reload'],
72+
args: ['run', '--no-debugger'],
7373
jinja: true
7474
};
7575

@@ -94,7 +94,7 @@ suite('Debugging - Configuration Provider Flask', () => {
9494
FLASK_ENV: 'development',
9595
FLASK_DEBUG: '0'
9696
},
97-
args: ['run', '--no-debugger', '--no-reload'],
97+
args: ['run', '--no-debugger'],
9898
jinja: true
9999
};
100100

@@ -119,7 +119,7 @@ suite('Debugging - Configuration Provider Flask', () => {
119119
FLASK_ENV: 'development',
120120
FLASK_DEBUG: '0'
121121
},
122-
args: ['run', '--no-debugger', '--no-reload'],
122+
args: ['run', '--no-debugger'],
123123
jinja: true
124124
};
125125

0 commit comments

Comments
 (0)