Skip to content

Commit

Permalink
Remove scm.focus proposal
Browse files Browse the repository at this point in the history
As discussed in #119904, we're going to use commands for this instead. Removing the proposal
  • Loading branch information
mjbvz committed Nov 10, 2021
1 parent 5f69af1 commit 6816d7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2408,18 +2408,6 @@ declare module 'vscode' {
}
//#endregion

//#region scmFocus: https://github.com/microsoft/vscode/issues/119904

export interface SourceControlInputBox {

/**
* Sets focus to the input.
*/
focus(): void;
}

//#endregion

//#region inlineCompletionProvider: https://github.com/microsoft/vscode/issues/124024 @hediet @alexdima

export namespace languages {
Expand Down
10 changes: 0 additions & 10 deletions src/vs/workbench/api/common/extHostSCM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,6 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
// noop
}

focus(): void {
checkProposedApiEnabled(this._extension);

if (!this._visible) {
this.visible = true;
}

this._proxy.$setInputBoxFocus(this._sourceControlHandle);
}

showValidationMessage(message: string | vscode.MarkdownString, type: vscode.SourceControlInputBoxValidationType) {
checkProposedApiEnabled(this._extension);

Expand Down

0 comments on commit 6816d7e

Please sign in to comment.