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.
This topic is 7 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
smokingjoe
Posts: 22
Last visit: Mon Aug 22, 2022 10:44 am

Imported Module Highlight and Navigation

Post by smokingjoe »

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 2587 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Imported Module Highlight and Navigation

Post by davidc »

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 2580 times
David
David
SAPIEN Technologies, Inc.
This topic is 7 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked