@opensumi/sumi 2.18.11-next-1657874049.0 → 2.18.11

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.11-next-1657874049.0",
3
+ "version": "2.18.11",
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.11-next-1657874049.0",
15
+ "@opensumi/ide-components": "2.18.11",
16
16
  "@types/react": "^16.9.33",
17
17
  "vscode-uri": "^3.0.2"
18
18
  },
19
- "gitHead": "6724e7f0684757fe54c2466d46d900e98ce0769a"
19
+ "gitHead": "9da07116a5b228a429897d6d8d5b75465b69dc01"
20
20
  }
@@ -1331,27 +1331,6 @@ 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
-
1355
1334
  /**
1356
1335
  * Creates a new markdown string with the given value.
1357
1336
  *
@@ -2606,11 +2606,6 @@ declare module 'vscode' {
2606
2606
  */
2607
2607
  readonly processId: Thenable<number>;
2608
2608
 
2609
- /**
2610
- * The current state of the {@link Terminal}.
2611
- */
2612
- readonly state: TerminalState;
2613
-
2614
2609
  /**
2615
2610
  * The object used to initialize the terminal, this is useful for example to detecting the
2616
2611
  * shell type of when the terminal was not launched by this extension or for detecting what
@@ -2662,25 +2657,25 @@ declare module 'vscode' {
2662
2657
  }
2663
2658
 
2664
2659
  /**
2665
- * Represents the state of a {@link Terminal}.
2666
- */
2667
- export interface TerminalState {
2668
- /**
2669
- * Whether the {@link Terminal} has been interacted with. Interaction means that the
2670
- * terminal has sent data to the process which depending on the terminal's _mode_. By
2671
- * default input is sent when a key is pressed or when a command or extension sends text,
2672
- * but based on the terminal's mode it can also happen on:
2673
- *
2674
- * - a pointer click event
2675
- * - a pointer scroll event
2676
- * - a pointer move event
2677
- * - terminal focus in/out
2678
- *
2679
- * For more information on events that can send data see "DEC Private Mode Set (DECSET)" on
2680
- * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
2681
- */
2682
- readonly isInteractedWith: boolean;
2683
- }
2660
+ * Represents the state of a {@link Terminal}.
2661
+ */
2662
+ export interface TerminalState {
2663
+ /**
2664
+ * Whether the {@link Terminal} has been interacted with. Interaction means that the
2665
+ * terminal has sent data to the process which depending on the terminal's _mode_. By
2666
+ * default input is sent when a key is pressed or when a command or extension sends text,
2667
+ * but based on the terminal's mode it can also happen on:
2668
+ *
2669
+ * - a pointer click event
2670
+ * - a pointer scroll event
2671
+ * - a pointer move event
2672
+ * - terminal focus in/out
2673
+ *
2674
+ * For more information on events that can send data see "DEC Private Mode Set (DECSET)" on
2675
+ * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
2676
+ */
2677
+ readonly isInteractedWith: boolean;
2678
+ }
2684
2679
 
2685
2680
  //#region EnvironmentVariable
2686
2681
 
@@ -3847,83 +3842,6 @@ declare module 'vscode' {
3847
3842
  provideInlineValues(document: TextDocument, viewPort: Range, context: InlineValueContext, token: CancellationToken): ProviderResult<InlineValue[]>;
3848
3843
  }
3849
3844
  //#endregion Inline Values
