@opensumi/sumi 2.18.7 → 2.18.8-next-1657165566.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": "@opensumi/sumi",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.8-next-1657165566.0",
|
|
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.18.
|
|
15
|
+
"@opensumi/ide-components": "2.18.8-next-1657165566.0",
|
|
16
16
|
"@types/react": "^16.9.33",
|
|
17
17
|
"vscode-uri": "^3.0.2"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "77f71ee29006b5ef02b269854092331679255c8d"
|
|
20
20
|
}
|
|
@@ -1331,6 +1331,27 @@ declare module 'sumi-worker' {
|
|
|
1331
1331
|
*/
|
|
1332
1332
|
readonly supportThemeIcons?: boolean;
|
|
1333
1333
|
|
|
1334
|
+
/**
|
|
1335
|
+
* Uri that relative paths are resolved relative to.
|
|
1336
|
+
*
|
|
1337
|
+
* If the `baseUri` ends with `/`, it is considered a directory and relative paths in the markdown are resolved relative to that directory:
|
|
1338
|
+
*
|
|
1339
|
+
* ```ts
|
|
1340
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1341
|
+
* md.baseUri = vscode.Uri.file('/path/to/dir/');
|
|
1342
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/dir/file.js'
|
|
1343
|
+
* ```
|
|
1344
|
+
*
|
|
1345
|
+
* If the `baseUri` is a file, relative paths in the markdown are resolved relative to the parent dir of that file:
|
|
1346
|
+
*
|
|
1347
|
+
* ```ts
|
|
1348
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1349
|
+
* md.baseUri = vscode.Uri.file('/path/to/otherFile.js');
|
|
1350
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/file.js'
|
|
1351
|
+
* ```
|
|
1352
|
+
*/
|
|
1353
|
+
baseUri?: Uri;
|
|
1354
|
+
|
|
1334
1355
|
/**
|
|
1335
1356
|
* Creates a new markdown string with the given value.
|
|
1336
1357
|
*
|
|
@@ -262,13 +262,13 @@ declare module 'vscode' {
|
|
|
262
262
|
export function registerCallHierarchyProvider(selector: DocumentSelector, provider: CallHierarchyProvider): Disposable;
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
265
|
+
* Register a type hierarchy provider.
|
|
266
|
+
*
|
|
267
|
+
* @param selector A selector that defines the documents this provider is applicable to.
|
|
268
|
+
* @param provider A type hierarchy provider.
|
|
269
|
+
* @return A {@link Disposable} that unregisters this provider when being disposed.
|
|
270
|
+
*/
|
|
271
|
+
export function registerTypeHierarchyProvider(selector: DocumentSelector, provider: TypeHierarchyProvider): Disposable;
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Register a linked editing range provider.
|
|
@@ -1537,6 +1537,27 @@ declare module 'vscode' {
|
|
|
1537
1537
|
*/
|
|
1538
1538
|
readonly supportThemeIcons?: boolean;
|
|
1539
1539
|
|
|
1540
|
+
/**
|
|
1541
|
+
* Uri that relative paths are resolved relative to.
|
|
1542
|
+
*
|
|
1543
|
+
* If the `baseUri` ends with `/`, it is considered a directory and relative paths in the markdown are resolved relative to that directory:
|
|
1544
|
+
*
|
|
1545
|
+
* ```ts
|
|
1546
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1547
|
+
* md.baseUri = vscode.Uri.file('/path/to/dir/');
|
|
1548
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/dir/file.js'
|
|
1549
|
+
* ```
|
|
1550
|
+
*
|
|
1551
|
+
* If the `baseUri` is a file, relative paths in the markdown are resolved relative to the parent dir of that file:
|
|
1552
|
+
*
|
|
1553
|
+
* ```ts
|
|
1554
|
+
* const md = new vscode.MarkdownString(`[link](./file.js)`);
|
|
1555
|
+
* md.baseUri = vscode.Uri.file('/path/to/otherFile.js');
|
|
1556
|
+
* // Here 'link' in the rendered markdown resolves to '/path/to/file.js'
|
|
1557
|
+
* ```
|
|
1558
|
+
*/
|
|
1559
|
+
baseUri?: Uri;
|
|
1560
|
+
|
|
1540
1561
|
/**
|
|
1541
1562
|
* Creates a new markdown string with the given value.
|
|
1542
1563
|
*
|
|
@@ -2636,101 +2657,101 @@ declare module 'vscode' {
|
|
|
2636
2657
|
}
|
|
2637
2658
|
|
|
2638
2659
|
/**
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2660
|
+
* Represents an item of a type hierarchy, like a class or an interface.
|
|
2661
|
+
*/
|
|
2662
|
+
export class TypeHierarchyItem {
|
|
2663
|
+
/**
|
|
2664
|
+
* The name of this item.
|
|
2665
|
+
*/
|
|
2666
|
+
name: string;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* The kind of this item.
|
|
2670
|
+
*/
|
|
2671
|
+
kind: SymbolKind;
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Tags for this item.
|
|
2675
|
+
*/
|
|
2676
|
+
tags?: ReadonlyArray<SymbolTag>;
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* More detail for this item, e.g. the signature of a function.
|
|
2680
|
+
*/
|
|
2681
|
+
detail?: string;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* The resource identifier of this item.
|
|
2685
|
+
*/
|
|
2686
|
+
uri: Uri;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* The range enclosing this symbol not including leading/trailing whitespace
|
|
2690
|
+
* but everything else, e.g. comments and code.
|
|
2691
|
+
*/
|
|
2692
|
+
range: Range;
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* The range that should be selected and revealed when this symbol is being
|
|
2696
|
+
* picked, e.g. the name of a class. Must be contained by the {@link TypeHierarchyItem.range range}-property.
|
|
2697
|
+
*/
|
|
2698
|
+
selectionRange: Range;
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* Creates a new type hierarchy item.
|
|
2702
|
+
*
|
|
2703
|
+
* @param kind The kind of the item.
|
|
2704
|
+
* @param name The name of the item.
|
|
2705
|
+
* @param detail The details of the item.
|
|
2706
|
+
* @param uri The Uri of the item.
|
|
2707
|
+
* @param range The whole range of the item.
|
|
2708
|
+
* @param selectionRange The selection range of the item.
|
|
2709
|
+
*/
|
|
2710
|
+
constructor(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range);
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* The type hierarchy provider interface describes the contract between extensions
|
|
2716
|
+
* and the type hierarchy feature.
|
|
2717
|
+
*/
|
|
2718
|
+
export interface TypeHierarchyProvider {
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* Bootstraps type hierarchy by returning the item that is denoted by the given document
|
|
2722
|
+
* and position. This item will be used as entry into the type graph. Providers should
|
|
2723
|
+
* return `undefined` or `null` when there is no item at the given location.
|
|
2724
|
+
*
|
|
2725
|
+
* @param document The document in which the command was invoked.
|
|
2726
|
+
* @param position The position at which the command was invoked.
|
|
2727
|
+
* @param token A cancellation token.
|
|
2728
|
+
* @returns One or multiple type hierarchy items or a thenable that resolves to such. The lack of a result can be
|
|
2729
|
+
* signaled by returning `undefined`, `null`, or an empty array.
|
|
2730
|
+
*/
|
|
2731
|
+
prepareTypeHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<TypeHierarchyItem | TypeHierarchyItem[]>;
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* Provide all supertypes for an item, e.g all types from which a type is derived/inherited. In graph terms this describes directed
|
|
2735
|
+
* and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes
|
|
2736
|
+
* that can be reached.
|
|
2737
|
+
*
|
|
2738
|
+
* @param item The hierarchy item for which super types should be computed.
|
|
2739
|
+
* @param token A cancellation token.
|
|
2740
|
+
* @returns A set of direct supertypes or a thenable that resolves to such. The lack of a result can be
|
|
2741
|
+
* signaled by returning `undefined` or `null`.
|
|
2742
|
+
*/
|
|
2743
|
+
provideTypeHierarchySupertypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
|
|
2744
|
+
|
|
2745
|
+
/**
|
|
2746
|
+
* Provide all subtypes for an item, e.g all types which are derived/inherited from the given item. In
|
|
2747
|
+
* graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting
|
|
2748
|
+
* node and the result is the nodes that can be reached.
|
|
2749
|
+
*
|
|
2750
|
+
* @param item The hierarchy item for which subtypes should be computed.
|
|
2751
|
+
* @param token A cancellation token.
|
|
2752
|
+
* @returns A set of direct subtypes or a thenable that resolves to such. The lack of a result can be
|
|
2753
|
+
* signaled by returning `undefined` or `null`.
|
|
2754
|
+
*/
|
|
2755
|
+
provideTypeHierarchySubtypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
|
|
2756
|
+
}
|
|
2736
2757
|
}
|
|
@@ -603,7 +603,6 @@ declare module 'vscode' {
|
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
export enum InlayHintKind {
|
|
606
|
-
Other = 0,
|
|
607
606
|
Type = 1,
|
|
608
607
|
Parameter = 2,
|
|
609
608
|
}
|
|
@@ -677,4 +676,14 @@ declare module 'vscode' {
|
|
|
677
676
|
}
|
|
678
677
|
|
|
679
678
|
//#endregion
|
|
679
|
+
|
|
680
|
+
export namespace extensions {
|
|
681
|
+
/**
|
|
682
|
+
* All extensions across all extension hosts.
|
|
683
|
+
*
|
|
684
|
+
* @see {@link Extension.isFromDifferentExtensionHost}
|
|
685
|
+
*/
|
|
686
|
+
export const allAcrossExtensionHosts: readonly Extension<void>[];
|
|
687
|
+
|
|
688
|
+
}
|
|
680
689
|
}
|