@theia/plugin 1.71.0-next.8 → 1.72.0-next.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.71.0-next.8+8ec70800c",
3
+ "version": "1.72.0-next.0+c7ad8bdd9",
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.70.0"
30
+ "@theia/ext-scripts": "1.71.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "8ec70800c488b9fc44915e8896636628b7cb8636"
35
+ "gitHead": "c7ad8bdd9ec19bcca5aabb3863022d0e6707f23f"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2844,7 +2844,7 @@ export module '@theia/plugin' {
2844
2844
  * @param id id of the icon. The available icons are listed in https://code.visualstudio.com/api/references/icons-in-labels#icon-listing.
2845
2845
  * @param color optional `ThemeColor` for the icon. The color is currently only used in {@link TreeItem}.
2846
2846
  */
2847
- private constructor(id: string, color?: ThemeColor);
2847
+ constructor(id: string, color?: ThemeColor);
2848
2848
  }
2849
2849
 
2850
2850
  /**
@@ -8182,10 +8182,8 @@ export module '@theia/plugin' {
8182
8182
  * A glob pattern that filters the file events on their absolute path must be provided. Optionally,
8183
8183
  * flags to ignore certain kinds of events can be provided. To stop listening to events the watcher must be disposed.
8184
8184
  *
8185
- * *Note* that only files within the current {@link workspace.workspaceFolders workspace folders} can be watched.
8186
- *
8187
8185
  * @param globPattern A {@link GlobPattern glob pattern} that is applied to the absolute paths of created, changed,
8188
- * and deleted files. Use a {@link RelativePattern relative pattern} to limit events to a certain {@link WorkspaceFolder workspace folder}.
8186
+ * and deleted files. Use a {@link RelativePattern relative pattern} to limit events to a certain folder.
8189
8187
  * @param ignoreCreateEvents Ignore when files have been created.
8190
8188
  * @param ignoreChangeEvents Ignore when files have been changed.
8191
8189
  * @param ignoreDeleteEvents Ignore when files have been deleted.
@@ -12713,6 +12711,70 @@ export module '@theia/plugin' {
12713
12711
  readonly description?: string;
12714
12712
  }
12715
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
+
12716
12778
  /**
12717
12779
  * An source control is able to provide {@link SourceControlResourceState resource states}
12718
12780
  * to the editor and interact with the editor in several source control related ways.
@@ -12786,6 +12848,11 @@ export module '@theia/plugin' {
12786
12848
  */
12787
12849
  actionButton?: ScmActionButton;
12788
12850
 
12851
+ /**
12852
+ * Optional history provider.
12853
+ */
12854
+ historyProvider?: SourceControlHistoryProvider;
12855
+
12789
12856
  /**
12790
12857
  * Dispose this source control.
12791
12858
  */
@@ -51,6 +51,13 @@ export module '@theia/plugin' {
51
51
  }
52
52
 
53
53
  export namespace scm {
54
- export function createSourceControl(id: string, label: string, rootUri?: Uri, iconPath?: IconPath, parent?: SourceControl): SourceControl;
54
+ export function createSourceControl(
55
+ id: string,
56
+ label: string,
57
+ rootUri?: Uri,
58
+ iconPath?: IconPath,
59
+ isHidden?: boolean,
60
+ parent?: SourceControl
61
+ ): SourceControl;
55
62
  }
56
63
  }