minor fix

This commit is contained in:
Chiel92 2013-07-08 11:44:06 +02:00
parent bdd95ff43f
commit 9250f55952

View File

@ -71,12 +71,13 @@ class CsharpCompleter( ThreadedCompleter ):
elif command == 'StopServer':
self._StopServer()
elif command == 'RestartServer':
self._StopServer()
if self._ServerIsRunning():
self._StopServer()
self._StartServer()
def _StartServer( self ):
""" Start the OmniSharp server """
if ( not self._ServerIsRunning() ):
if not self._ServerIsRunning():
folder = os.path.dirname( vim.current.buffer.name )
solutionfiles = glob.glob1( folder, '*.sln' )
while not solutionfiles: