We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
activeViewSupportMinimap
1 parent e9094c4 commit fcda1bcCopy full SHA for fcda1bc
lib/minimap-view.coffee
@@ -72,6 +72,7 @@ class MinimapView extends View
72
@paneView.removeClass('with-minimap')
73
@detachFromPaneView()
74
75
+ activeViewSupportMinimap: -> @getEditor()?
76
minimapIsAttached: -> @paneView.find('.minimap').length is 1
77
78
# EDITOR VIEW MANAGEMENT
@@ -162,7 +163,7 @@ class MinimapView extends View
162
163
return if item is @activeItem
164
@activeItem = item
165
- if @getEditor()
166
+ if @activeViewSupportMinimap()
167
@log 'minimap is supported by the current tab'
168
@activatePaneViewMinimap() unless @minimapIsAttached()
169
@storeActiveEditor()
0 commit comments