@opensumi/sumi 2.15.4-next-1646729005.0 → 2.15.4

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.15.4-next-1646729005.0",
3
+ "version": "2.15.4",
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.15.4-next-1646729005.0",
15
+ "@opensumi/ide-components": "2.15.4",
16
16
  "@types/react": "^16.9.33",
17
17
  "vscode-uri": "^3.0.2"
18
18
  },
19
- "gitHead": "21cfb3e6927556b30d8c2daeab38d2d0bb94658b"
19
+ "gitHead": "6d71b2ea43a1034e971d1ec8bdf428b7d984b585"
20
20
  }
@@ -208,34 +208,34 @@ declare module 'vscode' {
208
208
  */
209
209
  export class FileDecoration {
210
210
 
211
- /**
212
- * A very short string that represents this decoration.
213
- */
211
+ /**
212
+ * A very short string that represents this decoration.
213
+ */
214
214
  badge?: string;
215
215
 
216
- /**
217
- * A human-readable tooltip for this decoration.
218
- */
216
+ /**
217
+ * A human-readable tooltip for this decoration.
218
+ */
219
219
  tooltip?: string;
220
220
 
221
- /**
222
- * The color of this decoration.
223
- */
221
+ /**
222
+ * The color of this decoration.
223
+ */
224
224
  color?: ThemeColor;
225
225
 
226
- /**
227
- * A flag expressing that this decoration should be
228
- * propagated to its parents.
229
- */
226
+ /**
227
+ * A flag expressing that this decoration should be
228
+ * propagated to its parents.
229
+ */
230
230
  propagate?: boolean;
231
231
 
232
- /**
233
- * Creates a new decoration.
234
- *
235
- * @param badge A letter that represents the decoration.
236
- * @param tooltip The tooltip of the decoration.
237
- * @param color The color of the decoration.
238
- */
232
+ /**
233
+ * Creates a new decoration.
234
+ *
235
+ * @param badge A letter that represents the decoration.
236
+ * @param tooltip The tooltip of the decoration.
237
+ * @param color The color of the decoration.
238
+ */
239
239
  constructor(badge?: string, tooltip?: string, color?: ThemeColor);
240
240
  }
241
241
 
@@ -245,35 +245,35 @@ declare module 'vscode' {
245
245
  */
246
246
  export interface FileDecorationProvider {
247
247
 
248
- /**
249
- * An optional event to signal that decorations for one or many files have changed.
250
- *
251
- * *Note* that this event should be used to propagate information about children.
252
- *
253
- * @see {@link EventEmitter}
254
- */
248
+ /**
249
+ * An optional event to signal that decorations for one or many files have changed.
250
+ *
251
+ * *Note* that this event should be used to propagate information about children.
252
+ *
253
+ * @see {@link EventEmitter}
254
+ */
255
255
  onDidChange: Event<undefined | Uri | Uri[]>;
256
256
 
257
- /**
258
- * An optional event to signal that decorations for one or many files have changed.
259
- *
260
- * *Note* that this event should be used to propagate information about children.
261
- *
262
- * @see [EventEmitter](#EventEmitter)
263
- */
264
- onDidChangeFileDecorations?: Event<undefined | Uri | Uri[]>;
257
+ /**
258
+ * An optional event to signal that decorations for one or many files have changed.
259
+ *
260
+ * *Note* that this event should be used to propagate information about children.
261
+ *
262
+ * @see [EventEmitter](#EventEmitter)
263
+ */
264
+ onDidChangeFileDecorations?: Event<undefined | Uri | Uri[]>;
265
265
 
266
- /**
267
- * Provide decorations for a given uri.
268
- *
269
- * *Note* that this function is only called when a file gets rendered in the UI.
270
- * This means a decoration from a descendent that propagates upwards must be signaled
271
- * to the editor via the {@link FileDecorationProvider.onDidChangeFileDecorations onDidChangeFileDecorations}-event.
272
- *
273
- * @param uri The uri of the file to provide a decoration for.
274
- * @param token A cancellation token.
275
- * @returns A decoration or a thenable that resolves to such.
276
- */
266
+ /**
267
+ * Provide decorations for a given uri.
268
+ *
269
+ * *Note* that this function is only called when a file gets rendered in the UI.
270
+ * This means a decoration from a descendent that propagates upwards must be signaled
271
+ * to the editor via the {@link FileDecorationProvider.onDidChangeFileDecorations onDidChangeFileDecorations}-event.
272
+ *
273
+ * @param uri The uri of the file to provide a decoration for.
274
+ * @param token A cancellation token.
275
+ * @returns A decoration or a thenable that resolves to such.
276
+ */
277
277
  provideFileDecoration(uri: Uri, token: CancellationToken): ProviderResult<FileDecoration>;
278
278
  }
279
279
 
@@ -659,22 +659,4 @@ declare module 'vscode' {
659
659
  provideInlayHints(model: TextDocument, range: Range, token: CancellationToken): ProviderResult<InlayHint[]>;
660
660
  }
661
661
  //#endregion
662
-
663
- //#region https://github.com/Microsoft/vscode/issues/15178
664
-
665
- // TODO@API must be a class
666
- export interface OpenEditorInfo {
667
- name: string;
668
- resource: Uri;
669
- isActive: boolean;
670
- }
671
-
672
- export namespace window {
673
- export const openEditors: ReadonlyArray<OpenEditorInfo>;
674
-
675
- // todo@API proper event type
676
- export const onDidChangeOpenEditors: Event<void>;
677
- }
678
-
679
- //#endregion
680
662
  }