Pārlūkot izejas kodu

Fixes #478 - Stops adding suppressShowKeyBindingsNotice unnecessarily

main
Eric Amodio pirms 6 gadiem
vecāks
revīzija
754ffc4c77
2 mainītis faili ar 6 papildinājumiem un 5 dzēšanām
  1. +2
    -0
      CHANGELOG.md
  2. +4
    -5
      src/messages.ts

+ 2
- 0
CHANGELOG.md Parādīt failu

@ -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 Parādīt failu

@ -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;
}

Notiek ielāde…
Atcelt
Saglabāt