Пример #1
0
 def test_ShouldEnableTypeScriptCompleter_TsserverNotFound(self, *args):
     user_options = user_options_store.GetAll()
     assert_that(not ShouldEnableTypeScriptCompleter(user_options))
Пример #2
0
def GetCompleter( user_options ):
  if ShouldEnableTernCompleter():
    return TernCompleter( user_options )
  if ShouldEnableTypeScriptCompleter():
    return TypeScriptCompleter( user_options )
  return None
Пример #3
0
 def test_ShouldEnableTypeScriptCompleter_NodeAndTsserverFound(self):
     user_options = user_options_store.GetAll()
     assert_that(ShouldEnableTypeScriptCompleter(user_options))
def ShouldEnableTypeScriptCompleter_TsserverNotFound_test(*args):
    ok_(not ShouldEnableTypeScriptCompleter())
def ShouldEnableTypeScriptCompleter_NodeAndTsserverFound_test():
    ok_(ShouldEnableTypeScriptCompleter())
Пример #6
0
def GetCompleter(user_options):
    if not ShouldEnableTypeScriptCompleter(user_options):
        return None

    return TypeScriptCompleter(user_options)
Пример #7
0
def ShouldEnableTypeScriptCompleter_TsserverNotFound_test(*args):
    ok_(not ShouldEnableTypeScriptCompleter(user_options_store.GetAll()))
Пример #8
0
def ShouldEnableTypeScriptCompleter_NodeAndTsserverFound_test():
    ok_(ShouldEnableTypeScriptCompleter(user_options_store.GetAll()))