From 56a3ca16522b4b17a2ecf8bd4b95ef24ae40a2df Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Fri, 18 Apr 2025 19:35:07 +0200 Subject: [PATCH] ide: Assist diagnostics - show current include path --- uppsrc/ide/idebar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uppsrc/ide/idebar.cpp b/uppsrc/ide/idebar.cpp index d9d86da11..ec395f2d5 100644 --- a/uppsrc/ide/idebar.cpp +++ b/uppsrc/ide/idebar.cpp @@ -931,7 +931,7 @@ void Ide::BrowseMenu(Bar& menu) } if(AssistDiagnostics) { - menu.Separator(); + menu.MenuSeparator(); menu.Add("Dump and show whole current index", [=] { String path = CacheFile("index_" + AsString(Random()) + AsString(Random())); DumpIndex(path); @@ -949,6 +949,9 @@ void Ide::BrowseMenu(Bar& menu) Upp::SaveFile(p, editor.CurrentContext().content); EditFile(p); }); + menu.Add("Current include path", [=] { + PromptOK("\1" + Join(Split(GetCurrentIncludePath(),';'), "\n")); + }); } }