     else
       Promise.resolve()
 
-  getSuggestions: ({editor, bufferPosition, scopeDescriptor, prefix}) =>
-    line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
-
+  getSuggestions: ({editor, bufferPosition}) =>
     psAtomCompletion.getSuggestions({
-      line: line
+      line: editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
       moduleInfo:
         modules: @editors.getUnqualActiveModules()
         getQualifiedModule: @editors.getQualModule

  getType: (text, modulePrefix) =>
    pscIde.getType(text)(modulePrefix||"")(@editors.getUnqualActiveModules())(@editors.getQualModule)()

  abbrevType: (type) ->
    type.replace(/(?:\w+\.)+(\w+)/g, "$1")

  loadDeps: (editor) ->
    main = @editors.getMainModuleForEditor editor
    if main

{XRegExp} = require 'xregexp'
fs = require 'fs'

{ getProjectRoot } = require './utils'

pscIde = require './psjs/IdePurescript.PscIde'
psAtomCompletion = require './psjs/IdePurescript.Atom.Completion'
