Add mechanism to retry view population when pristine is locked
[?]
Jan 7, 2021, 12:18 AM
WBXOQKTZMWSXOFGAIBK2R2MGN5DXOQOQV7QPLVUIKFXWUYFXEFRACDependencies
- [2]
VT237HUJAdd tree view for channels - [3]
LL5PNIABAdd command for switching to a given channel - [4]
HF3NERPZAdd cache for changes and add change dependencies to log - [5]
L3VOQYAFAdd changelog view to the source control panel
Change contents
- replacement in src/views/channels.ts at line 43
return await this.repository.getChannels();let children;// Retry if the pristine is locked.while (!children) {try {children = await this.repository.getChannels();} catch (err) {if (!(err instanceof Error) || !err.message.includes('Pristine locked')) {throw err;}}}return children; - replacement in src/views/changelog.ts at line 49
return await this.repository.getLog();let children;// Retry if the pristine is locked. TODO: More robust solutionwhile (!children) {try {children = await this.repository.getLog();} catch (err) {if (!(err instanceof Error) || !err.message.includes('Pristine locked')) {throw err;}}}return children;