You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't jump into libraries from integrated terminal stack traces #2581
I'm not sure if this is an issue for the Dart-Code extension or if it's a VSCode thing (or if I just have some setting wrong), but I figured I'd start here.
When I print out a stack trace and click on a file link, VSCode fails to navigate to package files in my pub_cache.
For illustrative purposes in the screenshots, I navigated to the file by jumping to it when debugging. The file does not pop up when cmd+clicking the link.
This is unfortunately a limitation of VS Code. We have no ability to tell the terminal the terminal about package: links so it's unable to detect them and link them. You could raise this as a feature request at https://github.com/microsoft/vscode/issues and if an API was provided that allowed us to handle link detection for the terminal, we could contribute some rules.
Out of interest though - why are you running the app in the terminal?
I'm using the terminal because the debug console doesn't support cursor positioning and I want to print pretty progress bars and stuff. Also the debug console isn't interactive.
@Tyriar aha! I thought I'd seen it somewhere, but couldn't find it when searching the other day! I'll check it out and see if it does what we'd need. Thanks!
Activity
mymikemiller commentedon Jun 23, 2020
Note that searching the workspace for the text of the line does show the result, and I can click into the line in the editor.
DanTup commentedon Jun 24, 2020
This is unfortunately a limitation of VS Code. We have no ability to tell the terminal the terminal about
package:links so it's unable to detect them and link them. You could raise this as a feature request at https://github.com/microsoft/vscode/issues and if an API was provided that allowed us to handle link detection for the terminal, we could contribute some rules.Out of interest though - why are you running the app in the terminal?
mymikemiller commentedon Jun 25, 2020
Good to know, thanks.
I'm using the terminal because the debug console doesn't support cursor positioning and I want to print pretty progress bars and stuff. Also the debug console isn't interactive.
mymikemiller commentedon Jun 25, 2020
Filed a VSCode feature request: microsoft/vscode#101041
Tyriar commentedon Jun 25, 2020
The terminal link provider API just hit proposed, still open to feedback and it may change before becoming stable microsoft/vscode#91290
DanTup commentedon Jun 25, 2020
@Tyriar aha! I thought I'd seen it somewhere, but couldn't find it when searching the other day! I'll check it out and see if it does what we'd need. Thanks!
Add a teminal link provider for resolving package: URIs in terminal