Explorar el Código

Fixes #478 - Stops adding suppressShowKeyBindingsNotice unnecessarily

main
Eric Amodio hace 6 años
padre
commit
754ffc4c77
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. +2
    -0
      CHANGELOG.md
  2. +4
    -5
      src/messages.ts

+ 2
- 0
CHANGELOG.md Ver fichero

@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar