checkalivestatus rename

This commit is contained in:
Chiel92 2013-07-08 14:39:43 +02:00
parent 9250f55952
commit 3227e6dc73
2 changed files with 4 additions and 3 deletions

View File

@ -154,7 +154,7 @@ let g:ycm_cache_omnifunc =
let g:ycm_auto_start_csharp_server =
\ get( g:, 'ycm_auto_start_csharp_server', 0 )
let g:ycm_auto_start_csharp_server =
let g:ycm_csharp_server_port =
\ get( g:, 'ycm_csharp_server_port', 2000 )
" On-demand loading. Let's use the autoload folder and not slow down vim's

View File

@ -43,7 +43,8 @@ class CsharpCompleter( ThreadedCompleter ):
self._StartServer()
def OnVimLeave( self ):
self._StopServer()
if self._ServerIsRunning():
self._StopServer()
def SupportedFiletypes( self ):
""" Just csharp """
@ -116,7 +117,7 @@ class CsharpCompleter( ThreadedCompleter ):
def _ServerIsRunning( self ):
""" Check if the OmniSharp server is running """
return self._GetResponse( '/poke', silent=True ) != None
return self._GetResponse( '/checkalivestatus', silent=True ) != None
def _GetCompletions( self ):
""" Ask server for completions """