Skip to content

Add github.dev (VS Code Online) snippet per repository#130

Merged
maraf merged 1 commit into
mainfrom
maraf/add-github-dev-snippet
Apr 22, 2026
Merged

Add github.dev (VS Code Online) snippet per repository#130
maraf merged 1 commit into
mainfrom
maraf/add-github-dev-snippet

Conversation

@maraf

@maraf maraf commented Apr 22, 2026

Copy link
Copy Markdown
Member

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.AddSnippetsForRepository with one additional low-priority SnippetModel:

  • Title: {repositoryTitle} - VS Code Online
  • URL: https://github.dev/{owner}/{repository}

Because every repository source (user repos, organization repos, starred repos, and ExtraRepositories) funnels through AddSnippetsForRepository, the new snippet is emitted uniformly with no changes to the individual code paths or configuration.

Notes

  • No new configuration flag: the link applies to any GitHub repo and has no runtime cost.
  • Title wording matches the issue phrasing ("vscode online") and sits alongside the existing sub-entries (Issues, Pulls, Find file, Code search, My activity).

Closes #112

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@maraf maraf requested a review from Copilot April 22, 2026 15:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.AddSnippetsForRepository to 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.

@maraf maraf merged commit 17a6de1 into main Apr 22, 2026
5 checks passed
@maraf maraf deleted the maraf/add-github-dev-snippet branch April 22, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub link to vscode online

2 participants