Add github.dev (VS Code Online) snippet per repository#130
Merged
Conversation
Closes #112 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a new per-repository snippet that opens the repository directly in the web-based VS Code editor (github.dev), making it easy for users to jump into editing without rewriting URLs.
Changes:
- Extend
GitHubSnippetProvider.AddSnippetsForRepositoryto emit an additional low-priority snippet. - New snippet title format:
{repositoryTitle} - VS Code Online. - New snippet URL format:
https://github.dev/{owner}/{repository}.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #112
Adds a quick jump into the web-based VS Code editor for every GitHub repository surfaced by the provider, so users can open a repo in github.dev without manually rewriting the URL.
Approach
Extend
GitHubSnippetProvider.AddSnippetsForRepositorywith one additional low-prioritySnippetModel:{repositoryTitle} - VS Code Onlinehttps://github.dev/{owner}/{repository}Because every repository source (user repos, organization repos, starred repos, and
ExtraRepositories) funnels throughAddSnippetsForRepository, the new snippet is emitted uniformly with no changes to the individual code paths or configuration.Notes