Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 0 additions & 4 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ export async function openDescription(
// Create and show a new webview
if (issue instanceof PullRequestModel) {
await PullRequestOverviewPanel.createOrShow(telemetry, folderManager.context.extensionUri, folderManager, issue, undefined, preserveFocus);
/* __GDPR__
"pr.openDescription" : {}
*/
telemetry.sendTelemetryEvent('pr.openDescription');
} else {
await IssueOverviewPanel.createOrShow(telemetry, folderManager.context.extensionUri, folderManager, issue);
/* __GDPR__
Expand Down
10 changes: 9 additions & 1 deletion src/github/pullRequestOverview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as vscode from 'vscode';
import { OpenCommitChangesArgs } from '../../common/views';
import { openPullRequestOnGitHub } from '../commands';
import { IComment } from '../common/comment';
import { copilotEventToStatus, CopilotPRStatus, mostRecentCopilotEvent } from '../common/copilot';
import { COPILOT_LOGINS, copilotEventToStatus, CopilotPRStatus, mostRecentCopilotEvent } from '../common/copilot';
import { commands, contexts } from '../common/executeCommands';
import { disposeAll } from '../common/lifecycle';
import Logger from '../common/logger';
Expand Down Expand Up @@ -67,6 +67,14 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
toTheSide: boolean = false,
preserveFocus: boolean = true
) {

/* __GDPR__
"pr.openDescription" : {
"isCopilot" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
}
*/
telemetry.sendTelemetryEvent('pr.openDescription', { isCopilot: (issue.author.login === COPILOT_LOGINS[1]) ? 'true' : 'false' });

const activeColumn = toTheSide
? vscode.ViewColumn.Beside
: vscode.window.activeTextEditor
Expand Down