Skip to content

Commit 8f9c6b3

Browse files
committed
fix scm synthetic focus
1 parent f77b6f6 commit 8f9c6b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ class SCMInputWidget extends Disposable {
12201220

12211221
set input(input: ISCMInput | undefined) {
12221222
this.validationDisposable.dispose();
1223+
removeClass(this.editorContainer, 'synthetic-focus');
12231224

12241225
this.repositoryDisposables.dispose();
12251226
this.repositoryDisposables = new DisposableStore();
@@ -1412,6 +1413,7 @@ class SCMInputWidget extends Disposable {
14121413

14131414
focus(): void {
14141415
this.inputEditor.focus();
1416+
addClass(this.editorContainer, 'synthetic-focus');
14151417
}
14161418

14171419
private renderValidation(): void {

0 commit comments

Comments
 (0)