@@ -11,7 +11,7 @@ import { localize } from 'vs/nls';
1111import { createDecorator } from 'vs/platform/instantiation/common/instantiation' ;
1212import { IDisposable , Disposable , toDisposable } from 'vs/base/common/lifecycle' ;
1313import { ThemeIcon } from 'vs/platform/theme/common/themeService' ;
14- import { values , keys , getOrSet } from 'vs/base/common/map' ;
14+ import { getOrSet } from 'vs/base/common/map' ;
1515import { Registry } from 'vs/platform/registry/common/platform' ;
1616import { IKeybindings } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
1717import { IAction , IActionViewItem } from 'vs/base/common/actions' ;
@@ -140,7 +140,7 @@ class ViewContainersRegistryImpl extends Disposable implements IViewContainersRe
140140 private readonly defaultViewContainers : ViewContainer [ ] = [ ] ;
141141
142142 get all ( ) : ViewContainer [ ] {
143- return flatten ( values ( this . viewContainers ) ) ;
143+ return flatten ( [ ... this . viewContainers . values ( ) ] ) ;
144144 }
145145
146146 registerViewContainer ( viewContainerDescriptor : IViewContainerDescriptor , viewContainerLocation : ViewContainerLocation , isDefault ?: boolean ) : ViewContainer {
@@ -160,7 +160,7 @@ class ViewContainersRegistryImpl extends Disposable implements IViewContainersRe
160160 }
161161
162162 deregisterViewContainer ( viewContainer : ViewContainer ) : void {
163- for ( const viewContainerLocation of keys ( this . viewContainers ) ) {
163+ for ( const viewContainerLocation of this . viewContainers . keys ( ) ) {
164164 const viewContainers = this . viewContainers . get ( viewContainerLocation ) ! ;
165165 const index = viewContainers ?. indexOf ( viewContainer ) ;
166166 if ( index !== - 1 ) {
@@ -183,7 +183,7 @@ class ViewContainersRegistryImpl extends Disposable implements IViewContainersRe
183183 }
184184
185185 getViewContainerLocation ( container : ViewContainer ) : ViewContainerLocation {
186- return keys ( this . viewContainers ) . filter ( location => this . getViewContainers ( location ) . filter ( viewContainer => viewContainer . id === container . id ) . length > 0 ) [ 0 ] ;
186+ return [ ... this . viewContainers . keys ( ) ] . filter ( location => this . getViewContainers ( location ) . filter ( viewContainer => viewContainer . id === container . id ) . length > 0 ) [ 0 ] ;
187187 }
188188
189189 getDefaultViewContainer ( location : ViewContainerLocation ) : ViewContainer | undefined {
@@ -365,15 +365,15 @@ class ViewsRegistry extends Disposable implements IViewsRegistry {
365365 }
366366
367367 moveViews ( viewsToMove : IViewDescriptor [ ] , viewContainer : ViewContainer ) : void {
368- keys ( this . _views ) . forEach ( container => {
368+ for ( const container of this . _views . keys ( ) ) {
369369 if ( container !== viewContainer ) {
370370 const views = this . removeViews ( viewsToMove , container ) ;
371371 if ( views . length ) {
372372 this . addViews ( views , viewContainer ) ;
373373 this . _onDidChangeContainer . fire ( { views, from : container , to : viewContainer } ) ;
374374 }
375375 }
376- } ) ;
376+ }
377377 }
378378
379379 getViews ( loc : ViewContainer ) : IViewDescriptor [ ] {
0 commit comments