GitHub - add "Open on GitHub" action to timeline context menu (#238144)

This commit is contained in:
Ladislau Szomoru
2025-01-17 18:19:04 +01:00
committed by GitHub
parent e56738181f
commit bb655894c2
3 changed files with 53 additions and 18 deletions

View File

@@ -32,7 +32,8 @@
"contribShareMenu",
"contribSourceControlHistoryItemMenu",
"scmHistoryProvider",
"shareProvider"
"shareProvider",
"timeline"
],
"contributes": {
"commands": [
@@ -61,6 +62,11 @@
"command": "github.graph.openOnGitHub",
"title": "%command.openOnGitHub%",
"icon": "$(github)"
},
{
"command": "github.timeline.openOnGitHub",
"title": "%command.openOnGitHub%",
"icon": "$(github)"
}
],
"continueEditSession": [
@@ -97,6 +103,10 @@
{
"command": "github.openOnVscodeDev",
"when": "false"
},
{
"command": "github.timeline.openOnGitHub",
"when": "false"
}
],
"file/share": [
@@ -152,6 +162,13 @@
"when": "github.hasGitHubRepo",
"group": "1_open@1"
}
],
"timeline/item/context": [
{
"command": "github.timeline.openOnGitHub",
"group": "1_actions@3",
"when": "github.hasGitHubRepo && timelineItem =~ /git:file:commit\\b/"
}
]
},
"configuration": [