Skip to content

Commit f826b06

Browse files
authored
Merge branch 'main' into copilot/adopt-comment-draft-api-proposal
2 parents 0dbb1f7 + eb6eec4 commit f826b06

File tree

17 files changed

+131
-45
lines changed

17 files changed

+131
-45
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Changelog
22

3+
## 0.122.0
4+
5+
### Changes
6+
7+
- Auto-generated PR descriptions (via `githubPullRequests.pullRequestDescription`) will respect the repository PR template if there is one.
8+
- Icons in the Pull Requests view now render with codicons instead of Unicode characters.
9+
- Drafts in the Pull Requests view now render in italics instead of having a `[DRAFT]` prefix.
10+
11+
![Pull Requests view showing codicon labels and italic draft PR titles](./documentation/changelog/0.122.0/pr-labels.png)
12+
13+
- Emoji completions for `:smile:` style emojis are now available in review comments.
14+
15+
![Emoji completions in review comments](./documentation/changelog/0.122.0/emoji-completions.gif)
16+
17+
- [Markdown alert syntax](https://github.com/orgs/community/discussions/16925) is now rendered in review comments.
18+
19+
![Markdown alerts in review comments](./documentation/changelog/0.122.0/markdown-alerts.png)
20+
21+
- Opening an empty commit from a pull request webview shows an editor with a message instead of showing a notification.
22+
- Pull requests can be opened from from a url, for example: `vscode-insiders://github.vscode-pull-request-github/checkout-pull-request?uri=https://github.com/microsoft/vscode-css-languageservice/pull/460`
23+
- Icons are up-to-date with VS Code's latest icons.
24+
- If you start a review and want to cancel it, there's now a "Cancel Review" button in the pull request webview.
25+
26+
![Cancel review button](./documentation/changelog/0.122.0/cancel-review.png)
27+
28+
### Fixes
29+
30+
- Reactions to code comments are not showing up (Web). https://github.com/microsoft/vscode-pull-request-github/issues/2195
31+
- Editing a comment freezes VS Code. https://github.com/microsoft/vscode/issues/274455
32+
- Github Pull Request tab won't open if branch names are reused. https://github.com/microsoft/vscode-pull-request-github/issues/8007
33+
- Icons are misaligned. https://github.com/microsoft/vscode-pull-request-github/issues/7998
34+
- "Git is not installed or otherwise not available" even though it is. https://github.com/microsoft/vscode-pull-request-github/issues/5454
35+
36+
**_Thank You_**
37+
38+
* [@bendrucker (Ben Drucker)](https://github.com/bendrucker): Enable all LLM tools in prompts (agent mode) [PR #6956](https://github.com/microsoft/vscode-pull-request-github/pull/6956)
39+
* [@gerardbalaoro (Gerard Balaoro)](https://github.com/gerardbalaoro): Make branch list timeout configurable (#2840) [PR #7927](https://github.com/microsoft/vscode-pull-request-github/pull/7927)
40+
* [@wankun-tcj](https://github.com/wankun-tcj): Fix avatar display issue in Pull Request tree view [PR #7851](https://github.com/microsoft/vscode-pull-request-github/pull/7851)
41+
342
## 0.120.2
443

544
### Fixes
14.4 KB
Loading
45.7 KB
Loading
39.4 KB
Loading
18.7 KB
Loading

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,6 +3147,13 @@
31473147
"group": "1_modification@5"
31483148
}
31493149
],
3150+
"scm/repository": [
3151+
{
3152+
"command": "pr.create",
3153+
"when": "scmProvider =~ /^git|^remoteHub:github/ && scmProviderRootUri in github:reposNotInReviewMode",
3154+
"group": "inline"
3155+
}
3156+
],
31503157
"comments/commentThread/context": [
31513158
{
31523159
"command": "pr.createComment",

resources/icons/codicons/close.svg

Lines changed: 1 addition & 1 deletion
Loading

resources/icons/codicons/trash.svg

Lines changed: 1 addition & 1 deletion
Loading

src/@types/vscode.proposed.chatSessionsProvider.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ declare module 'vscode' {
123123
* Statistics about the chat session.
124124
*/
125125
statistics?: {
126+
/**
127+
* Number of files edited during the session.
128+
*/
129+
files: number;
130+
126131
/**
127132
* Number of insertions made during the session.
128133
*/

src/extension.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async function init(
265265

266266
await vscode.commands.executeCommand('setContext', 'github:initialized', true);
267267

268-
registerPostCommitCommandsProvider(reposManager, git);
268+
registerPostCommitCommandsProvider(context, reposManager, git);
269269

270270
// Resume any pending checkout request stored before workspace reopened.
271271
await resumePendingCheckout(reviewsManager, context, reposManager);
@@ -350,20 +350,20 @@ async function doRegisterBuiltinGitProvider(context: vscode.ExtensionContext, cr
350350
return false;
351351
}
352352

353-
function registerPostCommitCommandsProvider(reposManager: RepositoriesManager, git: GitApiImpl) {
353+
function registerPostCommitCommandsProvider(context: vscode.ExtensionContext, reposManager: RepositoriesManager, git: GitApiImpl) {
354354
const componentId = 'GitPostCommitCommands';
355355
class Provider implements PostCommitCommandsProvider {
356356

357357
getCommands(repository: Repository) {
358-
Logger.debug(`Looking for remote. Comparing ${repository.state.remotes.length} local repo remotes with ${reposManager.folderManagers.reduce((prev, curr) => prev + curr.gitHubRepositories.length, 0)} GitHub repositories.`, componentId);
358+
Logger.appendLine(`Looking for remote. Comparing ${repository.state.remotes.length} local repo remotes with ${reposManager.folderManagers.reduce((prev, curr) => prev + curr.gitHubRepositories.length, 0)} GitHub repositories.`, componentId);
359359
const repoRemotes = parseRepositoryRemotes(repository);
360360

361361
const found = reposManager.folderManagers.find(folderManager => folderManager.findRepo(githubRepo => {
362362
return !!repoRemotes.find(remote => {
363363
return remote.equals(githubRepo.remote);
364364
});
365365
}));
366-
Logger.debug(`Found ${found ? 'a repo' : 'no repos'} when getting post commit commands.`, componentId);
366+
Logger.appendLine(`Found ${found ? 'a repo' : 'no repos'} when getting post commit commands.`, componentId);
367367
return found ? [{
368368
command: 'pr.pushAndCreate',
369369
title: vscode.l10n.t('{0} Commit & Create Pull Request', '$(git-pull-request-create)'),
@@ -376,10 +376,10 @@ function registerPostCommitCommandsProvider(reposManager: RepositoriesManager, g
376376
return reposManager.folderManagers.some(folderManager => folderManager.gitHubRepositories.length > 0);
377377
}
378378
function tryRegister(): boolean {
379-
Logger.debug('Trying to register post commit commands.', 'GitPostCommitCommands');
379+
Logger.appendLine('Trying to register post commit commands.', 'GitPostCommitCommands');
380380
if (hasGitHubRepos()) {
381-
Logger.debug('GitHub remote(s) found, registering post commit commands.', componentId);
382-
git.registerPostCommitCommandsProvider(new Provider());
381+
Logger.appendLine('GitHub remote(s) found, registering post commit commands.', componentId);
382+
context.subscriptions.push(git.registerPostCommitCommandsProvider(new Provider()));
383383
return true;
384384
}
385385
return false;
@@ -395,7 +395,7 @@ function registerPostCommitCommandsProvider(reposManager: RepositoriesManager, g
395395
}
396396

397397
async function deferredActivateRegisterBuiltInGitProvider(context: vscode.ExtensionContext, apiImpl: GitApiImpl, credentialStore: CredentialStore) {
398-
Logger.debug('Registering built in git provider.', 'Activation');
398+
Logger.appendLine('Registering built in git provider.', 'Activation');
399399
if (!(await doRegisterBuiltinGitProvider(context, credentialStore, apiImpl))) {
400400
const extensionsChangedDisposable = vscode.extensions.onDidChange(async () => {
401401
if (await doRegisterBuiltinGitProvider(context, credentialStore, apiImpl)) {

0 commit comments

Comments
 (0)