Selaa lähdekoodia

Fixes Focus view refresh button state

main
Eric Amodio 1 vuosi sitten
vanhempi
commit
0cc2f3def6
3 muutettua tiedostoa jossa 1 lisäystä ja 13 poistoa
  1. +1
    -1
      package.json
  2. +0
    -1
      src/constants.ts
  3. +0
    -11
      src/plus/webviews/focus/focusWebview.ts

+ 1
- 1
package.json Näytä tiedosto

@ -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 Näytä tiedosto

@ -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 Näytä tiedosto

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

Ladataan…
Peruuta
Tallenna