3850
-
3851
- /**
3852
- * Represents the severity of a language status item.
3853
- */
3854
- export enum LanguageStatusSeverity {
3855
- Information = 0,
3856
- Warning = 1,
3857
- Error = 2
3858
- }
3859
-
3860
- /**
3861
- * A language status item is the preferred way to present language status reports for the active text editors,
3862
- * such as selected linter or notifying about a configuration problem.
3863
- */
3864
- export interface LanguageStatusItem {
3865
-
3866
- /**
3867
- * The identifier of this item.
3868
- */
3869
- readonly id: string;
3870
-
3871
- /**
3872
- * The short name of this item, like 'Java Language Status', etc.
3873
- */
3874
- name: string | undefined;
3875
-
3876
- /**
3877
- * A {@link DocumentSelector selector} that defines for what editors
3878
- * this item shows.
3879
- */
3880
- selector: DocumentSelector;
3881
-
3882
- /**
3883
- * The severity of this item.
3884
- *
3885
- * Defaults to {@link LanguageStatusSeverity.Information information}. You can use this property to
3886
- * signal to users that there is a problem that needs attention, like a missing executable or an
3887
- * invalid configuration.
3888
- */
3889
- severity: LanguageStatusSeverity;
3890
-
3891
- /**
3892
- * The text to show for the entry. You can embed icons in the text by leveraging the syntax:
3893
- *
3894
- * `My text $(icon-name) contains icons like $(icon-name) this one.`
3895
- *
3896
- * Where the icon-name is taken from the ThemeIcon [icon set](https://code.visualstudio.com/api/references/icons-in-labels#icon-listing), e.g.
3897
- * `light-bulb`, `thumbsup`, `zap` etc.
3898
- */
3899
- text: string;
3900
-
3901
- /**
3902
- * Optional, human-readable details for this item.
3903
- */
3904
- detail?: string;
3905
-
3906
- /**
3907
- * Controls whether the item is shown as "busy". Defaults to `false`.
3908
- */
3909
- busy: boolean;
3910
-
3911
- /**
3912
- * A {@linkcode Command command} for this item.
3913
- */
3914
- command: Command | undefined;
3915
-
3916
- /**
3917
- * Accessibility information used when a screen reader interacts with this item
3918
- */
3919
- accessibilityInformation?: AccessibilityInformation;
3920
-
3921
- /**
3922
- * Dispose and free associated resources.
3923
- */
3924
- dispose(): void;
3925
- }
3926
-
3927
3845
  }
3928
3846
 
3929
3847
  /**
@@ -262,13 +262,13 @@ declare module 'vscode' {
262
262
  export function registerCallHierarchyProvider(selector: DocumentSelector, provider: CallHierarchyProvider): Disposable;
263
263
 
264
264
  /**
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;
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.
@@ -314,14 +314,6 @@ declare module 'vscode' {
314
314
  */
315
315
  export function createDiagnosticCollection(name?: string): DiagnosticCollection;
316
316
 
317
- /**
318
- * Creates a new {@link LanguageStatusItem language status item}.
319
- *
320
- * @param id The identifier of the item.
321
- * @param selector The document selector that defines for what editors the item shows.
322
- */
323
- export function createLanguageStatusItem(id: string, selector: DocumentSelector): LanguageStatusItem;
324
-
325
317
  /**
326
318
  * Register a code action provider.
327
319
  *
@@ -1545,27 +1537,6 @@ declare module 'vscode' {
1545
1537
  */
1546
1538
  readonly supportThemeIcons?: boolean;
1547
1539
 
