Timocop / BasicPawn

BasicPawn - SourcePawn Editor
GNU General Public License v3.0
75 stars 11 forks source link

Improve parsing of global variables within #include (for AutoComplete) #106

Closed dragokas closed 3 years ago

dragokas commented 3 years ago

With

Profiler g_hProf;

Usually when you type "g_hProf." IntelliSense and AutoComplete is automatically giving you a tip.

But, when

Profiler g_hProf;

is located within include, like: in localizer.inc

Then, you connect it with:

#include <localizer>

but IntelliSense does not react to typing "g_hProf." anymore.

Timocop commented 3 years ago

Enable it in the settings: 2021-06-19_13-30-37

dragokas commented 3 years ago

oww, thanks )

dragokas commented 3 years ago

EDIT. I had that already enabled.

Timocop commented 3 years ago

And it still does not work? Should work just fine, i don't see a reason why it doesn't. Make sure you save the changes otherwise it does not work. Is it referenced when you open both Source and Include file?

dragokas commented 3 years ago

I even tried to open "sourcemod.inc" via Object explorer and add somewhere at the end:

ArrayList al;

Then save, reload project, but in OnPluginStart typing "al." show no tips.

I have such options: image

dragokas commented 3 years ago

ahh, sorry, I'm sleeping.

I was need 3rd option "Parse from all includes".

Again, sorry.