Преглед изворни кода

Closes #1543: adds status bar id & name

main
Eric Amodio пре 3 година
родитељ
комит
1a6c1927c6
2 измењених фајлова са 16 додато и 2 уклоњено
  1. +4
    -0
      CHANGELOG.md
  2. +12
    -2
      src/statusbar/statusBarController.ts

+ 4
- 0
CHANGELOG.md Прегледај датотеку

@ -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 Прегледај датотеку

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

Loading…
Откажи
Сачувај