Autocomplete & Intellisense with Classes

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
JDruhan
Posts: 10
Joined: Thu May 25, 2017 11:22 am

Autocomplete & Intellisense with Classes

Post by JDruhan » Mon May 29, 2017 7:59 am

Product, version and build: PowerShell Studio 2017 / 5.4.140
32 or 64 bit version of product: x64
Operating system: Windows 2012 R2
32 or 64 bit OS: x64

I am trialing PowerShell Studio for my company and I'm running into a small issue that I suspect is my fault. There is no autocomplete or intellisense when referring to a class object after pressing the ".".

Example ....

File #1 (myClass.ps1)

Code: Select all

class SPWeb_Helper
{ .... }
File #2 (TestFile.ps1)

Code: Select all

Import-Module "C:\......\myClass.ps1"

$mySite = [SPWeb_Helper]::new();

$mySite.SetSite("intranet.x.y.z");
First off, when I type "$mySite." it doesn't provide me with any properties or methods in the class. Second, when I type "$mySite.siteObject." it does not provide me with any intellisense for the SPWeb object. This works both in ISE and Visual Studio. I'm certain PowerShell Studio supports this functionality I'm just doing it wrong.

Any ideas?

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

Re: Autocomplete & Intellisense with Classes

Post by davidc » Tue May 30, 2017 11:30 am

Adding PrimalSense for classes is on our TODO list.

Note: The PowerShell runspace runs in a separate process from the UI and the runspace is reset after each run, so that information isn't readily available.
David
SAPIEN Technologies, Inc.