Преглед на файлове

Fixes #478 - Stops adding suppressShowKeyBindingsNotice unnecessarily

main
Eric Amodio преди 6 години
родител
ревизия
754ffc4c77
променени са 2 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. +2
    -0
      CHANGELOG.md
  2. +4
    -5
      src/messages.ts

+ 2
- 0
CHANGELOG.md Целия файл

@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased] - 2018-08-16 ## [Unreleased] - 2018-08-16
### Fixed ### Fixed
- Fixes [#471](https://github.com/eamodio/vscode-gitlens/issues/471) - Don't use Ctrl+Alt+[character] as a shortcut - 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 ## [8.5.4] - 2018-07-31
### Added ### 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) - 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 Целия файл

@ -65,11 +65,10 @@ export class Messages {
} }
static async showKeyBindingsInfoMessage(): Promise<MessageItem | undefined> { 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; return undefined;
} }

Зареждане…
Отказ
Запис