Ver código fonte

Closes #1543: adds status bar id & name

main
Eric Amodio 3 anos atrás
pai
commit
1a6c1927c6
2 arquivos alterados com 16 adições e 2 exclusões
  1. +4
    -0
      CHANGELOG.md
  2. +12
    -2
      src/statusbar/statusBarController.ts

+ 4
- 0
CHANGELOG.md Ver arquivo

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

@ -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')) {

Carregando…
Cancelar
Salvar