Skip to content

Commit f288e83

Browse files
Copilotalexr00
andcommitted
Update comment to document both URL formats
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent ad91009 commit f288e83

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uriHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export class UriHandler implements vscode.UriHandler {
8080
case UriHandlerPaths.OpenPullRequestWebview:
8181
return this._openPullRequestWebview(uri);
8282
case UriHandlerPaths.CheckoutPullRequest:
83-
// example vscode-insiders://github.vscode-pull-request-github/checkout-pull-request?%7B%22owner%22%3A%22alexr00%22%2C%22repo%22%3A%22playground%22%2C%22pullRequestNumber%22%3A714%7D
83+
// Simplified format example: vscode-insiders://github.vscode-pull-request-github/checkout-pull-request?uri=https://github.com/microsoft/vscode-css-languageservice/pull/460
84+
// Legacy format example: vscode-insiders://github.vscode-pull-request-github/checkout-pull-request?%7B%22owner%22%3A%22alexr00%22%2C%22repo%22%3A%22playground%22%2C%22pullRequestNumber%22%3A714%7D
8485
return this._checkoutPullRequest(uri);
8586
}
8687
}

0 commit comments

Comments
 (0)