Repository navigation
Conversation
Member
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Currently, VSCode/RobotCode struggles with the new ANSI Terminal Hyperlinks in console output. These hyperlinks take precedence over the
TerminalLinkProviderregistered by RobotCode in VSCode. However, theTerminalLinkProvideris crucial for correctly opening reports in different environments, particularly when using DevContainers or developing on a remote machine via SSH/WSL. In these cases, it's not straightforward to open local links since the client machine does not have access to the remote system viafile:URI.The
TerminalLinkProviderin RobotCode allows local links to be adjusted so they work correctly in such scenarios. To restore this functionality, I propose making the generation of ANSI Terminal Links disableable via an environment variable. RobotCode can then inject this environment variable into the terminal session in VSCode, allowing theTerminalLinkProviderto function as intended.Changes in this Pull Request:
First Commit:
Adds an environment variable that allows the generation of ANSI Terminal Links to be disabled. This ensures that the
TerminalLinkProviderin VSCode can work correctly, especially in more complex development environments like DevContainers or when using SSH/WSL.Second Commit:
Improves the generation of URIs by using the
pathlib.Path.as_urimethod. This method ensures that correct URIs are generated regardless of the environment. This is particularly important on Windows, as URIs must not contain spaces and must be correctly masked with%20, whichas_urihandles automatically.Additional Information:
These changes are backward-compatible and should not affect existing functionality.