ソースを参照

Fixes Focus view refresh button state

main
Eric Amodio 1年前
コミット
0cc2f3def6
3個のファイルの変更1行の追加13行の削除
  1. +1
    -1
      package.json
  2. +0
    -1
      src/constants.ts
  3. +0
    -11
      src/plus/webviews/focus/focusWebview.ts

+ 1
- 1
package.json ファイルの表示

@ -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 ファイルの表示

@ -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 ファイルの表示

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

読み込み中…
キャンセル
保存