mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
SourceControlInputBox API finalization (#152171)
This commit is contained in:
parent
5e7d488b7c
commit
03be93691c
|
@ -14,7 +14,6 @@
|
|||
"contribMergeEditorToolbar",
|
||||
"contribViewsWelcome",
|
||||
"scmActionButton",
|
||||
"scmInput",
|
||||
"scmSelectedProvider",
|
||||
"scmValidation",
|
||||
"timeline"
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
"../../src/vscode-dts/vscode.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.diffCommand.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.scmActionButton.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.scmInput.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.scmValidation.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.tabs.d.ts",
|
||||
|
|
|
@ -252,12 +252,10 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
|
|||
private _enabled: boolean = true;
|
||||
|
||||
get enabled(): boolean {
|
||||
checkProposedApiEnabled(this._extension, 'scmInput');
|
||||
return this._enabled;
|
||||
}
|
||||
|
||||
set enabled(enabled: boolean) {
|
||||
checkProposedApiEnabled(this._extension, 'scmInput');
|
||||
enabled = !!enabled;
|
||||
|
||||
if (this._enabled === enabled) {
|
||||
|
|
|
@ -47,7 +47,6 @@ export const allApiProposals = Object.freeze({
|
|||
quickPickSortByLabel: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts',
|
||||
resolvers: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts',
|
||||
scmActionButton: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts',
|
||||
scmInput: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmInput.d.ts',
|
||||
scmSelectedProvider: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts',
|
||||
scmValidation: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmValidation.d.ts',
|
||||
snippetWorkspaceEdit: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.snippetWorkspaceEdit.d.ts',
|
||||
|
|
5
src/vscode-dts/vscode.d.ts
vendored
5
src/vscode-dts/vscode.d.ts
vendored
|
@ -13770,6 +13770,11 @@ declare module 'vscode' {
|
|||
*/
|
||||
placeholder: string;
|
||||
|
||||
/**
|
||||
* Controls whether the input box is enabled (default is `true`).
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* Controls whether the input box is visible (default is `true`).
|
||||
*/
|
||||
|
|
20
src/vscode-dts/vscode.proposed.scmInput.d.ts
vendored
20
src/vscode-dts/vscode.proposed.scmInput.d.ts
vendored
|
@ -1,20 +0,0 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'vscode' {
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/150268
|
||||
|
||||
/**
|
||||
* Represents the input box in the Source Control viewlet.
|
||||
*/
|
||||
export interface SourceControlInputBox {
|
||||
|
||||
/**
|
||||
* Controls whether the input box is enabled (default is `true`).
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue