ソースを参照

Fixes #1854 🤦reversed arguments

main
Eric Amodio 2年前
コミット
96b550ce1f
2個のファイルの変更10行の追加4行の削除
  1. +1
    -0
      CHANGELOG.md
  2. +9
    -4
      src/git/models/repository.ts

+ 1
- 0
CHANGELOG.md ファイルの表示

@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#1854](https://github.com/gitkraken/vscode-gitlens/issues/1854) - All repos have the same name
- Fixes [#1866](https://github.com/gitkraken/vscode-gitlens/issues/1866) - Copy SHA and Copy Message don't work from the views (commits, branches, etc)
- Fixes [#1865](https://github.com/gitkraken/vscode-gitlens/issues/1865) - Value shortOffset out of range for Intl.DateTimeFormat options property timeZoneName
- Fixes [#1742](https://github.com/gitkraken/vscode-gitlens/issues/1742) - New file lines keep jumping down

+ 9
- 4
src/git/models/repository.ts ファイルの表示

@ -212,13 +212,18 @@ export class Repository implements Disposable {
) {
folder = workspace.getWorkspaceFolder(uri) ?? folder;
if (folder != null) {
this.name = folder.name;
if (root) {
this.name = folder.name;
this.formattedName = this.name;
} else {
const relativePath = container.git.getRelativePath(folder.uri, uri);
this.formattedName = relativePath ? `${this.name} (${relativePath})` : this.name;
const relativePath = container.git.getRelativePath(uri, folder.uri);
if (relativePath) {
this.name = `${folder.name}/${relativePath}`;
this.formattedName = `${folder.name} (${relativePath})`;
} else {
this.name = folder.name;
this.formattedName = this.name;
}
}
} else {
this.name = basename(uri.path);

読み込み中…
キャンセル
保存