Преглед на файлове

fixes: Gitea file link being incorrectly formatted

Closes #2252
Closes #2448
Follow-up to 5f95876a97
main
WofWca преди 1 година
committed by Eric Amodio
родител
ревизия
bda0079b12
променени са 3 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -0
      README.md
  3. +3
    -3
      src/git/remotes/gitea.ts

+ 1
- 0
CHANGELOG.md Целия файл

@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#2583](https://github.com/gitkraken/vscode-gitlens/issues/2583) - Regression with _Open Worktree for Pull Request via GitLens..._ command
- Fixes [#2252](https://github.com/gitkraken/vscode-gitlens/issues/2252) - "Copy As"/"Copy Remote File Url" copies %23 instead of # in case of Gitea — thanks to [PR #2603](https://github.com/gitkraken/vscode-gitlens/pull/2603) by WofWca ([@WofWca](https://github.com/WofWca))
- Fixes [#2582](https://github.com/gitkraken/vscode-gitlens/issues/2582) - _Visual File History_ background color when in a panel
## [13.4.0] - 2023-03-16

+ 1
- 0
README.md Целия файл

@ -1225,6 +1225,7 @@ A big thanks to the people that have contributed to this project:
- Yan Zhang ([@Eskibear](https://github.com/Eskibear)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=Eskibear)
- Zyck ([@qzyse2017](https://github.com/qzyse2017)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=qzyse2017)
- Yonatan Greenfeld ([@YonatanGreenfeld](https://github.com/YonatanGreenfeld)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=YonatanGreenfeld)
- WofWca ([@WofWca](https://github.com/WofWca)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=WofWca)
Also special thanks to the people that have provided support, testing, brainstorming, etc:

+ 3
- 3
src/git/remotes/gitea.ts Целия файл

@ -144,9 +144,9 @@ export class GiteaRemote extends RemoteProvider {
line = '';
}
if (sha) return this.encodeUrl(`${this.baseUrl}/src/commit/${sha}/${fileName}${line}`);
if (branch) return this.encodeUrl(`${this.baseUrl}/src/branch/${branch}/${fileName}${line}`);
if (sha) return `${this.encodeUrl(`${this.baseUrl}/src/commit/${sha}/${fileName}`)}${line}`;
if (branch) return `${this.encodeUrl(`${this.baseUrl}/src/branch/${branch}/${fileName}`)}${line}`;
// this route is deprecated but there is no alternative
return this.encodeUrl(`${this.baseUrl}/src/${fileName}${line}`);
return `${this.encodeUrl(`${this.baseUrl}/src/${fileName}`)}${line}`;
}
}

Зареждане…
Отказ
Запис