1548
- /**
1549
- * Uri that relative paths are resolved relative to.
1550
- *
1551
- * If the `baseUri` ends with `/`, it is considered a directory and relative paths in the markdown are resolved relative to that directory:
1552
- *
1553
- * ```ts
1554
- * const md = new vscode.MarkdownString(`[link](./file.js)`);
1555
- * md.baseUri = vscode.Uri.file('/path/to/dir/');
1556
- * // Here 'link' in the rendered markdown resolves to '/path/to/dir/file.js'
1557
- * ```
1558
- *
1559
- * If the `baseUri` is a file, relative paths in the markdown are resolved relative to the parent dir of that file:
1560
- *
1561
- * ```ts
1562
- * const md = new vscode.MarkdownString(`[link](./file.js)`);
1563
- * md.baseUri = vscode.Uri.file('/path/to/otherFile.js');
1564
- * // Here 'link' in the rendered markdown resolves to '/path/to/file.js'
1565
- * ```
1566
- */
1567
- baseUri?: Uri;
1568
-
1569
1540
  /**
1570
1541
  * Creates a new markdown string with the given value.
1571
1542
  *
@@ -2665,101 +2636,101 @@ declare module 'vscode' {
2665
2636
  }
2666
2637
 
2667
2638
  /**
2668
- * Represents an item of a type hierarchy, like a class or an interface.
2669
- */
2670
- export class TypeHierarchyItem {
2671
- /**
2672
- * The name of this item.
2673
- */
2674
- name: string;
2675
-
2676
- /**
2677
- * The kind of this item.
2678
- */
2679
- kind: SymbolKind;
2680
-
2681
- /**
2682
- * Tags for this item.
2683
- */
2684
- tags?: ReadonlyArray<SymbolTag>;
2685
-
2686
- /**
2687
- * More detail for this item, e.g. the signature of a function.
2688
- */
2689
- detail?: string;
2690
-
2691
- /**
2692
- * The resource identifier of this item.
2693
- */
2694
- uri: Uri;
2695
-
2696
- /**
2697
- * The range enclosing this symbol not including leading/trailing whitespace
2698
- * but everything else, e.g. comments and code.
2699
- */
2700
- range: Range;
2701
-
2702
- /**
2703
- * The range that should be selected and revealed when this symbol is being
2704
- * picked, e.g. the name of a class. Must be contained by the {@link TypeHierarchyItem.range range}-property.
2705
- */
2706
- selectionRange: Range;
2707
-
2708
- /**
2709
- * Creates a new type hierarchy item.
2710
- *
2711
- * @param kind The kind of the item.
2712
- * @param name The name of the item.
2713
- * @param detail The details of the item.
2714
- * @param uri The Uri of the item.
2715
- * @param range The whole range of the item.
2716
- * @param selectionRange The selection range of the item.
2717
- */
2718
- constructor(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range);
2719
- }
2720
-
2721
-
2722
- /**
2723
- * The type hierarchy provider interface describes the contract between extensions
2724
- * and the type hierarchy feature.
2725
- */
2726
- export interface TypeHierarchyProvider {
2727
-
2728
- /**
2729
- * Bootstraps type hierarchy by returning the item that is denoted by the given document
2730
- * and position. This item will be used as entry into the type graph. Providers should
2731
- * return `undefined` or `null` when there is no item at the given location.
2732
- *
2733
- * @param document The document in which the command was invoked.
2734
- * @param position The position at which the command was invoked.
2735
- * @param token A cancellation token.
2736
- * @returns One or multiple type hierarchy items or a thenable that resolves to such. The lack of a result can be
2737
- * signaled by returning `undefined`, `null`, or an empty array.
2738
- */
2739
- prepareTypeHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<TypeHierarchyItem | TypeHierarchyItem[]>;
2740
-
2741
- /**
2742
- * Provide all supertypes for an item, e.g all types from which a type is derived/inherited. In graph terms this describes directed
2743
- * and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes
2744
- * that can be reached.
2745
- *
2746
- * @param item The hierarchy item for which super types should be computed.
2747
- * @param token A cancellation token.
2748
- * @returns A set of direct supertypes or a thenable that resolves to such. The lack of a result can be
2749
- * signaled by returning `undefined` or `null`.
2750
- */
2751
- provideTypeHierarchySupertypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
2752
-
2753
- /**
2754
- * Provide all subtypes for an item, e.g all types which are derived/inherited from the given item. In
2755
- * graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting
2756
- * node and the result is the nodes that can be reached.
2757
- *
2758
- * @param item The hierarchy item for which subtypes should be computed.
2759
- * @param token A cancellation token.
2760
- * @returns A set of direct subtypes or a thenable that resolves to such. The lack of a result can be
2761
- * signaled by returning `undefined` or `null`.
2762
- */
2763
- provideTypeHierarchySubtypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
2764
- }
2639
+ * Represents an item of a type hierarchy, like a class or an interface.
2640
+ */
2641
+ export class TypeHierarchyItem {
2642
+ /**
2643
+ * The name of this item.
2644
+ */
2645
+ name: string;
2646
+
2647
+ /**
2648
+ * The kind of this item.
2649
+ */
2650
+ kind: SymbolKind;
2651
+
2652
+ /**
2653
+ * Tags for this item.
2654
+ */
2655
+ tags?: ReadonlyArray<SymbolTag>;
2656
+
2657
+ /**
2658
+ * More detail for this item, e.g. the signature of a function.
2659
+ */
2660
+ detail?: string;
2661
+
2662
+ /**
2663
+ * The resource identifier of this item.
2664
+ */
2665
+ uri: Uri;
2666
+
2667
+ /**
2668
+ * The range enclosing this symbol not including leading/trailing whitespace
2669
+ * but everything else, e.g. comments and code.
2670
+ */
2671
+ range: Range;
2672
+
2673
+ /**
2674
+ * The range that should be selected and revealed when this symbol is being
2675
+ * picked, e.g. the name of a class. Must be contained by the {@link TypeHierarchyItem.range range}-property.
2676
+ */
2677
+ selectionRange: Range;
2678
+
2679
+ /**
2680
+ * Creates a new type hierarchy item.
2681
+ *
2682
+ * @param kind The kind of the item.
2683
+ * @param name The name of the item.
2684
+ * @param detail The details of the item.
2685
+ * @param uri The Uri of the item.
2686
+ * @param range The whole range of the item.
2687
+ * @param selectionRange The selection range of the item.
2688
+ */
2689
+ constructor(kind: SymbolKind, name: string, detail: string, uri: Uri, range: Range, selectionRange: Range);
2690
+ }
2691
+
2692
+
2693
+ /**
2694
+ * The type hierarchy provider interface describes the contract between extensions
2695
+ * and the type hierarchy feature.
2696
+ */
2697
+ export interface TypeHierarchyProvider {
2698
+
2699
+ /**
2700
+ * Bootstraps type hierarchy by returning the item that is denoted by the given document
2701
+ * and position. This item will be used as entry into the type graph. Providers should
2702
+ * return `undefined` or `null` when there is no item at the given location.
2703
+ *
2704
+ * @param document The document in which the command was invoked.
2705
+ * @param position The position at which the command was invoked.
2706
+ * @param token A cancellation token.
2707
+ * @returns One or multiple type hierarchy items or a thenable that resolves to such. The lack of a result can be
2708
+ * signaled by returning `undefined`, `null`, or an empty array.
2709
+ */
2710
+ prepareTypeHierarchy(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<TypeHierarchyItem | TypeHierarchyItem[]>;
2711
+
2712
+ /**
2713
+ * Provide all supertypes for an item, e.g all types from which a type is derived/inherited. In graph terms this describes directed
2714
+ * and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes
2715
+ * that can be reached.
2716
+ *
2717
+ * @param item The hierarchy item for which super types should be computed.
2718
+ * @param token A cancellation token.
2719
+ * @returns A set of direct supertypes or a thenable that resolves to such. The lack of a result can be
2720
+ * signaled by returning `undefined` or `null`.
2721
+ */
2722
+ provideTypeHierarchySupertypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
2723
+
2724
+ /**
2725
+ * Provide all subtypes for an item, e.g all types which are derived/inherited from the given item. In
2726
+ * graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting
2727
+ * node and the result is the nodes that can be reached.
2728
+ *
2729
+ * @param item The hierarchy item for which subtypes should be computed.
2730
+ * @param token A cancellation token.
2731
+ * @returns A set of direct subtypes or a thenable that resolves to such. The lack of a result can be
2732
+ * signaled by returning `undefined` or `null`.
2733
+ */
2734
+ provideTypeHierarchySubtypes(item: TypeHierarchyItem, token: CancellationToken): ProviderResult<TypeHierarchyItem[]>;
2735
+ }
2765
2736
  }
