Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel / VBA type library exports #69

Open
sancarn opened this issue Feb 25, 2023 · 1 comment
Open

Excel / VBA type library exports #69

sancarn opened this issue Feb 25, 2023 · 1 comment

Comments

@sancarn
Copy link
Contributor

sancarn commented Feb 25, 2023

I've built an exporter for VBA type information.

As a result you can find all types in VBE7.dll and Excel which are both common exports for VBA usage.

It would be great if VSCode vba could use this as an upstream resource. I.E. Currently only CoClass Collection, as well as base types Integer, Long etc. are highlighted. Theoretically ErrObject should also be highlighted. Similarly with Global,Constants,Strings, ... and other Modules.

It may be worth while to have a config for including syntax highlighting of type libraries, having VBE7 by default but optionally using Excel, Access, Word, ... by user preference? These should be generatable I believe. Something like:

new Regex((await (await fetch(url)).json()).filter(e=>["Module","CoClass","Class"].indexOf(e.type)>0 && e.name.charAt(0)!="_").join("|"), "i")
@serkonda7
Copy link
Owner

Nice suggestion. It would definitely be beneficial!

A possible implementation might use semantic highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants