Ver a proveniência

Fixes #1854 🤦reversed arguments

main
Eric Amodio há 2 anos
ascendente
cometimento
96b550ce1f
2 ficheiros alterados com 10 adições e 4 eliminações
  1. +1
    -0
      CHANGELOG.md
  2. +9
    -4
      src/git/models/repository.ts

+ 1
- 0
CHANGELOG.md Ver ficheiro

@ -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 Ver ficheiro

@ -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);

Carregando…
Cancelar
Guardar