|
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | 6 | /** |
7 | | - * Type Definition for Visual Studio Code 1.107 Extension API |
| 7 | + * Type Definition for Visual Studio Code 1.108 Extension API |
8 | 8 | * See https://code.visualstudio.com/api for more information |
9 | 9 | */ |
10 | 10 |
|
@@ -1943,6 +1943,17 @@ declare module 'vscode' { |
1943 | 1943 | */ |
1944 | 1944 | detail?: string; |
1945 | 1945 |
|
| 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 | + |
1946 | 1957 | /** |
1947 | 1958 | * Optional flag indicating if this item is initially selected. |
1948 | 1959 | * |
@@ -2005,6 +2016,13 @@ declare module 'vscode' { |
2005 | 2016 | */ |
2006 | 2017 | placeHolder?: string; |
2007 | 2018 |
|
| 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 | + |
2008 | 2026 | /** |
2009 | 2027 | * Set to `true` to keep the picker open when focus moves to another part of the editor or to another window. |
2010 | 2028 | * This setting is ignored on iPad and is always `false`. |
@@ -7789,7 +7807,7 @@ declare module 'vscode' { |
7789 | 7807 | * |
7790 | 7808 | * Note that the possible values are currently defined as any of the following: |
7791 | 7809 | * 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python', |
7792 | | - * 'sh', 'wsl', 'zsh'. |
| 7810 | + * 'sh', 'wsl', 'xonsh', 'zsh'. |
7793 | 7811 | */ |
7794 | 7812 | readonly shell: string | undefined; |
7795 | 7813 | } |
@@ -10066,16 +10084,7 @@ declare module 'vscode' { |
10066 | 10084 | /** |
10067 | 10085 | * Icon for the panel shown in UI. |
10068 | 10086 | */ |
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; |
10079 | 10088 |
|
10080 | 10089 | /** |
10081 | 10090 | * {@linkcode Webview} belonging to the panel. |
@@ -12289,10 +12298,13 @@ declare module 'vscode' { |
12289 | 12298 | description?: string | boolean; |
12290 | 12299 |
|
12291 | 12300 | /** |
12292 | | - * The {@link Uri} of the resource representing this item. |
| 12301 | + * A {@link Uri} representing the resource associated with this item. |
12293 | 12302 | * |
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}. |
12296 | 12308 | */ |
12297 | 12309 | resourceUri?: Uri; |
12298 | 12310 |
|
@@ -13138,6 +13150,13 @@ declare module 'vscode' { |
13138 | 13150 | */ |
13139 | 13151 | placeholder: string | undefined; |
13140 | 13152 |
|
| 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 | + |
13141 | 13160 | /** |
13142 | 13161 | * An event signaling when the value of the filter text has changed. |
13143 | 13162 | */ |
|
0 commit comments