Imported Module Highlight and Navigation

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
Locked
User avatar
smokingjoe
Posts: 13
Joined: Wed Jul 22, 2015 4:20 am

Imported Module Highlight and Navigation

Post by smokingjoe » Wed Apr 20, 2016 2:12 pm

PowerShell Studio 2016 [REMOVED BY MODERATOR]

Kinda new at Powershell but here goes. I created a PSM1 file to start grouping some of the more common functions and operations and together. But I noticed that when I go to test my code even though the stepping through the code works fine when you look at the source there are some issue.

The source code where I call a function like:

$A = myfunction

Where myfunction is in a module file that was imported the myfunction part is very gray in color the same as any other missing command let. Seems like maybe it would be some other format to indicate it is being imported. Also the function Navigation tool in the upper right where all the functions for the current script are listed could be enhanced to show the local functions but then nodes for each Module imported and the Exported modules.

Do any of you think this would be useful?
Attachments
2016-04-20_16-10-03.jpg
2016-04-20_16-10-03.jpg (29.6 KiB) Viewed 1906 times

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Imported Module Highlight and Navigation

Post by davidc » Wed Apr 20, 2016 3:12 pm

For your own security please do not post your subscription number on the forums.

The commands can be gray for a number of reasons:

1. The imported module is not cached by PowerShell Studio.
2. The module's cache is not up to date.
3. The coloring could also be affected by the editor settings (Option->PrimalSense->Cmdlet PrimalSense). The default is to color all cmdlets regardless if the module is imported or not.

If you explicitly import a module, the module should have a check mark in the Object Browser:
Imported Modules.png
Imported Modules.png (11.79 KiB) Viewed 1899 times
David
David
SAPIEN Technologies, Inc.

Locked