Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix match range of create pr quick fix #173615

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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