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
1 change: 0 additions & 1 deletion extensions/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"contribViewsWelcome",
"editSessionIdentityProvider",
"quickDiffProvider",
"quickInputButtonLocation",
"quickPickSortByLabel",
"scmActionButton",
"scmArtifactProvider",
Expand Down
1 change: 0 additions & 1 deletion extensions/git/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"../../src/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts",
"../../src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts",
"../../src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts",
"../../src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts",
"../../src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts",
"../../src/vscode-dts/vscode.proposed.scmActionButton.d.ts",
"../../src/vscode-dts/vscode.proposed.scmArtifactProvider.d.ts",
Expand Down
1 change: 0 additions & 1 deletion extensions/vscode-api-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"notebookMessaging",
"notebookMime",
"portsAttributes",
"quickInputButtonLocation",
"quickPickSortByLabel",
"resolvers",
"scmActionButton",
Expand Down
3 changes: 0 additions & 3 deletions src/vs/platform/extensions/common/extensionsApiProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,6 @@ const _allApiProposals = {
quickDiffProvider: {
proposal: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts',
},
quickInputButtonLocation: {
proposal: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts',
},
quickPickItemTooltip: {
proposal: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts',
},
Expand Down
6 changes: 0 additions & 6 deletions src/vs/workbench/api/common/extHostQuickOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,6 @@ export function createExtHostQuickOpen(mainContext: IMainContext, workspace: IEx
}

set buttons(buttons: QuickInputButton[]) {
if (buttons.some(button =>
typeof button.location === 'number' ||
typeof button.toggle === 'object' && typeof button.toggle.checked === 'boolean')) {
checkProposedApiEnabled(this._extension, 'quickInputButtonLocation');
}

this._buttons = buttons.slice();
this._handlesToButtons.clear();
buttons.forEach((button, i) => {
Expand Down
40 changes: 40 additions & 0 deletions src/vscode-dts/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13298,6 +13298,26 @@ declare module 'vscode' {
validationMessage: string | InputBoxValidationMessage | undefined;
}

/**
* Specifies the location where a {@link QuickInputButton} should be rendered.
*/
export enum QuickInputButtonLocation {
/**
* The button is rendered in the title bar.
*/
Title = 1,

/**
* The button is rendered inline to the right of the input box.
*/
Inline = 2,

/**
* The button is rendered at the far end inside the input box.
*/
Input = 3
}

/**
* A button for an action in a {@link QuickPick} or {@link InputBox}.
*/
Expand All @@ -13311,6 +13331,26 @@ declare module 'vscode' {
* An optional tooltip displayed when hovering over the button.
*/
readonly tooltip?: string | undefined;

/**
* The location where the button should be rendered.
*
* Defaults to {@link QuickInputButtonLocation.Title}.
*
* **Note:** This property is ignored if the button was added to a {@link QuickPickItem}.
*/
location?: QuickInputButtonLocation;

/**
* When present, indicates that the button is a toggle button that can be checked or unchecked.
*/
readonly toggle?: {
/**
* Indicates whether the toggle button is currently checked.
* This property will be updated when the button is toggled.
*/
checked: boolean;
};
}

/**
Expand Down
49 changes: 0 additions & 49 deletions src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts

This file was deleted.

Loading