Re: Clangd_client keeps parsing after target deletion.
There already is code in the parsers waiting queue to check that the file about to be parsed belongs to a project.
ProjectFile* pf = m_Project->GetFileByFilename(list->GetString(i));
if (!pf)
break;
So those sdk target files must have other targets referencing them. Or, there's an error in CB.
Since both old CodeCompletion and Clangd_client work at the project level, I'm pretty sure the code is correct.
But I can test like:
pseudo code:
If file belongs to a project, and ProjectFile-GetTargets() returns zero targets, Do Not parse this file.
But I think that this is useless effort. I betcha it'll return a target every time. Since most projects have at least a release and debug target, one of them will always report that it owns the file. Especially in that CB will not let you delete a target if it's a single target project.
But I'll test deleting the sdk target anyway.