Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 34 additions & 15 deletions types/vscode/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/vscode/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down