1
Using Code::Blocks / Re: Hiccups while typing (continuation)
« Last post by Pecan on Today at 08:25:46 pm »@ ollydbg
I stopped overthinking this, simplified, and came up this the 7th inning. I think this is a homerun.
Give it a try. Thanks.
I stopped overthinking this, simplified, and came up this the 7th inning. I think this is a homerun.
Give it a try. Thanks.
Code
Index: classbrowser.cpp
===================================================================
--- classbrowser.cpp (revision 13611)
+++ classbrowser.cpp (working copy)
@@ -46,7 +46,7 @@
#include "parser/ccdebuginfo.h"
-#include <stack>
+//unused #include <stack>
#include <chrono>
#define CC_CLASS_BROWSER_DEBUG_OUTPUT 0
@@ -242,6 +242,9 @@
filter = bdfProject;
m_Parser->ClassBrowserOptions().displayFilter = filter;
+ // Update stale CB globals in TempParser before WriteOptions() //(ph 2025/02/10)
+ if (m_Parser == m_ParseManager->GetTempParser())
+ m_Parser->ReadOptions();
m_Parser->WriteOptions();
UpdateClassBrowserView();
}
Index: parsemanager.h
===================================================================
--- parsemanager.h (revision 13611)
+++ parsemanager.h (working copy)
@@ -9,8 +9,8 @@
#include "parsemanager_base.h"
#include "parser/parser.h"
-#include <queue>
-#include <map>
+//unused #include <queue>
+// unused #include <map>
#include <memory>
#include <unordered_map>
@@ -257,6 +257,7 @@
//(ph 2024/01/25)
void SetSymbolsWindowHasFocus(bool trueOrFalse){ m_SymbolsWindowHasFocus = trueOrFalse;}
bool GetSymbolsWindowHasFocus(){return m_SymbolsWindowHasFocus;}
+ ParserBase* GetTempParser(){return m_TempParser;} //(ph 2025/02/10)
protected:
/** When a Parser is created, we need a full parsing stage including:
Index: resources/manifest.xml
===================================================================
--- resources/manifest.xml (revision 13611)
+++ resources/manifest.xml (working copy)
@@ -3,7 +3,7 @@
<SdkVersion major="1" minor="10" release="0" />
<Plugin name="CodeCompletion">
<Value title="Code completion" />
- <Value version="1.0.5 24/01/29" />
+ <Value version="1.0.6 25/02/10" />
<Value description="This plugin provides a symbols browser for your projects and code-completion inside the editor.