File tree Expand file tree Collapse file tree
src/vs/editor/browser/widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -514,8 +514,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
514514 } ) ) ;
515515
516516 const isInDiffLeftEditorKey = contextKeyService . createKey < boolean > ( 'isInDiffLeftEditor' , undefined ) ;
517- this . _register ( Event . any ( editor . onDidFocusEditorText , editor . onDidFocusEditorWidget ) ( ( ) => isInDiffLeftEditorKey . set ( true ) ) ) ;
518- this . _register ( Event . any ( editor . onDidBlurEditorText , editor . onDidBlurEditorWidget ) ( ( ) => isInDiffLeftEditorKey . set ( false ) ) ) ;
517+ this . _register ( editor . onDidFocusEditorWidget ( ( ) => isInDiffLeftEditorKey . set ( true ) ) ) ;
518+ this . _register ( editor . onDidBlurEditorWidget ( ( ) => isInDiffLeftEditorKey . set ( false ) ) ) ;
519519
520520 this . _register ( editor . onDidContentSizeChange ( e => {
521521 const width = this . originalEditor . getContentWidth ( ) + this . modifiedEditor . getContentWidth ( ) + DiffEditorWidget . ONE_OVERVIEW_WIDTH ;
@@ -575,8 +575,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
575575 } ) ) ;
576576
577577 const isInDiffRightEditorKey = contextKeyService . createKey < boolean > ( 'isInDiffRightEditor' , undefined ) ;
578- this . _register ( Event . any ( editor . onDidFocusEditorText , editor . onDidFocusEditorWidget ) ( ( ) => isInDiffRightEditorKey . set ( true ) ) ) ;
579- this . _register ( Event . any ( editor . onDidBlurEditorText , editor . onDidBlurEditorWidget ) ( ( ) => isInDiffRightEditorKey . set ( false ) ) ) ;
578+ this . _register ( editor . onDidFocusEditorWidget ( ( ) => isInDiffRightEditorKey . set ( true ) ) ) ;
579+ this . _register ( editor . onDidBlurEditorWidget ( ( ) => isInDiffRightEditorKey . set ( false ) ) ) ;
580580
581581 this . _register ( editor . onDidContentSizeChange ( e => {
582582 const width = this . originalEditor . getContentWidth ( ) + this . modifiedEditor . getContentWidth ( ) + DiffEditorWidget . ONE_OVERVIEW_WIDTH ;
You can’t perform that action at this time.
0 commit comments