+# TODO: custom sorting?
+# TODO: complete quotes for strings
+
 {debounce} = require 'underscore-plus'
 
 {client} =   require '../connection'


  rawCompletions: ({editor, bufferPosition: {row, column}, activatedManually}) ->
    completions
      mod: modules.current()
      line: editor.getTextInBufferRange [[row, 0], [row, Infinity]]
      column: column+1

  toCompletion: (c, pre) ->
    if c.constructor is String
      c = text: c
    c.replacementPrefix = c._prefix ? pre
    c

  processCompletions: (completions, prefix) ->
