Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Fixes issue where the button text on feature gates would blend into the background ([#4833](https://github.com/gitkraken/vscode-gitlens/issues/4833))
- Fixes issue where Interactive Rebase elements overlap when using keyboard and mouse navigation simultaneously ([#4816](https://github.com/gitkraken/vscode-gitlens/issues/4816))
- Fixes [#4776](https://github.com/gitkraken/vscode-gitlens/issues/4776) Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization — thanks to [PR #4777](https://github.com/gitkraken/vscode-gitlens/pull/4777) by Daniel Asher ([@danielasher115](https://github.com/danielasher115))
- Fixes issue where _Load more_ in the _Commits_ view would not correctly load if the last item was a stash

## [17.8.1] - 2025-12-18
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ A big thanks to the people that have contributed to this project 🙏❤️:
- Jordon Kashanchi ([@jordonkash](https://github.com/JordonKash)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jordonkash)
- JounQin ([@JounQin](https://github.com/JounQin)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=JounQin)
- Noritaka Kobayashi ([@noritaka1166](https://github.com/noritaka1166)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=noritaka1166)
- Daniel Asher ([@danielasher115](https://github.com/danielasher115)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=danielasher115)

Also special thanks to the people that have provided support, testing, brainstorming, etc:

Expand Down
6 changes: 4 additions & 2 deletions src/git/remotes/azure-devops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type { LocalInfoFromRemoteUriResult, RemoteProviderId } from './remotePro
import { RemoteProvider } from './remoteProvider';

const gitRegex = /\/_git\/?/i;
const gitTailRegex = /\/_git(?:\/.*)?$/i;
const legacyDefaultCollectionRegex = /^DefaultCollection\//i;
const orgAndProjectRegex = /^(.*?)\/(.*?)\/(.*)/;
const sshDomainRegex = /^(ssh|vs-ssh)\./i;
Expand Down Expand Up @@ -70,8 +71,9 @@ export class AzureDevOpsRemote extends RemoteProvider {
}

protected override get issueLinkPattern(): string {
const workUrl = this.baseUrl.replace(gitRegex, '/');
return `${workUrl}/_workitems/edit/<num>`;
const projectUrl = this.baseUrl.replace(gitTailRegex, '');
const orgUrl = projectUrl.substring(0, projectUrl.lastIndexOf('/'));
return `${orgUrl}/_workitems/edit/<num>`;
}

private _autolinks: (AutolinkReference | DynamicAutolinkReference)[] | undefined;
Expand Down
Loading