FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

settings: adding autoStartBrowserURL setting to customize the URL tha… by maxschmi · Pull Request #581 · microsoft/vscode-python-debugger · GitHub

settings: adding autoStartBrowserURL setting to customize the URL tha… - #581

Open
Max Schmit (maxschmi) wants to merge 1 commit into
microsoft:mainfrom
maxschmi:main
Open

settings: adding autoStartBrowserURL setting to customize the URL tha…#581
Max Schmit (maxschmi) wants to merge 1 commit into
microsoft:mainfrom
maxschmi:main

Conversation

Copy link
Copy Markdown

fixes #580

Added autoStartBrowserURL setting to customize the URL that is started on Browser Startup

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="University of Freiburg"

if (debugConfiguration.autoStartBrowser && (debugConfiguration.django || isFlask)) {
let pattern = '.*(?:(http|https):\\/\\/\\S+:[0-9]+\\/?).*';
if (debugConfiguration.autoStartBrowserURL !== undefined) {
pattern = `.*(${debugConfiguration.autoStartBrowserURL}).*`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Member

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!

Max Schmit (maxschmi) commented Feb 14, 2025
edited
Loading

Copy link
Copy Markdown
Author

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoStartBrowser starts the wrong url

3 participants


Back | FazBrowse Home | New Git URL