Merge pull request #900 from mispencer/CygwinClientChanges

Call OmniSharpServer correctly in Cygwin
This commit is contained in:
Val Markovic 2014-03-20 09:41:18 -07:00
commit 5619c00487
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 ' +
path_to_solutionfile )
if not utils.OnWindows():
if not utils.OnWindows() and not utils.OnCygwin():
command = 'mono ' + command
if utils.OnCygwin():
command = command + ' --client-path-mode Cygwin'
filename_format = os.path.join( utils.PathToTempDir(),
'omnisharp_{port}_{sln}_{std}.log' )

View File

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