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 {
8080
8181 codeEditorService . willCreateDiffEditor ( ) ;
8282
83- EditorContextKeys . inDiffEditor . bindTo ( this . _contextKeyService ) . set ( true ) ;
83+ this . _contextKeyService . createKey ( EditorContextKeys . inDiffEditor . key , true ) ;
8484 this . _contextKeyService . createKey ( 'diffEditorVersion' , 2 ) ;
8585
8686 this . _options = new DiffEditorOptions ( options ) ;
8787
88+ this . _contextKeyService . createKey ( EditorContextKeys . isEmbeddedDiffEditor . key , false ) ;
8889 const isEmbeddedDiffEditorKey = EditorContextKeys . isEmbeddedDiffEditor . bindTo ( this . _contextKeyService ) ;
8990 this . _register ( autorun ( 'update isEmbeddedDiffEditorKey' , reader => {
9091 isEmbeddedDiffEditorKey . set ( this . _options . isInEmbeddedEditor . read ( reader ) ) ;
You can’t perform that action at this time.
0 commit comments