@theia/plugin 1.71.0-next.72 → 1.71.0
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 +69 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.71.0
|
|
3
|
+
"version": "1.71.0",
|
|
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.
|
|
30
|
+
"@theia/ext-scripts": "1.71.0"
|
|
31
31
|
},
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d8a596fc99f0a8e68b466828ed162569d79e3a71"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -12711,6 +12711,70 @@ export module '@theia/plugin' {
|
|
|
12711
12711
|
readonly description?: string;
|
|
12712
12712
|
}
|
|
12713
12713
|
|
|
12714
|
+
export interface SourceControlHistoryItemRef {
|
|
12715
|
+
readonly id: string;
|
|
12716
|
+
readonly name: string;
|
|
12717
|
+
readonly description?: string;
|
|
12718
|
+
readonly revision?: string;
|
|
12719
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
12720
|
+
readonly category?: string;
|
|
12721
|
+
}
|
|
12722
|
+
|
|
12723
|
+
export interface SourceControlHistoryItemRefsChangeEvent {
|
|
12724
|
+
readonly added: readonly SourceControlHistoryItemRef[];
|
|
12725
|
+
readonly removed: readonly SourceControlHistoryItemRef[];
|
|
12726
|
+
readonly modified: readonly SourceControlHistoryItemRef[];
|
|
12727
|
+
}
|
|
12728
|
+
|
|
12729
|
+
export interface SourceControlHistoryOptions {
|
|
12730
|
+
readonly skip?: number;
|
|
12731
|
+
readonly limit?: number | { id?: string };
|
|
12732
|
+
readonly historyItemRefs?: readonly string[];
|
|
12733
|
+
readonly filterText?: string;
|
|
12734
|
+
}
|
|
12735
|
+
|
|
12736
|
+
export interface SourceControlHistoryItemStatistics {
|
|
12737
|
+
readonly files: number;
|
|
12738
|
+
readonly insertions: number;
|
|
12739
|
+
readonly deletions: number;
|
|
12740
|
+
}
|
|
12741
|
+
|
|
12742
|
+
export interface SourceControlHistoryItem {
|
|
12743
|
+
readonly id: string;
|
|
12744
|
+
readonly parentIds?: readonly string[];
|
|
12745
|
+
readonly subject: string;
|
|
12746
|
+
readonly message?: string | MarkdownString;
|
|
12747
|
+
readonly author?: string;
|
|
12748
|
+
readonly authorEmail?: string;
|
|
12749
|
+
readonly authorIcon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
12750
|
+
readonly displayId?: string;
|
|
12751
|
+
readonly timestamp?: number;
|
|
12752
|
+
readonly statistics?: SourceControlHistoryItemStatistics;
|
|
12753
|
+
readonly references?: readonly SourceControlHistoryItemRef[];
|
|
12754
|
+
readonly tooltip?: string | MarkdownString;
|
|
12755
|
+
}
|
|
12756
|
+
|
|
12757
|
+
export interface SourceControlHistoryItemChange {
|
|
12758
|
+
readonly uri: Uri;
|
|
12759
|
+
readonly originalUri?: Uri;
|
|
12760
|
+
readonly modifiedUri?: Uri;
|
|
12761
|
+
readonly renameUri?: Uri;
|
|
12762
|
+
}
|
|
12763
|
+
|
|
12764
|
+
export interface SourceControlHistoryProvider {
|
|
12765
|
+
readonly currentHistoryItemRef?: SourceControlHistoryItemRef;
|
|
12766
|
+
readonly currentHistoryItemRemoteRef?: SourceControlHistoryItemRef;
|
|
12767
|
+
readonly currentHistoryItemBaseRef?: SourceControlHistoryItemRef;
|
|
12768
|
+
readonly onDidChangeCurrentHistoryItemRefs: Event<void>;
|
|
12769
|
+
readonly onDidChangeHistoryItemRefs: Event<SourceControlHistoryItemRefsChangeEvent>;
|
|
12770
|
+
|
|
12771
|
+
provideHistoryItemRefs(historyItemRefs: string[] | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemRef[]>;
|
|
12772
|
+
provideHistoryItems(options: SourceControlHistoryOptions, token: CancellationToken): ProviderResult<SourceControlHistoryItem[]>;
|
|
12773
|
+
provideHistoryItemChanges(historyItemId: string, historyItemParentId: string | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemChange[]>;
|
|
12774
|
+
resolveHistoryItem(historyItemId: string, token: CancellationToken): ProviderResult<SourceControlHistoryItem>;
|
|
12775
|
+
resolveHistoryItemRefsCommonAncestor(historyItemRefs: string[], token: CancellationToken): ProviderResult<string>;
|
|
12776
|
+
}
|
|
12777
|
+
|
|
12714
12778
|
/**
|
|
12715
12779
|
* An source control is able to provide {@link SourceControlResourceState resource states}
|
|
12716
12780
|
* to the editor and interact with the editor in several source control related ways.
|
|
@@ -12784,6 +12848,11 @@ export module '@theia/plugin' {
|
|
|
12784
12848
|
*/
|
|
12785
12849
|
actionButton?: ScmActionButton;
|
|
12786
12850
|
|
|
12851
|
+
/**
|
|
12852
|
+
* Optional history provider.
|
|
12853
|
+
*/
|
|
12854
|
+
historyProvider?: SourceControlHistoryProvider;
|
|
12855
|
+
|
|
12787
12856
|
/**
|
|
12788
12857
|
* Dispose this source control.
|
|
12789
12858
|
*/
|