Skip to content

Commit

Permalink
Fix the flask app name prompt for launch config. (#5409)
Browse files Browse the repository at this point in the history
(for #5189)
  • Loading branch information
ericsnowcurrently committed Apr 23, 2019
1 parent 3febb03 commit 79be7c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"debug.debugFlaskConfigurationLabel": "Flask",
"debug.debugFlaskConfigurationDescription": "Launch and debug a Flask web application",
"debug.flaskEnterAppPathOrNamePathTitle": "Debug Flask",
"debug.flaskEnterAppPathOrNamePathPrompt": "Enter path to application, e.g. 'app.py' or 'app'",
"debug.flaskEnterAppPathOrNamePathPrompt": "Enter the path to the application, e.g. 'app.py' or 'app'",
"debug.flaskEnterAppPathOrNamePathInvalidNameError": "Enter a valid name",
"debug.debugPyramidConfigurationLabel": "Pyramid",
"debug.debugPyramidConfigurationDescription": "Web Application",
Expand Down
1 change: 1 addition & 0 deletions src/client/common/utils/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export namespace DebugConfigStrings {
};
export const enterAppPathOrNamePath = {
title: localize('debug.flaskEnterAppPathOrNamePathTitle'),
prompt: localize('debug.flaskEnterAppPathOrNamePathPrompt'),
invalid: localize('debug.flaskEnterAppPathOrNamePathInvalidNameError')
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FlaskLaunchDebugConfigurationProvider implements IDebugConfiguratio
const selectedApp = await input.showInputBox({
title: DebugConfigStrings.flask.enterAppPathOrNamePath.title(),
value: 'app.py',
prompt: DebugConfigStrings.flask.selectConfiguration.description(),
prompt: DebugConfigStrings.flask.enterAppPathOrNamePath.prompt(),
validate: value => Promise.resolve((value && value.trim().length > 0) ? undefined : DebugConfigStrings.flask.enterAppPathOrNamePath.invalid())
});
if (selectedApp) {
Expand Down

0 comments on commit 79be7c8

Please sign in to comment.