From c4b3030e5a50995219aeee1cb698a8603ccdcc6b Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Fri, 9 Jan 2026 01:44:11 -0500 Subject: [PATCH] Update VS Code Extension API to 1.108 (#74318) --- types/vscode/index.d.ts | 49 +++++++++++++++++++++++++++------------ types/vscode/package.json | 2 +- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/types/vscode/index.d.ts b/types/vscode/index.d.ts index f277dde014dbb4..81b0581fdb6de2 100644 --- a/types/vscode/index.d.ts +++ b/types/vscode/index.d.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ /** - * Type Definition for Visual Studio Code 1.107 Extension API + * Type Definition for Visual Studio Code 1.108 Extension API * See https://code.visualstudio.com/api for more information */ @@ -1943,6 +1943,17 @@ declare module 'vscode' { */ detail?: string; + /** + * A {@link Uri} representing the resource associated with this item. + * + * When set, this property is used to automatically derive several item properties if they are not explicitly provided: + * - **Label**: Derived from the resource's file name when {@link QuickPickItem.label label} is not provided or is empty. + * - **Description**: Derived from the resource's path when {@link QuickPickItem.description description} is not provided or is empty. + * - **Icon**: Derived from the current file icon theme when {@link QuickPickItem.iconPath iconPath} is set to + * {@link ThemeIcon.File} or {@link ThemeIcon.Folder}. + */ + resourceUri?: Uri; + /** * Optional flag indicating if this item is initially selected. * @@ -2005,6 +2016,13 @@ declare module 'vscode' { */ placeHolder?: string; + /** + * Optional text that provides instructions or context to the user. + * + * The prompt is displayed below the input box and above the list of items. + */ + prompt?: string; + /** * Set to `true` to keep the picker open when focus moves to another part of the editor or to another window. * This setting is ignored on iPad and is always `false`. @@ -7789,7 +7807,7 @@ declare module 'vscode' { * * Note that the possible values are currently defined as any of the following: * 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python', - * 'sh', 'wsl', 'zsh'. + * 'sh', 'wsl', 'xonsh', 'zsh'. */ readonly shell: string | undefined; } @@ -10066,16 +10084,7 @@ declare module 'vscode' { /** * Icon for the panel shown in UI. */ - iconPath?: Uri | { - /** - * The icon path for the light theme. - */ - readonly light: Uri; - /** - * The icon path for the dark theme. - */ - readonly dark: Uri; - }; + iconPath?: IconPath; /** * {@linkcode Webview} belonging to the panel. @@ -12289,10 +12298,13 @@ declare module 'vscode' { description?: string | boolean; /** - * The {@link Uri} of the resource representing this item. + * A {@link Uri} representing the resource associated with this item. * - * Will be used to derive the {@link TreeItem.label label}, when it is not provided. - * Will be used to derive the icon from current file icon theme, when {@link TreeItem.iconPath iconPath} has {@link ThemeIcon} value. + * When set, this property is used to automatically derive several item properties if they are not explicitly provided: + * - **Label**: Derived from the resource's file name when {@link TreeItem.label label} is not provided. + * - **Description**: Derived from the resource's path when {@link TreeItem.description description} is set to `true`. + * - **Icon**: Derived from the current file icon theme when {@link TreeItem.iconPath iconPath} is set to + * {@link ThemeIcon.File} or {@link ThemeIcon.Folder}. */ resourceUri?: Uri; @@ -13138,6 +13150,13 @@ declare module 'vscode' { */ placeholder: string | undefined; + /** + * Optional text that provides instructions or context to the user. + * + * The prompt is displayed below the input box and above the list of items. + */ + prompt: string | undefined; + /** * An event signaling when the value of the filter text has changed. */ diff --git a/types/vscode/package.json b/types/vscode/package.json index be7de1f384741e..267cb8e9857a17 100644 --- a/types/vscode/package.json +++ b/types/vscode/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/vscode", - "version": "1.107.9999", + "version": "1.108.9999", "nonNpm": "conflict", "nonNpmDescription": "TypeScript definitions for the Visual Studio Code Extension API", "projects": [