@theia/plugin 1.34.0 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/theia.d.ts +285 -330
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.1",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"watch": "theiaext watch"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@theia/ext-scripts": "1.34.
|
|
30
|
+
"@theia/ext-scripts": "1.34.1"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "474bdc10b58be92953496b8bcac2af25ee2b48a3"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -13471,331 +13471,291 @@ export module '@theia/plugin' {
|
|
|
13471
13471
|
/**
|
|
13472
13472
|
* The tab represents a single text based resource.
|
|
13473
13473
|
*/
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
|
|
13717
|
-
|
|
13718
|
-
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
/**
|
|
13760
|
-
* The currently active group.
|
|
13761
|
-
* @stubbed
|
|
13762
|
-
*/
|
|
13763
|
-
readonly activeTabGroup: TabGroup;
|
|
13764
|
-
|
|
13765
|
-
/**
|
|
13766
|
-
* An {@link Event event} which fires when {@link TabGroup tab groups} have changed.
|
|
13767
|
-
* @stubbed
|
|
13768
|
-
*/
|
|
13769
|
-
readonly onDidChangeTabGroups: Event<TabGroupChangeEvent>;
|
|
13770
|
-
|
|
13771
|
-
/**
|
|
13772
|
-
* An {@link Event event} which fires when {@link Tab tabs} have changed.
|
|
13773
|
-
* @stubbed
|
|
13774
|
-
*/
|
|
13775
|
-
readonly onDidChangeTabs: Event<TabChangeEvent>;
|
|
13776
|
-
|
|
13777
|
-
/**
|
|
13778
|
-
* Closes the tab. This makes the tab object invalid and the tab
|
|
13779
|
-
* should no longer be used for further actions.
|
|
13780
|
-
* Note: In the case of a dirty tab, a confirmation dialog will be shown which may be cancelled. If cancelled the tab is still valid
|
|
13781
|
-
*
|
|
13782
|
-
* @param tab The tab to close.
|
|
13783
|
-
* @param preserveFocus When `true` focus will remain in its current position. If `false` it will jump to the next tab.
|
|
13784
|
-
* @returns A promise that resolves to `true` when all tabs have been closed.
|
|
13785
|
-
* @stubbed
|
|
13786
|
-
*/
|
|
13787
|
-
close(tab: Tab | readonly Tab[], preserveFocus?: boolean): Thenable<boolean>;
|
|
13788
|
-
|
|
13789
|
-
/**
|
|
13790
|
-
* Closes the tab group. This makes the tab group object invalid and the tab group
|
|
13791
|
-
* should no longer be used for further actions.
|
|
13792
|
-
* @param tabGroup The tab group to close.
|
|
13793
|
-
* @param preserveFocus When `true` focus will remain in its current position.
|
|
13794
|
-
* @returns A promise that resolves to `true` when all tab groups have been closed.
|
|
13795
|
-
* @stubbed
|
|
13796
|
-
*/
|
|
13797
|
-
close(tabGroup: TabGroup | readonly TabGroup[], preserveFocus?: boolean): Thenable<boolean>;
|
|
13798
|
-
}
|
|
13474
|
+
export class TabInputText {
|
|
13475
|
+
/**
|
|
13476
|
+
* The uri represented by the tab.
|
|
13477
|
+
*/
|
|
13478
|
+
readonly uri: Uri;
|
|
13479
|
+
/**
|
|
13480
|
+
* Constructs a text tab input with the given URI.
|
|
13481
|
+
* @param uri The URI of the tab.
|
|
13482
|
+
*/
|
|
13483
|
+
constructor(uri: Uri);
|
|
13484
|
+
}
|
|
13485
|
+
|
|
13486
|
+
/**
|
|
13487
|
+
* The tab represents two text based resources
|
|
13488
|
+
* being rendered as a diff.
|
|
13489
|
+
*/
|
|
13490
|
+
export class TabInputTextDiff {
|
|
13491
|
+
/**
|
|
13492
|
+
* The uri of the original text resource.
|
|
13493
|
+
*/
|
|
13494
|
+
readonly original: Uri;
|
|
13495
|
+
/**
|
|
13496
|
+
* The uri of the modified text resource.
|
|
13497
|
+
*/
|
|
13498
|
+
readonly modified: Uri;
|
|
13499
|
+
/**
|
|
13500
|
+
* Constructs a new text diff tab input with the given URIs.
|
|
13501
|
+
* @param original The uri of the original text resource.
|
|
13502
|
+
* @param modified The uri of the modified text resource.
|
|
13503
|
+
*/
|
|
13504
|
+
constructor(original: Uri, modified: Uri);
|
|
13505
|
+
}
|
|
13506
|
+
|
|
13507
|
+
/**
|
|
13508
|
+
* The tab represents a custom editor.
|
|
13509
|
+
*/
|
|
13510
|
+
export class TabInputCustom {
|
|
13511
|
+
/**
|
|
13512
|
+
* The uri that the tab is representing.
|
|
13513
|
+
*/
|
|
13514
|
+
readonly uri: Uri;
|
|
13515
|
+
/**
|
|
13516
|
+
* The type of custom editor.
|
|
13517
|
+
*/
|
|
13518
|
+
readonly viewType: string;
|
|
13519
|
+
/**
|
|
13520
|
+
* Constructs a custom editor tab input.
|
|
13521
|
+
* @param uri The uri of the tab.
|
|
13522
|
+
* @param viewType The viewtype of the custom editor.
|
|
13523
|
+
*/
|
|
13524
|
+
constructor(uri: Uri, viewType: string);
|
|
13525
|
+
}
|
|
13526
|
+
|
|
13527
|
+
/**
|
|
13528
|
+
* The tab represents a webview.
|
|
13529
|
+
*/
|
|
13530
|
+
export class TabInputWebview {
|
|
13531
|
+
/**
|
|
13532
|
+
* The type of webview. Maps to WebviewPanel's viewType
|
|
13533
|
+
*/
|
|
13534
|
+
readonly viewType: string;
|
|
13535
|
+
/**
|
|
13536
|
+
* Constructs a webview tab input with the given view type.
|
|
13537
|
+
* @param viewType The type of webview. Maps to WebviewPanel's viewType
|
|
13538
|
+
*/
|
|
13539
|
+
constructor(viewType: string);
|
|
13540
|
+
}
|
|
13541
|
+
|
|
13542
|
+
/**
|
|
13543
|
+
* The tab represents a notebook.
|
|
13544
|
+
*/
|
|
13545
|
+
export class TabInputNotebook {
|
|
13546
|
+
/**
|
|
13547
|
+
* The uri that the tab is representing.
|
|
13548
|
+
*/
|
|
13549
|
+
readonly uri: Uri;
|
|
13550
|
+
/**
|
|
13551
|
+
* The type of notebook. Maps to NotebookDocuments's notebookType
|
|
13552
|
+
*/
|
|
13553
|
+
readonly notebookType: string;
|
|
13554
|
+
/**
|
|
13555
|
+
* Constructs a new tab input for a notebook.
|
|
13556
|
+
* @param uri The uri of the notebook.
|
|
13557
|
+
* @param notebookType The type of notebook. Maps to NotebookDocuments's notebookType
|
|
13558
|
+
*/
|
|
13559
|
+
constructor(uri: Uri, notebookType: string);
|
|
13560
|
+
}
|
|
13561
|
+
|
|
13562
|
+
/**
|
|
13563
|
+
* The tabs represents two notebooks in a diff configuration.
|
|
13564
|
+
*/
|
|
13565
|
+
export class TabInputNotebookDiff {
|
|
13566
|
+
/**
|
|
13567
|
+
* The uri of the original notebook.
|
|
13568
|
+
*/
|
|
13569
|
+
readonly original: Uri;
|
|
13570
|
+
/**
|
|
13571
|
+
* The uri of the modified notebook.
|
|
13572
|
+
*/
|
|
13573
|
+
readonly modified: Uri;
|
|
13574
|
+
/**
|
|
13575
|
+
* The type of notebook. Maps to NotebookDocuments's notebookType
|
|
13576
|
+
*/
|
|
13577
|
+
readonly notebookType: string;
|
|
13578
|
+
/**
|
|
13579
|
+
* Constructs a notebook diff tab input.
|
|
13580
|
+
* @param original The uri of the original unmodified notebook.
|
|
13581
|
+
* @param modified The uri of the modified notebook.
|
|
13582
|
+
* @param notebookType The type of notebook. Maps to NotebookDocuments's notebookType
|
|
13583
|
+
*/
|
|
13584
|
+
constructor(original: Uri, modified: Uri, notebookType: string);
|
|
13585
|
+
}
|
|
13586
|
+
|
|
13587
|
+
/**
|
|
13588
|
+
* The tab represents a terminal in the editor area.
|
|
13589
|
+
*/
|
|
13590
|
+
export class TabInputTerminal {
|
|
13591
|
+
/**
|
|
13592
|
+
* Constructs a terminal tab input.
|
|
13593
|
+
*/
|
|
13594
|
+
constructor();
|
|
13595
|
+
}
|
|
13596
|
+
|
|
13597
|
+
/**
|
|
13598
|
+
* Represents a tab within a {@link TabGroup group of tabs}.
|
|
13599
|
+
* Tabs are merely the graphical representation within the editor area.
|
|
13600
|
+
* A backing editor is not a guarantee.
|
|
13601
|
+
*/
|
|
13602
|
+
export interface Tab {
|
|
13603
|
+
|
|
13604
|
+
/**
|
|
13605
|
+
* The text displayed on the tab.
|
|
13606
|
+
*/
|
|
13607
|
+
readonly label: string;
|
|
13608
|
+
|
|
13609
|
+
/**
|
|
13610
|
+
* The group which the tab belongs to.
|
|
13611
|
+
*/
|
|
13612
|
+
readonly group: TabGroup;
|
|
13613
|
+
|
|
13614
|
+
/**
|
|
13615
|
+
* Defines the structure of the tab i.e. text, notebook, custom, etc.
|
|
13616
|
+
* Resource and other useful properties are defined on the tab kind.
|
|
13617
|
+
*/
|
|
13618
|
+
readonly input: TabInputText | TabInputTextDiff | TabInputCustom | TabInputWebview | TabInputNotebook | TabInputNotebookDiff | TabInputTerminal | unknown;
|
|
13619
|
+
|
|
13620
|
+
/**
|
|
13621
|
+
* Whether or not the tab is currently active.
|
|
13622
|
+
* This is dictated by being the selected tab in the group.
|
|
13623
|
+
*/
|
|
13624
|
+
readonly isActive: boolean;
|
|
13625
|
+
|
|
13626
|
+
/**
|
|
13627
|
+
* Whether or not the dirty indicator is present on the tab.
|
|
13628
|
+
*/
|
|
13629
|
+
readonly isDirty: boolean;
|
|
13630
|
+
|
|
13631
|
+
/**
|
|
13632
|
+
* Whether or not the tab is pinned (pin icon is present).
|
|
13633
|
+
*/
|
|
13634
|
+
readonly isPinned: boolean;
|
|
13635
|
+
|
|
13636
|
+
/**
|
|
13637
|
+
* Whether or not the tab is in preview mode.
|
|
13638
|
+
*/
|
|
13639
|
+
readonly isPreview: boolean;
|
|
13640
|
+
}
|
|
13641
|
+
|
|
13642
|
+
/**
|
|
13643
|
+
* An event describing change to tabs.
|
|
13644
|
+
*/
|
|
13645
|
+
export interface TabChangeEvent {
|
|
13646
|
+
/**
|
|
13647
|
+
* The tabs that have been opened.
|
|
13648
|
+
*/
|
|
13649
|
+
readonly opened: readonly Tab[];
|
|
13650
|
+
/**
|
|
13651
|
+
* The tabs that have been closed.
|
|
13652
|
+
*/
|
|
13653
|
+
readonly closed: readonly Tab[];
|
|
13654
|
+
/**
|
|
13655
|
+
* Tabs that have changed, e.g have changed
|
|
13656
|
+
* their {@link Tab.isActive active} state.
|
|
13657
|
+
*/
|
|
13658
|
+
readonly changed: readonly Tab[];
|
|
13659
|
+
}
|
|
13660
|
+
|
|
13661
|
+
/**
|
|
13662
|
+
* An event describing changes to tab groups.
|
|
13663
|
+
*/
|
|
13664
|
+
export interface TabGroupChangeEvent {
|
|
13665
|
+
/**
|
|
13666
|
+
* Tab groups that have been opened.
|
|
13667
|
+
*/
|
|
13668
|
+
readonly opened: readonly TabGroup[];
|
|
13669
|
+
/**
|
|
13670
|
+
* Tab groups that have been closed.
|
|
13671
|
+
*/
|
|
13672
|
+
readonly closed: readonly TabGroup[];
|
|
13673
|
+
/**
|
|
13674
|
+
* Tab groups that have changed, e.g have changed
|
|
13675
|
+
* their {@link TabGroup.isActive active} state.
|
|
13676
|
+
*/
|
|
13677
|
+
readonly changed: readonly TabGroup[];
|
|
13678
|
+
}
|
|
13679
|
+
|
|
13680
|
+
/**
|
|
13681
|
+
* Represents a group of tabs. A tab group itself consists of multiple tabs.
|
|
13682
|
+
*/
|
|
13683
|
+
export interface TabGroup {
|
|
13684
|
+
/**
|
|
13685
|
+
* Whether or not the group is currently active.
|
|
13686
|
+
*
|
|
13687
|
+
* *Note* that only one tab group is active at a time, but that multiple tab
|
|
13688
|
+
* groups can have an {@link TabGroup.aciveTab active tab}.
|
|
13689
|
+
*
|
|
13690
|
+
* @see {@link Tab.isActive}
|
|
13691
|
+
*/
|
|
13692
|
+
readonly isActive: boolean;
|
|
13693
|
+
|
|
13694
|
+
/**
|
|
13695
|
+
* The view column of the group.
|
|
13696
|
+
*/
|
|
13697
|
+
readonly viewColumn: ViewColumn;
|
|
13698
|
+
|
|
13699
|
+
/**
|
|
13700
|
+
* The active {@link Tab tab} in the group. This is the tab whose contents are currently
|
|
13701
|
+
* being rendered.
|
|
13702
|
+
*
|
|
13703
|
+
* *Note* that there can be one active tab per group but there can only be one {@link TabGroups.activeTabGroup active group}.
|
|
13704
|
+
*/
|
|
13705
|
+
readonly activeTab: Tab | undefined;
|
|
13706
|
+
|
|
13707
|
+
/**
|
|
13708
|
+
* The list of tabs contained within the group.
|
|
13709
|
+
* This can be empty if the group has no tabs open.
|
|
13710
|
+
*/
|
|
13711
|
+
readonly tabs: readonly Tab[];
|
|
13712
|
+
}
|
|
13713
|
+
|
|
13714
|
+
/**
|
|
13715
|
+
* Represents the main editor area which consists of multple groups which contain tabs.
|
|
13716
|
+
*/
|
|
13717
|
+
export interface TabGroups {
|
|
13718
|
+
/**
|
|
13719
|
+
* All the groups within the group container.
|
|
13720
|
+
*/
|
|
13721
|
+
readonly all: readonly TabGroup[];
|
|
13722
|
+
|
|
13723
|
+
/**
|
|
13724
|
+
* The currently active group.
|
|
13725
|
+
*/
|
|
13726
|
+
readonly activeTabGroup: TabGroup;
|
|
13727
|
+
|
|
13728
|
+
/**
|
|
13729
|
+
* An {@link Event event} which fires when {@link TabGroup tab groups} have changed.
|
|
13730
|
+
*/
|
|
13731
|
+
readonly onDidChangeTabGroups: Event<TabGroupChangeEvent>;
|
|
13732
|
+
|
|
13733
|
+
/**
|
|
13734
|
+
* An {@link Event event} which fires when {@link Tab tabs} have changed.
|
|
13735
|
+
*/
|
|
13736
|
+
readonly onDidChangeTabs: Event<TabChangeEvent>;
|
|
13737
|
+
|
|
13738
|
+
/**
|
|
13739
|
+
* Closes the tab. This makes the tab object invalid and the tab
|
|
13740
|
+
* should no longer be used for further actions.
|
|
13741
|
+
* Note: In the case of a dirty tab, a confirmation dialog will be shown which may be cancelled. If cancelled the tab is still valid
|
|
13742
|
+
*
|
|
13743
|
+
* @param tab The tab to close.
|
|
13744
|
+
* @param preserveFocus When `true` focus will remain in its current position. If `false` it will jump to the next tab.
|
|
13745
|
+
* @returns A promise that resolves to `true` when all tabs have been closed.
|
|
13746
|
+
*/
|
|
13747
|
+
close(tab: Tab | readonly Tab[], preserveFocus?: boolean): Thenable<boolean>;
|
|
13748
|
+
|
|
13749
|
+
/**
|
|
13750
|
+
* Closes the tab group. This makes the tab group object invalid and the tab group
|
|
13751
|
+
* should no longer be used for further actions.
|
|
13752
|
+
* @param tabGroup The tab group to close.
|
|
13753
|
+
* @param preserveFocus When `true` focus will remain in its current position.
|
|
13754
|
+
* @returns A promise that resolves to `true` when all tab groups have been closed.
|
|
13755
|
+
* @stubbed
|
|
13756
|
+
*/
|
|
13757
|
+
close(tabGroup: TabGroup | readonly TabGroup[], preserveFocus?: boolean): Thenable<boolean>;
|
|
13758
|
+
}
|
|
13799
13759
|
|
|
13800
13760
|
/**
|
|
13801
13761
|
* Represents a notebook editor that is attached to a {@link NotebookDocument notebook}.
|
|
@@ -13933,7 +13893,6 @@ export module '@theia/plugin' {
|
|
|
13933
13893
|
|
|
13934
13894
|
/**
|
|
13935
13895
|
* The {@link NotebookDocument notebook} that contains this cell.
|
|
13936
|
-
* @stubbed
|
|
13937
13896
|
*/
|
|
13938
13897
|
readonly notebook: NotebookDocument;
|
|
13939
13898
|
|
|
@@ -13994,26 +13953,22 @@ export module '@theia/plugin' {
|
|
|
13994
13953
|
/**
|
|
13995
13954
|
* The version number of this notebook (it will strictly increase after each
|
|
13996
13955
|
* change, including undo/redo).
|
|
13997
|
-
* @stubbed
|
|
13998
13956
|
*/
|
|
13999
13957
|
readonly version: number;
|
|
14000
13958
|
|
|
14001
13959
|
/**
|
|
14002
13960
|
* `true` if there are unpersisted changes.
|
|
14003
|
-
* @stubbed
|
|
14004
13961
|
*/
|
|
14005
13962
|
readonly isDirty: boolean;
|
|
14006
13963
|
|
|
14007
13964
|
/**
|
|
14008
13965
|
* Is this notebook representing an untitled file which has not been saved yet.
|
|
14009
|
-
* @stubbed
|
|
14010
13966
|
*/
|
|
14011
13967
|
readonly isUntitled: boolean;
|
|
14012
13968
|
|
|
14013
13969
|
/**
|
|
14014
13970
|
* `true` if the notebook has been closed. A closed notebook isn't synchronized anymore
|
|
14015
13971
|
* and won't be re-used when the same resource is opened again.
|
|
14016
|
-
* @stubbed
|
|
14017
13972
|
*/
|
|
14018
13973
|
readonly isClosed: boolean;
|
|
14019
13974
|
|