Skip to content

Commit cf079a4

Browse files
authored
Clean up button bar (#7099)
Fixes microsoft/vscode-copilot#18982
1 parent dbc0be1 commit cf079a4

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/github/issueOverview.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ export class IssueOverviewPanel<TItem extends IssueModel = IssueModel> extends W
321321
return this.addAssigneeYourself(message);
322322
case 'pr.add-assignee-copilot':
323323
return this.addAssigneeCopilot(message);
324-
case 'pr.copy-prlink':
325-
return this.copyItemLink();
326324
case 'pr.copy-vscodedevlink':
327325
return this.copyVscodeDevLink();
328326
case 'pr.openOnGitHub':

webviews/common/context.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export class PRContext {
3535

3636
public openChanges = () => this.postMessage({ command: 'pr.open-changes' });
3737

38-
public copyPrLink = () => this.postMessage({ command: 'pr.copy-prlink' });
39-
4038
public copyVscodeDevLink = () => this.postMessage({ command: 'pr.copy-vscodedevlink' });
4139

4240
public cancelCodingAgent = (event: TimelineEvent): Promise<CancelCodingAgentReply> => this.postMessage({ command: 'pr.cancel-coding-agent', args: event });

webviews/components/header.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Title({ title, titleHTML, number, url, inEditMode, setEditMode, setCurr
103103
}
104104

105105
function ButtonGroup({ isCurrentlyCheckedOut, canEdit, isIssue, repositoryDefaultBranch, setEditMode }) {
106-
const { refresh, copyPrLink, copyVscodeDevLink, openChanges } = useContext(PullRequestContext);
106+
const { refresh, copyVscodeDevLink, openChanges } = useContext(PullRequestContext);
107107

108108
return (
109109
<div className="button-group">
@@ -121,9 +121,6 @@ function ButtonGroup({ isCurrentlyCheckedOut, canEdit, isIssue, repositoryDefaul
121121
<button title="Rename" onClick={setEditMode} className="secondary small-button">
122122
Rename
123123
</button>
124-
<button title="Copy GitHub pull request link" onClick={copyPrLink} className="secondary small-button">
125-
Copy Link
126-
</button>
127124
<button title="Copy vscode.dev link for viewing this pull request in VS Code for the Web" onClick={copyVscodeDevLink} className="secondary small-button">
128125
Copy vscode.dev Link
129126
</button>
@@ -214,17 +211,14 @@ const CheckoutButtons = ({ isCurrentlyCheckedOut, isIssue, repositoryDefaultBran
214211
if (isCurrentlyCheckedOut) {
215212
return (
216213
<>
217-
<button aria-live="polite" className="checkedOut small-button" disabled>
218-
{checkIcon}{nbsp} Checked Out
219-
</button>
220214
<button
221215
aria-live="polite"
222216
title="Switch to a different branch than this pull request branch"
223217
disabled={isBusy}
224218
className='small-button'
225219
onClick={() => onClick('exitReviewMode')}
226220
>
227-
Checkout '{repositoryDefaultBranch}'
221+
{checkIcon}{nbsp} Checkout '{repositoryDefaultBranch}'
228222
</button>
229223
</>
230224
);

0 commit comments

Comments
 (0)