Skip to content
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

Visual Studio Code's Terminal allows click in URL but truncates its string if comma is found #31460

Closed
juniormayhe opened this issue Jul 26, 2017 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Milestone

Comments

@juniormayhe
Copy link

  • VSCode Version: Code 1.14.2 (cb82feb, 2017-07-19T23:34:09.706Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author (truncated) Version
vscode-css-formatter aes 0.0.2

Steps to Reproduce:

  1. Create a free account at https://darksky.net/dev/ and copy your API Key
  2. Install node, open VS Code, open a folder for your node project
  3. Show your terminal ( CTRL + ' ) bash.exe in VS Code
  4. In temrinal run npm init to initialize package.json and node_modules folder
  5. Still in your project folder create a app.js with the statement and save the file: console.log('https://api.darksky.net/forecast/YOURAPIKEY/-23.5567497,-46.6541193');
  6. Run the app in terminal: node app.js
  7. On Terminal your app will print the URL
  8. try to click the url displayed in Terminal
  9. Terminal (bash.exe) will open your browser and take you to a truncated URL:
    https://api.darksky.net/forecast/YOURAPIKEY/-23.5567497
  10. The trailing part of URL ',-46.6541193' is being ignored!

Reproduces without extensions: Yes/No - Doesn't matter

@vscodebot vscodebot bot added the terminal Integrated terminal issues label Jul 26, 2017
@juniormayhe juniormayhe changed the title VIsual Studio Code's Terminal allows click in URL but truncates its string if comma is found Visual Studio Code's Terminal allows click in URL but truncates its string if comma is found Jul 26, 2017
@cleidigh
Copy link
Contributor

@juniormayhe
cc @Tyriar
This is platform-independent, I have verified the same behavior in Windows.
It is also a different URL handling than the editor links.
The terminal link handler will truncate links with either comma or & whereas the editor will handle both.
I think this can be addressed within VS code, however, if it entails changes to xterm
it would become an upstream issue.

@Tyriar
Copy link
Member

Tyriar commented Jul 28, 2017

Easier repro 😃

  1. Open terminal
  2. echo 'https://api.darksky.net/forecast/YOURAPIKEY/-23.5567497,-46.6541193'
  3. ctrl/cmd+hover the link

screen shot 2017-07-28 at 9 38 30 am

@cleidigh this is an upstream issue as all the URL detection is done in xterm.js. Upstream issue: xtermjs/xterm.js#583

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jul 28, 2017
@Tyriar Tyriar added this to the Backlog milestone Jul 28, 2017
@Tyriar
Copy link
Member

Tyriar commented Dec 23, 2017

Merging into #21125

@Tyriar Tyriar closed this as completed Dec 23, 2017
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 23, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants