@opensumi/sumi 2.16.7 → 2.16.8

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": "@opensumi/sumi",
3
- "version": "2.16.7",
3
+ "version": "2.16.8",
4
4
  "typings": "index.d.ts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,9 +12,9 @@
12
12
  "build": "ts-node ./build"
13
13
  },
14
14
  "dependencies": {
15
- "@opensumi/ide-components": "2.16.7",
15
+ "@opensumi/ide-components": "2.16.8",
16
16
  "@types/react": "^16.9.33",
17
17
  "vscode-uri": "^3.0.2"
18
18
  },
19
- "gitHead": "46f7e17ad9c1c6d98d8fb7653a62ba152c7078cc"
19
+ "gitHead": "9642e53e1dc3cd2e8fc2af418f33e532a2c7475c"
20
20
  }
@@ -59,6 +59,17 @@ declare module 'vscode' {
59
59
  */
60
60
  createIfNone?: boolean;
61
61
 
62
+ /**
63
+ * Whether we should attempt to reauthenticate even if there is already a session available.
64
+ *
65
+ * If true, a modal dialog will be shown asking the user to sign in again. This is mostly used for scenarios
66
+ * where the token needs to be re minted because it has lost some authorization.
67
+ *
68
+ * Defaults to false.
69
+ */
70
+ forceNewSession?: boolean | { detail: string };
71
+
72
+
62
73
  /**
63
74
  * Whether the existing user session preference should be cleared.
64
75
  *
@@ -69,6 +80,18 @@ declare module 'vscode' {
69
80
  * Defaults to false.
70
81
  */
71
82
  clearSessionPreference?: boolean;
83
+
84
+ /**
85
+ * Whether we should show the indication to sign in in the Accounts menu.
86
+ *
87
+ * If false, the user will be shown a badge on the Accounts menu with an option to sign in for the extension.
88
+ * If true, no indication will be shown.
89
+ *
90
+ * Defaults to false.
91
+ *
92
+ * Note: you cannot use this option with any other options that prompt the user like {@link createIfNone}.
93
+ */
94
+ silent?: boolean;
72
95
  }
73
96
 
74
97
  /**
@@ -228,4 +251,4 @@ declare module 'vscode' {
228
251
  */
229
252
  export function registerAuthenticationProvider(id: string, label: string, provider: AuthenticationProvider, options?: AuthenticationProviderOptions): Disposable;
230
253
  }
231
- }
254
+ }
@@ -148,6 +148,13 @@ declare module 'vscode' {
148
148
  */
149
149
  hide(): void;
150
150
 
151
+ /**
152
+ * Replaces all output from the channel with the given value.
153
+ *
154
+ * @param value A string, falsy values will not be printed.
155
+ */
156
+ replace(value: string): void;
157
+
151
158
  /**
152
159
  * Dispose and free associated resources.
153
160
  */