Browse Source

Fixes #1609: only use setKeysForSync if it exists

main
Stanislav Lvovsky 3 years ago
committed by Eric Amodio
parent
commit
a03ff942c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/extension.ts

+ 1
- 1
src/extension.ts View File

@ -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…
Cancel
Save