Przeglądaj źródła

Fixes #478 - Stops adding suppressShowKeyBindingsNotice unnecessarily

main
Eric Amodio 6 lat temu
rodzic
commit
754ffc4c77
2 zmienionych plików z 6 dodań i 5 usunięć
  1. +2
    -0
      CHANGELOG.md
  2. +4
    -5
      src/messages.ts

+ 2
- 0
CHANGELOG.md Wyświetl plik

@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased] - 2018-08-16
### Fixed
- Fixes [#471](https://github.com/eamodio/vscode-gitlens/issues/471) - Don't use Ctrl+Alt+[character] as a shortcut
- Fixes [#478](https://github.com/eamodio/vscode-gitlens/issues/478) - `suppressShowKeyBindingsNotice` gets saved even when it is not required
## [8.5.4] - 2018-07-31
### Added
- Adds *Checkout Commit (via Terminal)* command (`gitlens.terminalCheckoutCommit`) to commit node(s) of the *GitLens* explorer — closes [#463](https://github.com/eamodio/vscode-gitlens/issues/463)

+ 4
- 5
src/messages.ts Wyświetl plik

@ -65,11 +65,10 @@ export class Messages {
}
static async showKeyBindingsInfoMessage(): Promise<MessageItem | undefined> {
if (Container.config.advanced.messages.suppressShowKeyBindingsNotice) return undefined;
if (Container.config.keymap !== KeyMap.Alternate) {
await this.suppressedMessage(SuppressedMessages.ShowKeyBindingsNotice);
if (
Container.config.keymap !== KeyMap.Alternate ||
Container.config.advanced.messages.suppressShowKeyBindingsNotice
) {
return undefined;
}

Ładowanie…
Anuluj
Zapisz