Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaszews committed Dec 10, 2023
1 parent 319deca commit b664105
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ycmd/completers/cs/cs_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def DebugInfo( self, request_data ):
omnisharp_server = responses.DebugInfoServer(
name = 'OmniSharp',
handle = completer._omnisharp_phandle,
executable = ' '.join( completer._omnisharp_command ),
executable = ' '.join( completer._ConstructOmnisharpCommand() ),
address = 'localhost',
port = completer._omnisharp_port,
logfiles = [ completer._filename_stdout, completer._filename_stderr ],
Expand Down Expand Up @@ -448,9 +448,8 @@ def _StartServerNoLock( self ):
LOGGER.info( 'Starting OmniSharp server' )
LOGGER.info( 'Loading solution file %s', self._solution_path )

self._ConstructOmnisharpCommand()
LOGGER.info( 'Starting OmniSharp server with: %s',
self._omnisharp_command )
command = self._ConstructOmnisharpCommand()
LOGGER.info( 'Starting OmniSharp server with: %s', command )

solutionfile = os.path.basename( self._solution_path )
self._filename_stdout = utils.CreateLogfile(
Expand All @@ -465,7 +464,7 @@ def _StartServerNoLock( self ):
with utils.OpenForStdHandle( self._filename_stderr ) as fstderr:
with utils.OpenForStdHandle( self._filename_stdout ) as fstdout:
self._omnisharp_phandle = utils.SafePopen(
self._omnisharp_command, stdout = fstdout, stderr = fstderr )
command, stdout = fstdout, stderr = fstderr )

LOGGER.info( 'Started OmniSharp server' )

Expand Down

0 comments on commit b664105

Please sign in to comment.