@@ -603,132 +603,45 @@ declare module 'vscode' {
603
603
  }
604
604
 
605
605
  export enum InlayHintKind {
606
+ Other = 0,
606
607
  Type = 1,
607
608
  Parameter = 2,
608
609
  }
609
610
 
610
- /**
611
- * An inlay hint label part allows for interactive and composite labels of inlay hints.
612
- */
613
- export class InlayHintLabelPart {
614
-
615
- /**
616
- * The value of this label part.
617
- */
618
- value: string;
619
-
620
- /**
621
- * The tooltip text when you hover over this label part.
622
- *
623
- * *Note* that this property can be set late during
624
- * {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.
625
- */
626
- tooltip?: string | MarkdownString | undefined;
627
-
628
- /**
629
- * An optional {@link Location source code location} that represents this label
630
- * part.
631
- *
632
- * The editor will use this location for the hover and for code navigation features: This
633
- * part will become a clickable link that resolves to the definition of the symbol at the
634
- * given location (not necessarily the location itself), it shows the hover that shows at
635
- * the given location, and it shows a context menu with further code navigation commands.
636
- *
637
- * *Note* that this property can be set late during
638
- * {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.
639
- */
640
- location?: Location | undefined;
641
-
642
- /**
643
- * An optional command for this label part.
644
- *
645
- * The editor renders parts with commands as clickable links. The command is added to the context menu
646
- * when a label part defines {@link InlayHintLabelPart.location location} and {@link InlayHintLabelPart.command command} .
647
- *
648
- * *Note* that this property can be set late during
649
- * {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.
650
- */
651
- command?: Command | undefined;
652
-
653
- /**
654
- * Creates a new inlay hint label part.
655
- *
656
- * @param value The value of the part.
657
- */
658
- constructor(value: string);
659
- }
660
-
661
611
  /**
662
612
  * Inlay hint information.
663
613
  */
