EditorGroup
class
Represents an editor group.
An editor group is a container for editors. It is responsible for opening and closing editors. A group can contains only one active editor at a time and on instance of a resource.
Properties
| Name | Type | Description |
|---|---|---|
id (readonly) |
string |
Unique identifier of this group. |
activeEditor |
unknown |
|
activeIndex |
unknown |
|
activeResource |
unknown |
|
isEmpty |
unknown |
|
isInPreviewMode |
unknown |
|
tabs |
unknown |
close()
Signature
close(resource: Uri, force?: boolean): Promise<boolean>Parameters
resource(Uri) - the resource to close.force(boolean) - Whentrue, force close the resource without asking to save dirty files.
Returns
Promise<boolean>
closeAll()
Signature
closeAll(force?: boolean): Promise<boolean>Parameters
force(boolean) - Whentrue, force close the files without asking to save dirty files.
Returns
Promise<boolean>
contains()
Signature
contains(resource: Uri): booleanParameters
resource(Uri) - the resource.
Returns
boolean
containsPreview()
Signature
containsPreview(resource: Uri): booleanParameters
resource(Uri) - the resource.
Returns
boolean
equals()
Signature
equals(o: any): booleanParameters
o(any)
Returns
boolean
findIndex()
Signature
findIndex(resource: Uri): numberParameters
resource(Uri) - the resource to check the index for.
Returns
number
isActive()
Signature
isActive(resource: Uri): booleanParameters
resource(Uri) - the resource.
Returns
boolean
open()
Signature
open(resource: Uri, options: OpenOptions): Promise<void>Parameters
resource(Uri) - the resource to open.options(OpenOptions) - options to pass to the editor that will open the resource.
Returns
Promise<void>