minor fix
This commit is contained in:
parent
bdd95ff43f
commit
9250f55952
@ -71,12 +71,13 @@ class CsharpCompleter( ThreadedCompleter ):
|
|||||||
elif command == 'StopServer':
|
elif command == 'StopServer':
|
||||||
self._StopServer()
|
self._StopServer()
|
||||||
elif command == 'RestartServer':
|
elif command == 'RestartServer':
|
||||||
self._StopServer()
|
if self._ServerIsRunning():
|
||||||
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user