664
- export class InlayHint {
665
-
666
- /**
667
- * The position of this hint.
668
- */
669
- position: Position;
670
-
671
- /**
672
- * The label of this hint. A human readable string or an array of {@link InlayHintLabelPart label parts}.
673
- *
674
- * *Note* that neither the string nor the label part can be empty.
675
- */
676
- label: string | InlayHintLabelPart[];
677
-
678
- /**
679
- * The tooltip text when you hover over this item.
680
- *
681
- * *Note* that this property can be set late during
682
- * {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.
683
- */
684
- tooltip?: string | MarkdownString | undefined;
685
-
686
- /**
687
- * The kind of this hint. The inlay hint kind defines the appearance of this inlay hint.
688
- */
689
- kind?: InlayHintKind;
690
-
691
- /**
692
- * Optional {@link TextEdit text edits} that are performed when accepting this inlay hint. The default
693
- * gesture for accepting an inlay hint is the double click.
694
- *
695
- * *Note* that edits are expected to change the document so that the inlay hint (or its nearest variant) is
696
- * now part of the document and the inlay hint itself is now obsolete.
697
- *
698
- * *Note* that this property can be set late during
699
- * {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.
700
- */
701
- textEdits?: TextEdit[];
702
-
703
- /**
704
- * Render padding before the hint. Padding will use the editor's background color,
705
- * not the background color of the hint itself. That means padding can be used to visually
706
- * align/separate an inlay hint.
707
- */
708
- paddingLeft?: boolean;
709
-
710
- /**
711
- * Render padding after the hint. Padding will use the editor's background color,
712
- * not the background color of the hint itself. That means padding can be used to visually
713
- * align/separate an inlay hint.
714
- */
715
- paddingRight?: boolean;
716
-
717
- /**
718
- * Creates a new inlay hint.
719
- *
720
- * @param position The position of the hint.
721
- * @param label The label of the hint.
722
- * @param kind The {@link InlayHintKind kind} of the hint.
723
- */
724
- constructor(position: Position, label: string | InlayHintLabelPart[], kind?: InlayHintKind);
725
- }
614
+ export class InlayHint {
615
+ /**
616
+ * The text of the hint.
617
+ */
618
+ text: string;
619
+ /**
620
+ * The position of this hint.
621
+ */
622
+ position: Position;
623
+ /**
624
+ * The kind of this hint.
625
+ */
626
+ kind?: InlayHintKind;
627
+ /**
628
+ * Whitespace before the hint.
629
+ */
630
+ whitespaceBefore?: boolean;
631
+ /**
632
+ * Whitespace after the hint.
633
+ */
634
+ whitespaceAfter?: boolean;
635
+
636
+ // todo@API make range first argument
637
+ constructor(text: string, position: Position, kind?: InlayHintKind);
638
+ }
726
639
 
