Bug 459579

Summary: lspclient: rootpath wrong if different project activated than of the document openend
Product: [Applications] kate Reporter: Eric Armbruster <eric1>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eric Armbruster 2022-09-23 20:05:36 UTC
STEPS TO REPRODUCE
1. Open two projects with different LSP servers using Open Folder. Requires the LSP server of project 1 to determine its rootpath using the project base directory (e.g. Omnisharp Rosyln).
2. Activate project 2 in the project combobox and open a file of project 1 

OBSERVED RESULT
The project base directory of project 1 is used


EXPECTED RESULT
The project base directory of project 2 is used

Workaround
Make sure the project activated is the project of the opened file.
Comment 1 Christoph Cullmann 2022-09-25 16:45:48 UTC
Git commit b30e095f0556cb32d7ff38d0588143e6b3265b0d by Christoph Cullmann.
Committed on 25/09/2022 at 16:45.
Pushed by cullmann into branch 'master'.

use correct project info for the document we work on

M  +4    -5    addons/lspclient/lspclientservermanager.cpp

https://invent.kde.org/utilities/kate/commit/b30e095f0556cb32d7ff38d0588143e6b3265b0d