-
Notifications
You must be signed in to change notification settings - Fork 41
settings: adding autoStartBrowserURL setting to customize the URL tha… #581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…t is opened when the browser starts
@microsoft-github-policy-service agree company="University of Freiburg" |
@@ -147,8 +147,12 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc | |||
const isFastAPI = LaunchConfigurationResolver.isDebuggingFastAPI(debugConfiguration); | |||
const isFlask = LaunchConfigurationResolver.isDebuggingFlask(debugConfiguration); | |||
if (debugConfiguration.autoStartBrowser && (debugConfiguration.django || isFlask)) { | |||
let pattern = '.*(?:(http|https):\\/\\/\\S+:[0-9]+\\/?).*'; | |||
if (debugConfiguration.autoStartBrowserURL !== undefined) { | |||
pattern = `.*(${debugConfiguration.autoStartBrowserURL}).*`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reasoning behind having the .*
appended here instead of just having the user submit the exact string match they want in the setting? This feels like it might confuse people if they manual configure with the starting *
on their own
apologies for the delay- I added a comment with a quick question and have also began some discussions with my team around the addition of a config option. Thanks! |
Hello, My Idea was to use your regular expression pattern searching implementation that is already there. As there were the point in front and after the searching group I kept those. I guess they are there because the pattern looks for complete lines. So in the end you can simply enter the URL as hard coded string and it will work or you can enter your own regular expression pattern. But I see your point that this might be confusing and probably unnessecary. |
fixes #580
Added
autoStartBrowserURL
setting to customize the URL that is started on Browser Startup