Skip to content

Commit

Permalink
FixUp: Extra Capabilities - don't modify the _settings dict, use a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Apr 11, 2024
1 parent 9447e72 commit 8c1103b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ycmd/completers/language_server/language_server_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,8 @@ def _SendInitialize( self, request_data ):
'additional_workspace_dirs',
[] ) )

extra_capabilities = self._settings.get( 'capabilities' , {} )
extra_capabilities = {}
extra_capabilities.updaet( self._settings.get( 'capabilities' , {} ) )
extra_capabilities.update( self.ExtraCapabilities() )

msg = lsp.Initialize( request_id,
Expand Down

0 comments on commit 8c1103b

Please sign in to comment.