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': elif command == 'StopServer':
self._StopServer() self._StopServer()
elif command == 'RestartServer': elif command == 'RestartServer':
if self._ServerIsRunning():
self._StopServer() self._StopServer()
self._StartServer() self._StartServer()
def _StartServer( self ): def _StartServer( self ):
""" Start the OmniSharp server """ """ Start the OmniSharp server """
if ( not self._ServerIsRunning() ): if not self._ServerIsRunning():
folder = os.path.dirname( vim.current.buffer.name ) folder = os.path.dirname( vim.current.buffer.name )
solutionfiles = glob.glob1( folder, '*.sln' ) solutionfiles = glob.glob1( folder, '*.sln' )
while not solutionfiles: while not solutionfiles: