Skip to content

Commit

Permalink
Move copy commands to share menu (#3971)
Browse files Browse the repository at this point in the history
and clean up API proposals
Part of microsoft/vscode#157722
  • Loading branch information
alexr00 committed Sep 21, 2022
1 parent 945875a commit bf07a87
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"enabledApiProposals": [
"tokenInformation",
"commentsResolvedState",
"badges",
"contribViewSize",
"contribShareMenu",
"treeItemCheckbox",
"contribCommentPeekContext"
],
Expand Down Expand Up @@ -1714,18 +1713,38 @@
"when": "commentController =~ /^github-(browse|review)/"
}
],
"editor/context/copy": [
"editor/context/share": [
{
"command": "issue.copyGithubPermalink",
"when": "gitHubOpenRepositoryCount != 0"
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@0"
},
{
"command": "issue.copyMarkdownGithubPermalink",
"when": "gitHubOpenRepositoryCount != 0"
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@1"
},
{
"command": "issue.copyGithubHeadLink",
"when": "gitHubOpenRepositoryCount != 0"
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@2"
}
],
"file/share": [
{
"command": "issue.copyGithubPermalink",
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@0"
},
{
"command": "issue.copyMarkdownGithubPermalink",
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@1"
},
{
"command": "issue.copyGithubHeadLink",
"when": "gitHubOpenRepositoryCount != 0",
"group": "1_githubPullRequests@2"
}
],
"editor/title/context": [
Expand Down

0 comments on commit bf07a87

Please sign in to comment.