Vscode-pull-request-github: Support to navigate to a TODO location in a file from an issue inside VS Code

Created on 5 Aug 2020  路  5Comments  路  Source: microsoft/vscode-pull-request-github

I add a TODO and that creates an issue, then I can assign it with @ but how do I make it so that an assignee can go directly to that TODO in code? We are mainly working on .ps1 files.

I see an option to start working on the issue and to open it on the web, but nothing to jump to that section in the file where that TODO was created it.

feature-request issues verification-found verification-needed verified

Most helpful comment

One idea @alexr00 and I have discussed is to resolve the permalink from the issue description shown in the hover locally inside VS Code by opening the corresponding editor location.

image

All 5 comments

This is an interesting feature request! I think we should be able to detect if an issue has a code link in the issue body and add a new context menu action to go to that location locally.

One idea @alexr00 and I have discussed is to resolve the permalink from the issue description shown in the hover locally inside VS Code by opening the corresponding editor location.

image

@egamma The line numbers could change over time. Unless that link is scanning dynamically then in that case, that would be great. Worse case scenario is just a link to the file would help.

To verify:

  • Have an issue show in the issues view or an issue link in a comment in a code file. The issue needs to have a GitHub permalink to a file that you have available in your current workspace.
  • Using the issue hover, click on the link in the issue.
  • Verify that the file is open in VS Code instead of in the browser. If the file hasn't changed much then the correct lines should match the permalink's lines.
  • Verify if that the file doesn't exist in the current workspace that the file is open on github.com.

I can't seem to get this to work.. the issue is here https://github.com/JacksonKearl/mixedCase/issues/2, opening that repo and clicking the entry in the hover taakes me to github.com, tested on codespaces and desktop, build 2020.9.41222

tested with https://github.com/microsoft/vscode-github-browser/issues/22 as well and no success

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Velyks picture Velyks  路  3Comments

adrinjalali picture adrinjalali  路  4Comments

radu-matei picture radu-matei  路  3Comments

paulirish picture paulirish  路  3Comments

dbaeumer picture dbaeumer  路  4Comments