'use babel'

/* @flow */

import DebuggerMi2 from './debugger-mi2'
import type { EventDefs } from 'debugger'

module.exports = {
  instance: null,
  BreakpointEvent: null,
  SessionEvent: null,
  TargetEvent: null,

  activate(): void {
    this.instance = new DebuggerMi2()
  },

  consumeEventDefs(eventDefs: EventDefs): void {
    this.BreakpointEvent = eventDefs.BreakpointEvent
    this.SessionEvent    = eventDefs.SessionEvent
    this.TargetEvent     = eventDefs.TargetEvent
  },

  provideDebugger(): DebuggerMi2 {
    return this.instance
  }
}

'use babel'

/* @flow */

import DebuggerMi2 from './debugger-mi2'
import type { EventDefs } from 'debugger'

module.exports = {
  instance: null,
  BreakpointEvent: null,
  SessionEvent: null,
  TargetEvent: null,
  VariableEvent: null,

  activate(): void {
    this.instance = new DebuggerMi2()
  },

  consumeEventDefs(eventDefs: EventDefs): void {
    this.BreakpointEvent = eventDefs.BreakpointEvent
    this.SessionEvent    = eventDefs.SessionEvent
    this.TargetEvent     = eventDefs.TargetEvent
    this.VariableEvent   = eventDefs.VariableEvent
  },

  provideDebugger(): DebuggerMi2 {
    return this.instance
  }
}

Update event defs to get VariableEvent
Update event defs to get VariableEvent
