Skip to content

Commit

Permalink
Merge pull request #173615 from microsoft/tyriar/172068
Browse files Browse the repository at this point in the history
Fix match range of create pr quick fix
  • Loading branch information
Tyriar committed Feb 6, 2023
2 parents d948f68 + badc45c commit 056bc87
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,23 @@ export function gitCreatePr(): IInternalOptions {
id: 'Git Create Pr',
type: 'internal',
commandLineMatcher: GitPushCommandLineRegex,
// Example output:
// ...
// 9: remote:
// 8: remote: Create a pull request for 'my_branch' on GitHub by visiting:
// 7: remote: https://github.com/microsoft/vscode/pull/new/my_branch
// 6: remote:
// 5: remote: GitHub found x vulnerabilities on microsoft/vscode's default branch (...). To find out more, visit:
// 4: remote: https://github.com/microsoft/vscode/security/dependabot
// 3: remote:
// 2: To https://github.com/microsoft/vscode
// 1: * [new branch] my_branch -> my_branch
// 0: Branch 'my_branch' set up to track remote branch 'my_branch' from 'origin'.
outputMatcher: {
lineMatcher: GitCreatePrOutputRegex,
anchor: 'bottom',
offset: 0,
length: 5
offset: 3,
length: 6
},
commandExitResult: 'success',
getQuickFixes: (matchResult: ITerminalCommandMatchResult) => {
Expand Down

0 comments on commit 056bc87

Please sign in to comment.