@@ -10,9 +10,8 @@ import { IActionRunner } from 'vs/base/common/actions';
1010import { TPromise } from 'vs/base/common/winjs.base' ;
1111import * as DOM from 'vs/base/browser/dom' ;
1212import { Builder } from 'vs/base/browser/builder' ;
13- import { Scope } from 'vs/workbench/common/memento' ;
1413import { VIEWLET_ID , ExplorerViewletVisibleContext , IFilesConfiguration } from 'vs/workbench/parts/files/common/files' ;
15- import { ComposedViewsViewlet , IViewletView } from 'vs/workbench/parts/views/browser/views' ;
14+ import { ComposedViewsViewlet , IViewletView , IViewletViewOptions } from 'vs/workbench/parts/views/browser/views' ;
1615import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
1716import { ActionRunner , FileViewletState } from 'vs/workbench/parts/files/browser/views/explorerViewer' ;
1817import { ExplorerView , IExplorerViewOptions } from 'vs/workbench/parts/files/browser/views/explorerView' ;
@@ -30,13 +29,12 @@ import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/edi
3029import { IEditorGroupService } from 'vs/workbench/services/group/common/groupService' ;
3130import { IContextKeyService , IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
3231import { IThemeService } from 'vs/platform/theme/common/themeService' ;
33- import { ViewsRegistry , ViewLocation , IViewDescriptor , IViewOptions } from 'vs/workbench/parts/views/browser/viewsRegistry' ;
32+ import { ViewsRegistry , ViewLocation , IViewDescriptor } from 'vs/workbench/parts/views/browser/viewsRegistry' ;
3433
3534export class ExplorerViewlet extends ComposedViewsViewlet {
3635
3736 private static EXPLORER_VIEWS_STATE = 'workbench.explorer.views.state' ;
3837
39- private viewletSettings : any ;
4038 private viewletState : FileViewletState ;
4139 private viewletVisibleContextKey : IContextKey < boolean > ;
4240
@@ -54,7 +52,6 @@ export class ExplorerViewlet extends ComposedViewsViewlet {
5452 super ( VIEWLET_ID , ViewLocation . Explorer , ExplorerViewlet . EXPLORER_VIEWS_STATE , telemetryService , storageService , instantiationService , themeService , contextService ) ;
5553
5654 this . viewletState = new FileViewletState ( ) ;
57- this . viewletSettings = this . getMemento ( storageService , Scope . WORKSPACE ) ;
5855 this . viewletVisibleContextKey = ExplorerViewletVisibleContext . bindTo ( contextKeyService ) ;
5956
6057 this . registerViews ( ) ;
@@ -127,7 +124,7 @@ export class ExplorerViewlet extends ComposedViewsViewlet {
127124 return ! this . contextService . hasWorkspace ( ) || ( < IFilesConfiguration > this . configurationService . getConfiguration ( ) ) . explorer . openEditors . visible !== 0 ;
128125 }
129126
130- protected createView ( viewDescriptor : IViewDescriptor , options : IViewOptions ) : IViewletView {
127+ protected createView ( viewDescriptor : IViewDescriptor , options : IViewletViewOptions ) : IViewletView {
131128 if ( viewDescriptor . id === ExplorerView . ID ) {
132129 // Create a delegating editor service for the explorer to be able to delay the refresh in the opened
133130 // editors view above. This is a workaround for being able to double click on a file to make it pinned
@@ -167,7 +164,7 @@ export class ExplorerViewlet extends ComposedViewsViewlet {
167164 } ) ;
168165
169166 const explorerInstantiator = this . instantiationService . createChild ( new ServiceCollection ( [ IWorkbenchEditorService , delegatingEditorService ] ) ) ;
170- return explorerInstantiator . createInstance ( ExplorerView , viewDescriptor . id , < IExplorerViewOptions > { ...options , settings : this . viewletSettings , viewletState : this . viewletState } ) ;
167+ return explorerInstantiator . createInstance ( ExplorerView , viewDescriptor . id , < IExplorerViewOptions > { ...options , viewletState : this . viewletState } ) ;
171168 }
172169 return super . createView ( viewDescriptor , options ) ;
173170 }
0 commit comments