diff --git a/src/views/gitExplorer.ts b/src/views/gitExplorer.ts index 23118f4..37e6a66 100644 --- a/src/views/gitExplorer.ts +++ b/src/views/gitExplorer.ts @@ -70,18 +70,19 @@ export class GitExplorer implements TreeDataProvider { private async onConfigurationChanged(e: ConfigurationChangeEvent) { const initializing = configuration.initializing(e); - const section = configuration.name('gitExplorer'); - if (!initializing && !configuration.changed(e, section.value)) return; + if (!initializing && !configuration.changed(e, configuration.name('gitExplorer').value)) return; - if (!initializing && (configuration.changed(e, section('gravatars').value) || configuration.changed(e, section('gravatarsDefault').value))) { + if (!initializing && + (configuration.changed(e, configuration.name('gitExplorer')('gravatars').value) || + configuration.changed(e, configuration.name('gitExplorer')('gravatarsDefault').value))) { clearGravatarCache(); } - if (initializing || configuration.changed(e, section('autoRefresh').value)) { - this.setAutoRefresh(configuration.get(section('autoRefresh').value)); + if (initializing || configuration.changed(e, configuration.name('gitExplorer')('autoRefresh').value)) { + this.setAutoRefresh(configuration.get(configuration.name('gitExplorer')('autoRefresh').value)); } - let view = configuration.get(section('view').value); + let view = configuration.get(configuration.name('gitExplorer')('view').value); if (view === GitExplorerView.Auto) { view = Container.context.workspaceState.get(WorkspaceState.GitExplorerView, GitExplorerView.Repository); } diff --git a/src/views/resultsExplorer.ts b/src/views/resultsExplorer.ts index bf1c11a..26c76d0 100644 --- a/src/views/resultsExplorer.ts +++ b/src/views/resultsExplorer.ts @@ -44,10 +44,11 @@ export class ResultsExplorer implements TreeDataProvider { private async onConfigurationChanged(e: ConfigurationChangeEvent) { const initializing = configuration.initializing(e); - const section = configuration.name('resultsExplorer'); - if (!initializing && !configuration.changed(e, section.value)) return; + if (!initializing && !configuration.changed(e, configuration.name('resultsExplorer').value)) return; - if (!initializing && (configuration.changed(e, section('gravatars').value) || configuration.changed(e, section('gravatarsDefault').value))) { + if (!initializing && + (configuration.changed(e, configuration.name('resultsExplorer')('gravatars').value) || + configuration.changed(e, configuration.name('resultsExplorer')('gravatarsDefault').value))) { clearGravatarCache(); }