[ENHANCEMENT] open report and log URL from terminal to default browser
Is your enhancement request related to a problem? Please describe. Sometimes I click on the report or log URL at the end of run in the terminal, to consult these HTML files. By default, VSCode opens it in a "simple browser" tab in my VSCode window. But this tab is rather narrow, stuck between my editor and my terminal tabs.
Describe the solution you'd like I would like these links to open directly in my regular browser, so that I can have a full view of the file, not a narrow display that messes up my VSCode window.
Describe alternatives you've considered As discussed on Slack alternatives are:
-
click the shortcut on the top right of the "simple browser" tab, but this requires more actions:
- click on the URL in terminal
- navigate to shortcut
- click shortcut
-
Open-in-browser extension, adds a quick way to open html files to default browser, but this does not help with URL in terminal (I think), only with files in explorer or open in editor. It does not help much with "timestamped" reports either, because then I first need to find the right report in my output directory.
Additional context This issue has been discussed in 2017 on Stack Overflow, and the conclusion at the time was that VSCode dev would not do any enhancement regarding URL in terminal. Maybe there is another way to do it easily, but I have not found it.
As the initial reporter of this enhancement, I suggest closing it, since a new feature has been introduced in RobotFramework 7.1 which solves this issue:
Paths to log and report written to the console after execution are hyperlinks making it easier to open them in a browser (https://github.com/robotframework/robotframework/issues/5189). This requires the terminal to support hyperlinks, but practically all Linux and OSX terminals support them and although the classic Windows Console does not, the newer Windows Terminal and most third-party terminals on Windows are compatible.
However, RobotCode default behavior is to disable this change... see #391