Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Apr 9, 2020
1 parent 2ba9da5 commit 1591086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/workbench/contrib/scm/browser/repositoryPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,19 +888,19 @@ export class RepositoryPane extends ViewPane {
this._register(this.tree.onContextMenu(this.onListContextMenu, this));
this._register(this.tree);

let mode = this.configurationService.getValue<'tree' | 'list'>('scm.defaultViewMode') === 'list' ? ViewModelMode.List : ViewModelMode.Tree;
let viewMode = this.configurationService.getValue<'tree' | 'list'>('scm.defaultViewMode') === 'list' ? ViewModelMode.List : ViewModelMode.Tree;

const rootUri = this.repository.provider.rootUri;

if (typeof rootUri !== 'undefined') {
const storageMode = this.storageService.get(`scm.repository.viewMode:${rootUri.toString()}`, StorageScope.WORKSPACE) as ViewModelMode;

if (typeof storageMode === 'string') {
mode = storageMode;
viewMode = storageMode;
}
}

this.viewModel = this.instantiationService.createInstance(ViewModel, this.repository.provider.groups, this.tree, mode);
this.viewModel = this.instantiationService.createInstance(ViewModel, this.repository.provider.groups, this.tree, viewMode);
this._register(this.viewModel);

addClass(this.listContainer, 'file-icon-themable-tree');
Expand Down

0 comments on commit 1591086

Please sign in to comment.