-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Enhancements to link sharing in VS Code #175676
Comments
@alexr00 as part of this work I have a few proposed changes to GHPRI that I'd like your feedback on. Today there are vscode.dev links coming from the builtin GitHub extension, the GitHub Repositories extension, and the GHPRI extension. IMO the way this should work is: vscode.dev and desktop RemoteHub:
Desktop git:
github.dev and Codespaces:
In all of these cases, the Copy GitHub __ links should IMO always produce github.com links rather than contextualizing them as we currently do today. This is because github.com links render with a nice preview in GitHub issue and PR comments which is useful for providing context when discussing code, so I usually want an action to copy these. On the other hand, I want vscode.dev links in addition to github.com links, e.g. to deeplink to a notebook cell. And it would not make sense to offer vscode.dev links on github.dev or Codespaces since they are served from the github.dev origin (this is actually a flaw in the link generation logic today). I also propose the following link generation behavior when contributed to the various menus we have in VS Code:
|
Feedback from UX sync today
|
Integration with vscode.dev
Checkout in vscode.dev
command action to GHPRI view PR context menuOpen on vscode.dev
to desktop git branch pickerShare menu
Share
menu (vscode#172425):editor/title/context/share
explorer/context/share
SCM resource context menuscm/resourceState/context/share
Share
menu asShare > Start Collaboration Session
Copy __ link
to a new editor gutter context menu contribution point (ensure no conflict with gutter breakpoints)Link behavior
Copy GitHub Permalink
should always generate github.com permalinks links on desktop, vscode.dev, and github.devCopy vscode.dev link
should generate vscode.dev links and be present only on desktop and vscode.devCopy github.dev link
to generate github.dev links and be present only on github.devThe text was updated successfully, but these errors were encountered: