Skip to content

Commit 7b652d8

Browse files
ericsnowcurrentlyDonJayamanne
authored andcommitted
Fix the flask app name prompt for launch config. (#5409)
(for #5189)
1 parent 6fc4177 commit 7b652d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"debug.debugFlaskConfigurationLabel": "Flask",
201201
"debug.debugFlaskConfigurationDescription": "Launch and debug a Flask web application",
202202
"debug.flaskEnterAppPathOrNamePathTitle": "Debug Flask",
203-
"debug.flaskEnterAppPathOrNamePathPrompt": "Enter path to application, e.g. 'app.py' or 'app'",
203+
"debug.flaskEnterAppPathOrNamePathPrompt": "Enter the path to the application, e.g. 'app.py' or 'app'",
204204
"debug.flaskEnterAppPathOrNamePathInvalidNameError": "Enter a valid name",
205205
"debug.debugPyramidConfigurationLabel": "Pyramid",
206206
"debug.debugPyramidConfigurationDescription": "Web Application",

src/client/common/utils/localize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export namespace DebugConfigStrings {
251251
};
252252
export const enterAppPathOrNamePath = {
253253
title: localize('debug.flaskEnterAppPathOrNamePathTitle'),
254+
prompt: localize('debug.flaskEnterAppPathOrNamePathPrompt'),
254255
invalid: localize('debug.flaskEnterAppPathOrNamePathInvalidNameError')
255256
};
256257
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class FlaskLaunchDebugConfigurationProvider implements IDebugConfiguratio
4646
const selectedApp = await input.showInputBox({
4747
title: DebugConfigStrings.flask.enterAppPathOrNamePath.title(),
4848
value: 'app.py',
49-
prompt: DebugConfigStrings.flask.selectConfiguration.description(),
49+
prompt: DebugConfigStrings.flask.enterAppPathOrNamePath.prompt(),
5050
validate: value => Promise.resolve((value && value.trim().length > 0) ? undefined : DebugConfigStrings.flask.enterAppPathOrNamePath.invalid())
5151
});
5252
if (selectedApp) {

0 commit comments

Comments
 (0)