727
640
  /**
728
641
  * The inlay hints provider interface defines the contract between extensions and
729
642
  * the inlay hints feature.
730
643
  */
731
- export interface InlayHintsProvider<T extends InlayHint = InlayHint> {
644
+ export interface InlayHintsProvider {
732
645
 
733
646
  /**
734
647
  * An optional event to signal that inlay hints have changed.
@@ -743,19 +656,7 @@ declare module 'vscode' {
743
656
  * @param token A cancellation token.
744
657
  * @return A list of inlay hints or a thenable that resolves to such.
745
658
  */
746
- provideInlayHints(model: TextDocument, range: Range, token: CancellationToken): ProviderResult<T[]>;
747
-
748
- /**
749
- * Given an inlay hint fill in {@link InlayHint.tooltip tooltip}, {@link InlayHint.textEdits text edits},
750
- * or complete label {@link InlayHintLabelPart parts}.
751
- *
752
- * *Note* that the editor will resolve an inlay hint at most once.
753
- *
754
- * @param hint An inlay hint.
755
- * @param token A cancellation token.
756
- * @return The resolved inlay hint or a thenable that resolves to such. It is OK to return the given `item`. When no result is returned, the given `item` will be used.
757
- */
758
- resolveInlayHint?(hint: T, token: CancellationToken): ProviderResult<T>;
659
+ provideInlayHints(model: TextDocument, range: Range, token: CancellationToken): ProviderResult<InlayHint[]>;
759
660
  }
760
661
  //#endregion
761
662
 
@@ -776,14 +677,4 @@ declare module 'vscode' {
776
677
  }
777
678
 
778
679
  //#endregion
779
-
780
- export namespace extensions {
781
- /**
782
- * All extensions across all extension hosts.
783
- *
784
- * @see {@link Extension.isFromDifferentExtensionHost}
785
- */
786
- export const allAcrossExtensionHosts: readonly Extension<void>[];
787
-
788
- }
789
680
  }
@@ -339,11 +339,6 @@ declare module 'vscode' {
339
339
  */
340
340
  export const onDidCloseTerminal: Event<Terminal>;
341
341
 
342
- /**
343
- * An {@link Event} which fires when a {@link Terminal.state terminal's state} has changed.
344
- */
345
- export const onDidChangeTerminalState: Event<Terminal>;
346
-
347
342
  /**
348
343
  * Represents the current window's state.
349
344
  */
@@ -1,4 +1,30 @@
1
1
  declare module 'vscode' {
2
+
3
+ // #region https://github.com/microsoft/vscode/issues/129037
4
+
5
+ enum LanguageStatusSeverity {
6
+ Information = 0,
7
+ Warning = 1,
8
+ Error = 2,
9
+ }
10
+
11
+ interface LanguageStatusItem {
12
+ readonly id: string;
13
+ selector: DocumentSelector;
14
+ // todo@jrieken replace with boolean ala needsAttention
15
+ severity: LanguageStatusSeverity;
16
+ name: string | undefined;
17
+ text: string;
18
+ detail?: string;
19
+ command: Command | undefined;
20
+ accessibilityInformation?: AccessibilityInformation;
21
+ dispose(): void;
22
+ }
23
+
24
+ namespace languages {
25
+ export function createLanguageStatusItem(id: string, selector: DocumentSelector): LanguageStatusItem;
26
+ }
27
+
2
28
  // #endregion
3
29
 
4
30
  // #region @jrieken -> exclusive document filters