Call OmniSharpServer correctly in Cygwin

Cygwin should not call OmniSharpServer with mono
Update OmniSharpServer submodule for new client path mode parameter
Pass client path mode to OmniSharpServer on run
This commit is contained in:
Spencer G. Jones 2014-02-26 12:54:14 -07:00
parent 999a1902eb
commit 81973caf05
3 changed files with 9 additions and 2 deletions

@ -1 +1 @@
Subproject commit 53ea4d7fb5190fa118ff36cdf1037644b4a2fc9f Subproject commit c89ef98ed9182bbca40ce47f2e6ccd1cca91036d

View File

@ -150,9 +150,12 @@ class CsharpCompleter( Completer ):
command = ( omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' + command = ( omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
path_to_solutionfile ) path_to_solutionfile )
if not utils.OnWindows(): if not utils.OnWindows() and not utils.OnCygwin():
command = 'mono ' + command command = 'mono ' + command
if utils.OnCygwin():
command = command + ' --client-path-mode Cygwin'
filename_format = os.path.join( utils.PathToTempDir(), filename_format = os.path.join( utils.PathToTempDir(),
'omnisharp_{port}_{sln}_{std}.log' ) 'omnisharp_{port}_{sln}_{std}.log' )

View File

@ -171,6 +171,10 @@ def OnWindows():
return sys.platform == 'win32' return sys.platform == 'win32'
def OnCygwin():
return sys.platform == 'cygwin'
# From here: http://stackoverflow.com/a/8536476/1672783 # From here: http://stackoverflow.com/a/8536476/1672783
def TerminateProcess( pid ): def TerminateProcess( pid ):
if OnWindows(): if OnWindows():