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

Integrated Terminal links with mixed styles don't work #25991

Closed
stijnvanderlaan opened this issue May 5, 2017 · 10 comments · Fixed by #33954
Closed

Integrated Terminal links with mixed styles don't work #25991

stijnvanderlaan opened this issue May 5, 2017 · 10 comments · Fixed by #33954
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded

Comments

@stijnvanderlaan
Copy link

stijnvanderlaan commented May 5, 2017

  • VSCode Version:
    1.12.1
  • OS Version:
    OS X El Capitan (10.11.5)

Steps to Reproduce:

  1. Cmd+Click on link in terminal (src/tests/index.test.js:26:56)
  2. No underline appears and clicking does nothing

It did work in previous version 1.11 (without line number).

@stijnvanderlaan stijnvanderlaan changed the title Integrated Terminal link has stopped working Integrated Terminal links no longer work May 5, 2017
@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

Cannot reproduce:

screen shot 2017-05-05 at 9 05 48 am

Can you provide a screenshot of the text that isn't working? Also make sure that the path is relative to the folder opened in VS Code, not the current working directory of the terminal.

@Tyriar Tyriar closed this as completed May 5, 2017
@Tyriar Tyriar added the info-needed Issue requires more information from poster label May 5, 2017
@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented May 5, 2017

screen shot 2017-05-05 at 18 12 58
screen shot 2017-05-05 at 18 14 15

No link in the screenshot is clickable. I can't even click on absolute links.

@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

@stijnvanderlaan hm, still can't repro 😕

screen shot 2017-05-05 at 9 32 45 am

Just to confirm, you're holding cmd right?

@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented May 5, 2017

Yes, It does still work in the editor, only not in de terminal. Only URLs in terminal work.

@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

@stijnvanderlaan that screenshot's from the terminal, it works with the :x:y annotation too.

Could you check the devtools console for errors? (Help > Toggle Developer Tools)

@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented May 5, 2017

I think it got something to do with the coloring of the PASS in front of the test. I also cannot reproduce it when I console a simple string.

@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented May 5, 2017

Nope thats not it. It's because the last part of the string is bold:

var colors = require('colors');
console.log("src" + "/index.test.js".bold)

@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented May 5, 2017

@Tyriar Can you re-open this?
Also when the line/column number has a style it's not becoming a link:
var colors = require('colors');
console.log("src" + "/index.test.js" + "1:1".bold)

(no error in Developer Tools)

@Tyriar Tyriar reopened this May 5, 2017
@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

It's because the last part of the string is bold

Yes I think this is the issue. The underlying issue is related to this one: xtermjs/xterm.js#642 #24743

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels May 5, 2017
@Tyriar Tyriar changed the title Integrated Terminal links no longer work Integrated Terminal links with mixed styles don't work May 5, 2017
@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

Upstream issue: xtermjs/xterm.js#654

@Tyriar Tyriar added this to the September 2017 milestone Sep 10, 2017
@roblourens roblourens added the verified Verification succeeded label Sep 27, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
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 terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants