Visual Studio Code autocomplete

Whats the easiest way to get autocomplete working in a vscode session when Universal is installed via .zip and running under IIS? I’ve tried importing Universal.psm1 and C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.0.0-beta5\UniversalDashboard.psd1, but the second throws the following error:

Cannot convert argument "type", with value: "UniversalDashboard.Models.DashboardColor", for "Add" to type "System.Type": "Cannot convert the "UniversalDashboard.Models.DashboardColor" value of type "System.String" to type "System.Type"."
At C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.0.0-beta5\UniversalDashboard.MaterialUI.psm1:2 char:1
+ $TAtype::Add('DashboardColor', 'UniversalDashboard.Models.DashboardCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
 
Cannot convert argument "type", with value: "UniversalDashboard.Models.Endpoint", for "Add" to type "System.Type": "Cannot convert the "UniversalDashboard.Models.Endpoint" value of type "System.String" to type "System.Type"."
At C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.0.0-beta5\UniversalDashboard.MaterialUI.psm1:3 char:1
+ $TAtype::Add('Endpoint', 'UniversalDashboard.Models.Endpoint')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
 
Cannot convert argument "type", with value: "UniversalDashboard.Models.FontAwesomeIcons", for "Add" to type "System.Type": "Cannot convert the "UniversalDashboard.Models.FontAwesomeIcons" value of type "System.String" to type "System.Type"."
At C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.0.0-beta5\UniversalDashboard.MaterialUI.psm1:4 char:1
+ $TAtype::Add('FontAwesomeIcons', 'UniversalDashboard.Models.FontAweso ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

When you import Universal, try to do so by specifying the -Global switch parameter on Import-Module.

We’re working on a VS Code extension to make this easier.

Thanks Adam, same behaviour with that flag.