DonaldHays / rgbds-vscode

Visual Studio Code language extension for RGBDS GBZ80 Assembly
MIT License
65 stars 9 forks source link

Symbol scoping improvements #1

Closed DonaldHays closed 6 years ago

DonaldHays commented 6 years ago

ISSOtm - Today at 11:21 PM Although I don't mind symbols in a branch not appearing in others that much, the constants and macros branches are always included, and I really use these a lot.

My idea would be to construct a tree of the files included

Such that non-exported symbols in files declared before the current one in its parents (if any) are added to Intellisense

That was a long descriptor.

Dovuro - Today at 11:24 PM Hmmm. I think that's reasonable.

So a.asm includes b.asm and then c.asm. And so we make it so that c.asm can see everything declared in b.asm, as well as any symbols declared in a.asm prior to the include statement of c.asm?(edited)

DonaldHays commented 6 years ago

@ISSOtm

DonaldHays commented 6 years ago

Improved by ecaa2ccb747f0b6acc8a74d5c6002a0dbd417e1e