Skip to content

Commit

Permalink
Merge pull request #23 from CodinGame/focus-editor-on-open
Browse files Browse the repository at this point in the history
Focus editor when opening it
  • Loading branch information
CGNonofr committed Jul 11, 2022
2 parents 443e45a + 426a9b3 commit c3b4d81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service-override/modelEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ class EditorService implements IEditorService {
applyTextEditorOptions(options, modelEditor, ScrollType.Immediate)
}

modelEditor.focus()

// Return a very simple editor pane, only the `getControl` method is used
return new SimpleEditorPane(modelEditor)
}
Expand Down

0 comments on commit c3b4d81

Please sign in to comment.