app proposed API checks, fyi @eamodio

This commit is contained in:
Johannes Rieken
2021-09-27 16:51:36 +02:00
parent 26ba13ff98
commit 622a8db6e2

View File

@@ -511,8 +511,12 @@ class ExtHostSourceControl implements vscode.SourceControl {
private _actionButtonDisposables = new MutableDisposable<DisposableStore>();
private _actionButton: vscode.Command | undefined;
get actionButton(): vscode.Command | undefined { return this._actionButton; }
get actionButton(): vscode.Command | undefined {
checkProposedApiEnabled(this._extension);
return this._actionButton;
}
set actionButton(actionButton: vscode.Command | undefined) {
checkProposedApiEnabled(this._extension);
this._actionButtonDisposables.value = new DisposableStore();
this._actionButton = actionButton;
@@ -554,7 +558,7 @@ class ExtHostSourceControl implements vscode.SourceControl {
private handle: number = ExtHostSourceControl._handlePool++;
constructor(
_extension: IExtensionDescription,
private readonly _extension: IExtensionDescription,
private _proxy: MainThreadSCMShape,
private _commands: ExtHostCommands,
private _id: string,