Przeglądaj źródła

Closes #1543: adds status bar id & name

main
Eric Amodio 3 lat temu
rodzic
commit
1a6c1927c6
2 zmienionych plików z 16 dodań i 2 usunięć
  1. +4
    -0
      CHANGELOG.md
  2. +12
    -2
      src/statusbar/statusBarController.ts

+ 4
- 0
CHANGELOG.md Wyświetl plik

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased]
### Added
- Adopts new vscode `createStatusBarItem` API to allow for independent toggling — closes [#1543](https://github.com/eamodio/vscode-gitlens/issues/1543)
### Fixed
- Fixes [#1545](https://github.com/eamodio/vscode-gitlens/issues/1545) - Missing branch comparison controls in versions 11.5.0 and 11.5.1

+ 12
- 2
src/statusbar/statusBarController.ts Wyświetl plik

@ -61,7 +61,12 @@ export class StatusBarController implements Disposable {
this._statusBarMode =
this._statusBarMode ??
window.createStatusBarItem(alignment, alignment === StatusBarAlignment.Right ? 999 : 1);
window.createStatusBarItem(
'gitlens.mode',
alignment,
alignment === StatusBarAlignment.Right ? 999 : 1,
);
this._statusBarMode.name = 'GitLens Modes';
this._statusBarMode.command = Commands.SwitchMode;
this._statusBarMode.text = mode.statusBarItemName;
this._statusBarMode.tooltip = 'Switch GitLens Mode';
@ -87,7 +92,12 @@ export class StatusBarController implements Disposable {
this._statusBarBlame =
this._statusBarBlame ??
window.createStatusBarItem(alignment, alignment === StatusBarAlignment.Right ? 1000 : 0);
window.createStatusBarItem(
'gitlens.blame',
alignment,
alignment === StatusBarAlignment.Right ? 1000 : 0,
);
this._statusBarBlame.name = 'GitLens Current Line Blame';
this._statusBarBlame.command = Container.config.statusBar.command;
if (configuration.changed(e, 'statusBar.enabled')) {

Ładowanie…
Anuluj
Zapisz