Skip to content

Commit 6afd36f

Browse files
committed
Merge branch 'main' into alexr00/noisy-rat
2 parents b4e7444 + 164296e commit 6afd36f

23 files changed

Lines changed: 191 additions & 113 deletions

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@
609609
"default": [
610610
"TODO",
611611
"todo",
612-
"BUG",
613612
"FIXME",
614613
"ISSUE",
615614
"HACK"
@@ -618,7 +617,7 @@
618617
},
619618
"githubPullRequests.codingAgent.codeLens": {
620619
"type": "boolean",
621-
"default": true,
620+
"default": false,
622621
"description": "%githubPullRequests.codingAgent.codeLens.description%"
623622
},
624623
"githubIssues.createInsertFormat": {
-2.33 KB
Binary file not shown.

resources/icons/reactions/eyes.png

-2.7 KB
Binary file not shown.
-4.09 KB
Binary file not shown.
-4.44 KB
Binary file not shown.
-3.6 KB
Binary file not shown.
-5.17 KB
Binary file not shown.
-3.42 KB
Binary file not shown.
-3.48 KB
Binary file not shown.

src/commands.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export function registerCommands(
220220
if (activePullRequests.length >= 1) {
221221
const result = await chooseItem<PullRequestModel>(
222222
activePullRequests,
223-
itemValue => itemValue.html_url,
223+
itemValue => ({ label: itemValue.html_url }),
224224
);
225225
if (result) {
226226
openPullRequestOnGitHub(result, telemetry);
@@ -257,7 +257,7 @@ export function registerCommands(
257257
? (
258258
await chooseItem(
259259
activePullRequestsWithFolderManager,
260-
itemValue => itemValue.activePr.html_url,
260+
itemValue => ({ label: itemValue.activePr.html_url }),
261261
)
262262
)
263263
: activePullRequestsWithFolderManager[0];
@@ -436,7 +436,7 @@ export function registerCommands(
436436
}
437437
return chooseItem<ReviewManager>(
438438
reviewsManager.reviewManagers,
439-
itemValue => pathLib.basename(itemValue.repository.rootUri.fsPath),
439+
itemValue => ({ label: pathLib.basename(itemValue.repository.rootUri.fsPath) }),
440440
{ placeHolder: vscode.l10n.t('Choose a repository to create a pull request in'), ignoreFocusOut: true },
441441
);
442442
}
@@ -788,7 +788,7 @@ export function registerCommands(
788788
pullRequestModel = await chooseItem<PullRequestModel>(reposManager.folderManagers
789789
.map(folderManager => folderManager.activePullRequest!)
790790
.filter(activePR => !!activePR),
791-
itemValue => `${itemValue.number}: ${itemValue.title}`,
791+
itemValue => ({ label: `${itemValue.number}: ${itemValue.title}` }),
792792
{ placeHolder: vscode.l10n.t('Choose the pull request to exit') });
793793
} else {
794794
pullRequestModel = pr;
@@ -924,7 +924,7 @@ export function registerCommands(
924924
if (activePullRequests.length >= 1) {
925925
issueModel = await chooseItem<PullRequestModel>(
926926
activePullRequests,
927-
itemValue => itemValue.title,
927+
itemValue => ({ label: itemValue.title }),
928928
);
929929
}
930930
} else {
@@ -1602,7 +1602,7 @@ ${contents}
16021602
.filter(activePR => !!activePR);
16031603
pr = await chooseItem<PullRequestModel>(
16041604
activePullRequests,
1605-
itemValue => `${itemValue.number}: ${itemValue.title}`,
1605+
itemValue => ({ label: `${itemValue.number}: ${itemValue.title}` }),
16061606
{ placeHolder: vscode.l10n.t('Pull request to create a link for') },
16071607
);
16081608
}
@@ -1658,7 +1658,7 @@ ${contents}
16581658
}
16591659
const githubRepo = await chooseItem<{ manager: FolderRepositoryManager, repo: GitHubRepository }>(
16601660
githubRepositories,
1661-
itemValue => `${itemValue.repo.remote.owner}/${itemValue.repo.remote.repositoryName}`,
1661+
itemValue => ({ label: `${itemValue.repo.remote.owner}/${itemValue.repo.remote.repositoryName}` }),
16621662
{ placeHolder: vscode.l10n.t('Which GitHub repository do you want to checkout the pull request from?') }
16631663
);
16641664
if (!githubRepo) {
@@ -1694,7 +1694,7 @@ ${contents}
16941694
});
16951695
return chooseItem<GitHubRepository>(
16961696
githubRepositories,
1697-
itemValue => `${itemValue.remote.owner}/${itemValue.remote.repositoryName}`,
1697+
itemValue => ({ label: `${itemValue.remote.owner}/${itemValue.remote.repositoryName}` }),
16981698
{ placeHolder: vscode.l10n.t('Which GitHub repository do you want to open?') }
16991699
);
17001700
}
@@ -1918,7 +1918,7 @@ ${contents}
19181918

19191919
const pr = await chooseItem<PullRequestModel>(
19201920
activePullRequests,
1921-
itemValue => `${itemValue.number}: ${itemValue.title}`,
1921+
itemValue => ({ label: `${itemValue.number}: ${itemValue.title}` }),
19221922
{ placeHolder: vscode.l10n.t('Pull request to create a link for') },
19231923
);
19241924
if (pr) {

0 commit comments

Comments
 (0)