diff --git a/CHANGELOG.md b/CHANGELOG.md index b669f0b..8579ef4 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/src/statusbar/statusBarController.ts b/src/statusbar/statusBarController.ts index a5280a6..5d478cc 100644 --- a/src/statusbar/statusBarController.ts +++ b/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')) {