瀏覽代碼

Fixes #1609: only use setKeysForSync if it exists

main
Stanislav Lvovsky 3 年之前
committed by Eric Amodio
父節點
當前提交
a03ff942c4
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/extension.ts

+ 1
- 1
src/extension.ts 查看文件

@ -197,7 +197,7 @@ export async function setEnabled(enabled: boolean): Promise {
}
export function setKeysForSync(...keys: (SyncedState | string)[]) {
return _context?.globalState.setKeysForSync([...keys, SyncedState.Version, SyncedState.WelcomeViewVisible]);
return _context?.globalState?.setKeysForSync([...keys, SyncedState.Version, SyncedState.WelcomeViewVisible]);
}
export function notifyOnUnsupportedGitVersion(version: string) {

Loading…
取消
儲存