Ver a proveniência

Fixes Focus view refresh button state

main
Eric Amodio há 1 ano
ascendente
cometimento
0cc2f3def6
3 ficheiros alterados com 1 adições e 13 eliminaçõ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 ficheiro

@ -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 ficheiro

@ -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 ficheiro

@ -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
Guardar