Represents the workspace at the center of the entire window.
Invoke the given callback with all current and future text editors in the workspace center.
Argument | Description |
---|---|
|
Function to be called with current and future text editors. |
|
An TextEditor that is present in ::getTextEditors at the time of subscription or that is added at some later time. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback with all current and future panes items in the workspace center.
Argument | Description |
---|---|
|
Function to be called with current and future pane items. |
|
An item that is present in ::getPaneItems at the time of subscription or that is added at some later time. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when the active pane item changes.
Because observers are invoked synchronously, it’s important not to perform any expensive operations via this method. Consider ::onDidStopChangingActivePaneItem to delay operations until after changes stop occurring.
Argument | Description |
---|---|
|
Function to be called when the active pane item changes. |
|
The active pane item. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when the active pane item stops changing.
Observers are called asynchronously 100ms after the last active pane item change. Handling changes here rather than in the synchronous ::onDidChangeActivePaneItem prevents unneeded work if the user is quickly changing or closing tabs and ensures critical UI feedback, like changing the highlighted tab, gets priority over work that can be done asynchronously.
Argument | Description |
---|---|
|
Function to be called when the active pane item stopts changing. |
|
The active pane item. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback with the current active pane item and with all future active pane items in the workspace center.
Argument | Description |
---|---|
|
Function to be called when the active pane item changes. |
|
The current active pane item. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a pane is added to the workspace center.
Argument | Description |
---|---|
|
Function to be called panes are added. |
|
Object with the following keys: |
|
The added pane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback before a pane is destroyed in the workspace center.
Argument | Description |
---|---|
|
Function to be called before panes are destroyed. |
|
Object with the following keys: |
|
The pane to be destroyed. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a pane is destroyed in the workspace center.
Argument | Description |
---|---|
|
Function to be called panes are destroyed. |
|
Object with the following keys: |
|
The destroyed pane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback with all current and future panes in the workspace center.
Argument | Description |
---|---|
|
Function to be called with current and future panes. |
|
A Pane that is present in ::getPanes at the time of subscription or that is added at some later time. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when the active pane changes.
Argument | Description |
---|---|
|
Function to be called when the active pane changes. |
|
A Pane that is the current return value of ::getActivePane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback with the current active pane and when the active pane changes.
Argument | Description |
---|---|
|
Function to be called with the current and future active# panes. |
|
A Pane that is the current return value of ::getActivePane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a pane item is added to the workspace center.
Argument | Description |
---|---|
|
Function to be called when pane items are added. |
|
Object with the following keys: |
|
The added pane item. |
|
Pane containing the added item. |
|
Number indicating the index of the added item in its pane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a pane item is about to be destroyed, before the user is prompted to save it.
Argument | Description |
---|---|
|
Function to be called before pane items are destroyed. |
|
Object with the following keys: |
|
The item to be destroyed. |
|
Pane containing the item to be destroyed. |
|
Number indicating the index of the item to be destroyed in its pane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a pane item is destroyed.
Argument | Description |
---|---|
|
Function to be called when pane items are destroyed. |
|
Object with the following keys: |
|
The destroyed item. |
|
Pane containing the destroyed item. |
|
Number indicating the index of the destroyed item in its pane. |
Return values |
---|
Returns a Disposable on which |
Invoke the given callback when a text editor is added to the workspace center.
Argument | Description |
---|---|
|
Function to be called when panes are added. |
|
Object with the following keys: |
|
TextEditor that was added. |
|
Pane containing the added text editor. |
|
Number indicating the index of the added text editor in its pane. |
Return values |
---|
Returns a Disposable on which |
Get the active item if it is an TextEditor.
Return values |
---|
Returns an TextEditor or |
This section only has Extended methods.
Make the next pane active.
Make the previous pane active.