Skip to content

Architecture

Majeed Kazemitabaar edited this page Jun 23, 2021 · 1 revision

Focus

Responsibilities

  • managing navigation directions
  • setting selections and positions (no other module should update selection/position)
  • getting the current context (needed for validation)

Dependencies:

  • monaco-editor
  • module

Main Methods:

  • getFocusedContext() : Context
  • update()
  • navigatePos(pos: Position) : NavigationFocus
  • navigateUp() : NavigationFocus
  • navigateDown() : NavigationFocus

Helper Methods:

  • isTextEditable() : boolean
Clone this wiki locally