Skip to content

Build and keep a cache of installed modules for intellisense #263

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

Open
gerane opened this issue Jul 22, 2016 · 4 comments
Open

Build and keep a cache of installed modules for intellisense #263

gerane opened this issue Jul 22, 2016 · 4 comments

Comments

@gerane
Copy link
Contributor

gerane commented Jul 22, 2016

It would be useful if PSES would automatically cache any modules in the PSModulePath so that it could offer intellisense without needing to load the module.

@daviwil
Copy link
Contributor

daviwil commented Jul 22, 2016

Yeah, I'd have to find a way to do that securely, i.e. without loading the modules (and causing the .psm1 to be loaded).

@gerane
Copy link
Contributor Author

gerane commented Jul 22, 2016

Couldn't you use something like

 [System.Management.Automation.PSParser]::Tokenize()

On Fri, Jul 22, 2016, 5:02 PM David Wilson notifications@github.com wrote:

Yeah, I'd have to find a way to do that securely, i.e. without loading the
modules (and causing the .psm1 to be loaded).


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#263 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGWoQCgaTjMVcdCOo9VAINWuMuXXuM_Oks5qYT3fgaJpZM4JS1pl
.

@daviwil
Copy link
Contributor

daviwil commented Jul 23, 2016

That'd mean I'd have to manually scan every module in the module path and parse each code file contained within. Not sure if that's an ideal way to do it. I'll ask someone in the team to see if there's a better way

@kilasuit
Copy link

@daviwil - Perhaps you can make use the current cache as detailed at the bottom of https://msdn.microsoft.com/en-us/powershell/wmf/5.1/engine-improvements

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

4 participants