boocs / unreal-clangd

VSCode extension for Unreal and clangd
61 stars 5 forks source link

use RunUBT.sh in Linux; fielter .rsp in Source for completionHelper.cpp #15

Closed 94Bo closed 3 months ago

94Bo commented 3 months ago

use RunUBT.sh in Linux: In Unix (Linux) environments, use RunUBT.sh instead of calling UBT directly, as the host environment may lack dotnet or have an incorrect version of dotnet.

fielter .rsp in Source for completionHelper.cpp: When building compile commands for completionHelper.cpp, focus only on the .rsp files corresponding to relevant source files under the Source directory. This is necessary due to numerous source files in the Plugins directory that interfere with the calculation of responsePathMostEntries.

boocs commented 3 months ago

Good changes! I'll work on get this integrated this weekend.

Actually I might wait a little bit longer. I'm almost done with another friend extension to this called 'File Switcher'. It makes the Alt-O shortcut work with clangd where you switch between header and source files. That way I can announce the new extension with the release of this update.

Shouldn't take too long...

boocs commented 3 months ago

It seems alt+O with clangd is working again so I don't need to release my new extension. Dang!

I'll probably update your changes to include Windows RunUBT.bat as well. It appears in the full source version. Should be released tomorrow(23rd) barring any problems.

Thanks again!