cquery-project / vscode-cquery

cquery plugin for Visual Studio Code
54 stars 16 forks source link

Wrong import with cquery._insertInclude #57

Open SeeYouSadPython opened 5 years ago

SeeYouSadPython commented 5 years ago

I have setup my project with "cquery.index.extraClangArguments": [ "-IC:/FolderFirst/FolderSecond", other_include_folders_here, "-DMacro_Definitions", other_macro_definitions_here ] so, then i trying to import header from vs code actions, it insert full path without include derective, can i setup relative path(array?) with logic "for item if contains one_of_relative_paths remove one_of_relative_paths from item" and then include "relative_path_without_abs_path". Now: C:/FolderFirst/FolderSecond/AnotherFolder/Class.h Should be: AnotherFolder/Class.h