Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*--------------------------------------------------------------------------------------------*/
'use strict';




import * as pathLib from 'path';
import * as vscode from 'vscode';


Comment on lines +7 to +13
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several consecutive blank lines were inserted after 'use strict'; and between imports. Please reformat with Prettier to keep spacing consistent and avoid unnecessary diff churn.

Suggested change
import * as pathLib from 'path';
import * as vscode from 'vscode';
import * as pathLib from 'path';
import * as vscode from 'vscode';

Copilot uses AI. Check for mistakes.
import { GitErrorCodes } from './api/api1';
import { CommentReply, resolveCommentHandler } from './commentHandlerResolver';
import { IComment } from './common/comment';
Expand All @@ -29,6 +34,7 @@ import { ReviewManager } from './view/reviewManager';
import { CategoryTreeNode } from './view/treeNodes/categoryNode';
import { CommitNode } from './view/treeNodes/commitNode';
import { DescriptionNode } from './view/treeNodes/descriptionNode';

import {
FileChangeNode,
GitFileChangeNode,
Expand Down
6 changes: 6 additions & 0 deletions src/commentHandlerResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
*--------------------------------------------------------------------------------------------*/
'use strict';




import * as vscode from 'vscode';


Comment on lines +7 to +12
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several consecutive blank lines were inserted between 'use strict'; and the first import, plus extra blank lines between imports. Please reformat with Prettier to match the repository’s standard spacing and reduce unnecessary diffs.

Suggested change
import * as vscode from 'vscode';
import * as vscode from 'vscode';

Copilot uses AI. Check for mistakes.
import Logger from './common/logger';
import { GHPRComment, GHPRCommentThread, TemporaryComment } from './github/prComment';

Expand All @@ -23,6 +28,7 @@ export interface CommentHandler {
unresolveReviewThread(thread: GHPRCommentThread, input?: string): Promise<void>;
}


export interface CommentReply {
thread: GHPRCommentThread;
text: string;
Expand Down
7 changes: 7 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/




export const EXTENSION_ID = 'GitHub.vscode-pull-request-github';
export const VSLS_REQUEST_NAME = 'git';


export const VSLS_GIT_PR_SESSION_NAME = 'ghpr';

export const VSLS_REPOSITORY_INITIALIZATION_NAME = 'initialize';

Comment on lines +6 to +16
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank lines were introduced between constant exports. Please reformat (Prettier) to keep related constants grouped without multiple empty lines, reducing diff noise.

Suggested change
export const EXTENSION_ID = 'GitHub.vscode-pull-request-github';
export const VSLS_REQUEST_NAME = 'git';
export const VSLS_GIT_PR_SESSION_NAME = 'ghpr';
export const VSLS_REPOSITORY_INITIALIZATION_NAME = 'initialize';
export const EXTENSION_ID = 'GitHub.vscode-pull-request-github';
export const VSLS_REQUEST_NAME = 'git';
export const VSLS_GIT_PR_SESSION_NAME = 'ghpr';
export const VSLS_REPOSITORY_INITIALIZATION_NAME = 'initialize';

Copilot uses AI. Check for mistakes.
export const VSLS_STATE_CHANGE_NOTIFY_NAME = 'statechange';
export const FOCUS_REVIEW_MODE = 'github:focusedReview';
7 changes: 7 additions & 0 deletions src/experimentationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,28 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/



import * as vscode from 'vscode';
import TelemetryReporter from 'vscode-extension-telemetry';
import {
getExperimentationService,
IExperimentationService,
IExperimentationTelemetry,
TargetPopulation,

Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an extra blank line inside the imported symbol list (before the closing brace). This is inconsistent with the repo’s Prettier formatting; please reformat the import block to remove the stray blank line.

Suggested change

Copilot uses AI. Check for mistakes.
} from 'vscode-tas-client';



/* __GDPR__

"query-expfeature" : {
"ABExp.queriedFeature": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/


export class ExperimentationTelemetry implements IExperimentationTelemetry {
private sharedProperties: Record<string, string> = {};

Expand Down
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/



Comment on lines 5 to +7
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple consecutive blank lines were added before the first statement. This doesn’t appear intentional and makes the file diverge from Prettier formatting; please remove the extra blank lines.

Suggested change

Copilot uses AI. Check for mistakes.
'use strict';
import * as vscode from 'vscode';
import TelemetryReporter from 'vscode-extension-telemetry';
import { LiveShare } from 'vsls/vscode.js';
import { Repository } from './api/api';
import { GitApiImpl } from './api/api1';

import { registerCommands } from './commands';
import { commands } from './common/executeCommands';
import Logger from './common/logger';
import * as PersistentState from './common/persistentState';

import { Resource } from './common/resources';
import { SessionState } from './common/sessionState';
import { BRANCH_PUBLISH, FILE_LIST_LAYOUT, PR_SETTINGS_NAMESPACE } from './common/settingKeys';
Expand Down
10 changes: 8 additions & 2 deletions src/extensionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { IAccount } from './github/interface';
import
{ IAccount } from './github/interface';



Comment on lines +6 to 10
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The named import is split across lines ("import" on one line, "{ IAccount }" on the next) and followed by multiple blank lines. Prettier will typically format this as a single-line import; please reformat to the standard style to keep diffs clean.

Suggested change
import
{ IAccount } from './github/interface';
import { IAccount } from './github/interface';

Copilot uses AI. Check for mistakes.
// Synced keys
export const NEVER_SHOW_PULL_NOTIFICATION = 'github.pullRequest.pullNotification.show';
Expand All @@ -13,7 +16,9 @@ export const REPO_KEYS = 'github.pullRequest.repos';

export interface RepoState {
mentionableUsers?: IAccount[];

stateModifiedTime?: number;

}

export interface ReposState {
Expand All @@ -22,4 +27,5 @@ export interface ReposState {

export function setSyncedKeys(context: vscode.ExtensionContext) {
context.globalState.setKeysForSync([NEVER_SHOW_PULL_NOTIFICATION]);
}
}

2 changes: 2 additions & 0 deletions src/gitExtensionIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface Repository {
readonly description: string | null;
readonly clone_url: string;
readonly ssh_url: string;

Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s an extra blank line at the end of this interface definition. It’s minor, but it adds diff noise and is typically removed by Prettier; please reformat to the standard style.

Suggested change

Copilot uses AI. Check for mistakes.
}

function repoResponseAsRemoteSource(raw: OctokitCommon.SearchReposResponseItem): RemoteSource {
Expand All @@ -20,6 +21,7 @@ function repoResponseAsRemoteSource(raw: OctokitCommon.SearchReposResponseItem):
description: raw.description || undefined,
url: raw.url,
};

}

function asRemoteSource(raw: Repository): RemoteSource {
Expand Down
7 changes: 7 additions & 0 deletions src/gitProviders/builtinGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ export class BuiltinGitProvider implements IGit, vscode.Disposable {
return this._gitAPI.repositories as any[];
}




get state(): APIState {
return this._gitAPI.state;


Comment on lines +20 to +21
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This getter includes whitespace-only blank lines around the return statement. Please run Prettier (or remove the extra blank lines) to match the repo’s formatting and avoid unnecessary diff churn.

Suggested change

Copilot uses AI. Check for mistakes.
}



private _onDidOpenRepository = new vscode.EventEmitter<Repository>();
readonly onDidOpenRepository: vscode.Event<Repository> = this._onDidOpenRepository.event;
private _onDidCloseRepository = new vscode.EventEmitter<Repository>();
Expand Down
6 changes: 6 additions & 0 deletions src/gitProviders/vslshost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ import {
VSLS_REPOSITORY_INITIALIZATION_NAME,
VSLS_REQUEST_NAME,
VSLS_STATE_CHANGE_NOTIFY_NAME,


Comment on lines +14 to +15
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are whitespace-only blank lines inside this import list (including a line containing only tabs/spaces). This creates noisy diffs and will likely be reverted by Prettier; please remove the extra blank lines/whitespace and reformat the imports.

Suggested change

Copilot uses AI. Check for mistakes.
} from '../constants';




export class VSLSHost implements vscode.Disposable {
private _sharedService?: SharedService;
private _disposables: vscode.Disposable[];
constructor(private _liveShareAPI: LiveShare, private _api: API) {
this._disposables = [];
}


public async initialize() {
this._sharedService = (await this._liveShareAPI!.shareService(VSLS_GIT_PR_SESSION_NAME)) || undefined;

Expand Down