Main
The Minimap
package provides an eagle-eye view of text buffers.
It also provides API for plugin packages that want to interact with the minimap and be available to the user through the minimap settings.
Method Summary
Public Methods | ||
public |
activate() Activates the minimap package. |
|
public |
Deactivates the minimap package. |
|
public |
generatePlugin(template: string) Opens the plugin generation view. |
|
public |
Returns the |
|
public |
Returns the |
|
public |
minimapForEditor(textEditor: TextEditor): Minimap Returns the |
|
public |
minimapForEditorElement(editorElement: TextEditorElement): Minimap Returns the |
|
public |
observeMinimaps(iterator: function(minimap: Minimap): void): Disposable Calls a function for each present and future minimaps. |
|
public |
onDidActivate(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidActivatePlugin(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidAddPlugin(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidCreateMinimap(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidDeactivate(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidDeactivatePlugin(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
onDidRemovePlugin(callback: function(event: Object): void): Disposable Registers a callback to listen to the |
|
public |
standAloneMinimapForEditor(textEditor: TextEditor): Minimap Returns a new stand-alone {Minimap} for the passed-in |
|
public |
toggle() Toggles the minimap display. |
Public Methods
public generatePlugin(template: string) source
Opens the plugin generation view.
Params:
Name | Type | Attribute | Description |
template | string | the name of the template to use |
public minimapForEditor(textEditor: TextEditor): Minimap source
Returns the Minimap
object associated to the passed-in
TextEditor
.
Params:
Name | Type | Attribute | Description |
textEditor | TextEditor | a text editor |
public minimapForEditorElement(editorElement: TextEditorElement): Minimap source
Returns the Minimap
object associated to the passed-in
TextEditorElement
.
Params:
Name | Type | Attribute | Description |
editorElement | TextEditorElement | a text editor element |
public observeMinimaps(iterator: function(minimap: Minimap): void): Disposable source
Calls a function for each present and future minimaps.
Return:
Disposable | a disposable to unregister the observer |
public onDidActivate(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-activate
event of the package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidActivatePlugin(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-activate-plugin
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidAddPlugin(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-add-plugin
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidCreateMinimap(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-create-minimap
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidDeactivate(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-deactivate
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidDeactivatePlugin(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-deactivate-plugin
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |
public onDidRemovePlugin(callback: function(event: Object): void): Disposable source
Registers a callback to listen to the did-remove-plugin
event of the
package.
Return:
Disposable | a disposable to stop listening to the event |