Skip to content

Commit 66ed882

Browse files
authored
Merge pull request #1742 from bstaletic/lsp-root-workspace
[READY] Pass the project root as one of the workspaces to LSP servers
2 parents da9c643 + 6cac48e commit 66ed882

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ycmd/completers/language_server/language_server_completer.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,15 +2366,14 @@ def _SendInitialize( self, request_data ):
23662366
# the settings on the Initialize request are somehow subtly different from
23672367
# the settings supplied in didChangeConfiguration, though it's not exactly
23682368
# clear how/where that is specified.
2369-
additional_workspace_dirs = self._settings.get(
2370-
'additional_workspace_dirs',
2371-
[] )
2372-
self._server_workspace_dirs.update( additional_workspace_dirs )
2369+
self._server_workspace_dirs.update( self._settings.get(
2370+
'additional_workspace_dirs',
2371+
[] ) )
23732372
msg = lsp.Initialize( request_id,
23742373
self._project_directory,
23752374
self.ExtraCapabilities(),
23762375
self._settings.get( 'ls', {} ),
2377-
additional_workspace_dirs )
2376+
self._server_workspace_dirs )
23782377

23792378
def response_handler( response, message ):
23802379
if message is None:

0 commit comments

Comments
 (0)