Skip to content

Commit c4b3030

Browse files
authored
Update VS Code Extension API to 1.108 (DefinitelyTyped#74318)
1 parent ec043bd commit c4b3030

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

types/vscode/index.d.ts

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
/**
7-
* Type Definition for Visual Studio Code 1.107 Extension API
7+
* Type Definition for Visual Studio Code 1.108 Extension API
88
* See https://code.visualstudio.com/api for more information
99
*/
1010

@@ -1943,6 +1943,17 @@ declare module 'vscode' {
19431943
*/
19441944
detail?: string;
19451945

1946+
/**
1947+
* A {@link Uri} representing the resource associated with this item.
1948+
*
1949+
* When set, this property is used to automatically derive several item properties if they are not explicitly provided:
1950+
* - **Label**: Derived from the resource's file name when {@link QuickPickItem.label label} is not provided or is empty.
1951+
* - **Description**: Derived from the resource's path when {@link QuickPickItem.description description} is not provided or is empty.
1952+
* - **Icon**: Derived from the current file icon theme when {@link QuickPickItem.iconPath iconPath} is set to
1953+
* {@link ThemeIcon.File} or {@link ThemeIcon.Folder}.
1954+
*/
1955+
resourceUri?: Uri;
1956+
19461957
/**
19471958
* Optional flag indicating if this item is initially selected.
19481959
*
@@ -2005,6 +2016,13 @@ declare module 'vscode' {
20052016
*/
20062017
placeHolder?: string;
20072018

2019+
/**
2020+
* Optional text that provides instructions or context to the user.
2021+
*
2022+
* The prompt is displayed below the input box and above the list of items.
2023+
*/
2024+
prompt?: string;
2025+
20082026
/**
20092027
* Set to `true` to keep the picker open when focus moves to another part of the editor or to another window.
20102028
* This setting is ignored on iPad and is always `false`.
@@ -7789,7 +7807,7 @@ declare module 'vscode' {
77897807
*
77907808
* Note that the possible values are currently defined as any of the following:
77917809
* 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python',
7792-
* 'sh', 'wsl', 'zsh'.
7810+
* 'sh', 'wsl', 'xonsh', 'zsh'.
77937811
*/
77947812
readonly shell: string | undefined;
77957813
}
@@ -10066,16 +10084,7 @@ declare module 'vscode' {
1006610084
/**
1006710085
* Icon for the panel shown in UI.
1006810086
*/
10069-
iconPath?: Uri | {
10070-
/**
10071-
* The icon path for the light theme.
10072-
*/
10073-
readonly light: Uri;
10074-
/**
10075-
* The icon path for the dark theme.
10076-
*/
10077-
readonly dark: Uri;
10078-
};
10087+
iconPath?: IconPath;
1007910088

1008010089
/**
1008110090
* {@linkcode Webview} belonging to the panel.
@@ -12289,10 +12298,13 @@ declare module 'vscode' {
1228912298
description?: string | boolean;
1229012299

1229112300
/**
12292-
* The {@link Uri} of the resource representing this item.
12301+
* A {@link Uri} representing the resource associated with this item.
1229312302
*
12294-
* Will be used to derive the {@link TreeItem.label label}, when it is not provided.
12295-
* Will be used to derive the icon from current file icon theme, when {@link TreeItem.iconPath iconPath} has {@link ThemeIcon} value.
12303+
* When set, this property is used to automatically derive several item properties if they are not explicitly provided:
12304+
* - **Label**: Derived from the resource's file name when {@link TreeItem.label label} is not provided.
12305+
* - **Description**: Derived from the resource's path when {@link TreeItem.description description} is set to `true`.
12306+
* - **Icon**: Derived from the current file icon theme when {@link TreeItem.iconPath iconPath} is set to
12307+
* {@link ThemeIcon.File} or {@link ThemeIcon.Folder}.
1229612308
*/
1229712309
resourceUri?: Uri;
1229812310

@@ -13138,6 +13150,13 @@ declare module 'vscode' {
1313813150
*/
1313913151
placeholder: string | undefined;
1314013152

13153+
/**
13154+
* Optional text that provides instructions or context to the user.
13155+
*
13156+
* The prompt is displayed below the input box and above the list of items.
13157+
*/
13158+
prompt: string | undefined;
13159+
1314113160
/**
1314213161
* An event signaling when the value of the filter text has changed.
1314313162
*/

types/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/vscode",
4-
"version": "1.107.9999",
4+
"version": "1.108.9999",
55
"nonNpm": "conflict",
66
"nonNpmDescription": "TypeScript definitions for the Visual Studio Code Extension API",
77
"projects": [

0 commit comments

Comments
 (0)