File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/vs/editor/browser/widget/diffEditorWidget2 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,12 @@ export class DiffEditorWidget2 extends DelegatingEditor implements IDiffEditor {
80
80
81
81
codeEditorService . willCreateDiffEditor ( ) ;
82
82
83
- EditorContextKeys . inDiffEditor . bindTo ( this . _contextKeyService ) . set ( true ) ;
83
+ this . _contextKeyService . createKey ( EditorContextKeys . inDiffEditor . key , true ) ;
84
84
this . _contextKeyService . createKey ( 'diffEditorVersion' , 2 ) ;
85
85
86
86
this . _options = new DiffEditorOptions ( options ) ;
87
87
88
+ this . _contextKeyService . createKey ( EditorContextKeys . isEmbeddedDiffEditor . key , false ) ;
88
89
const isEmbeddedDiffEditorKey = EditorContextKeys . isEmbeddedDiffEditor . bindTo ( this . _contextKeyService ) ;
89
90
this . _register ( autorun ( 'update isEmbeddedDiffEditorKey' , reader => {
90
91
isEmbeddedDiffEditorKey . set ( this . _options . isInEmbeddedEditor . read ( reader ) ) ;
You can’t perform that action at this time.
0 commit comments