Ver código fonte

Fixes Focus view refresh button state

main
Eric Amodio 1 ano atrás
pai
commit
0cc2f3def6
3 arquivos alterados com 1 adições e 13 exclusões
  1. +1
    -1
      package.json
  2. +0
    -1
      src/constants.ts
  3. +0
    -11
      src/plus/webviews/focus/focusWebview.ts

+ 1
- 1
package.json Ver arquivo

@ -10278,7 +10278,7 @@
},
{
"command": "gitlens.focus.refresh",
"when": "gitlens:focus:focused",
"when": "gitlens:webview:focus:active",
"group": "navigation@-98"
}
],

+ 0
- 1
src/constants.ts Ver arquivo

@ -520,7 +520,6 @@ export type ContextKeys =
| `${typeof extensionPrefix}:disabledToggleCodeLens`
| `${typeof extensionPrefix}:disabled`
| `${typeof extensionPrefix}:enabled`
| `${typeof extensionPrefix}:focus:focused` // TODO@eamodio do we need this
| `${typeof extensionPrefix}:hasConnectedRemotes`
| `${typeof extensionPrefix}:hasRemotes`
| `${typeof extensionPrefix}:hasRichRemotes`

+ 0
- 11
src/plus/webviews/focus/focusWebview.ts Ver arquivo

@ -74,17 +74,6 @@ export class FocusWebviewProvider implements WebviewProvider {
return [registerCommand(Commands.RefreshFocus, () => this.host.refresh(true))];
}
onFocusChanged(focused: boolean): void {
if (focused) {
// If we are becoming focused, delay it a bit to give the UI time to update
setTimeout(() => void setContext('gitlens:focus:focused', focused), 0);
return;
}
void setContext('gitlens:focus:focused', focused);
}
onMessageReceived(e: IpcMessage) {
switch (e.method) {
case SwitchToBranchCommandType.method:

Carregando…
Cancelar
Salvar