Skip to content

DSC IntelliSense can cause the language server to crash #391

Closed
@Persistent13

Description

@Persistent13

System Details

  • Operating system name and version: Microsoft Windows 10 Pro Insider Preview
  • VS Code version: 1.8.0
  • PowerShell extension version: 0.8.0
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.14971.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14971.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When writing a DSC file if I attempt to use intellisense to complete the name field of WindowsFeature shown below the PowerShell session will crash.

configuration WebServer
{
    node $ComputerName
    {
        File DSC-Log
        {
            Ensure = 'Present'
            Type = 'Directory'
            DestinationPath = "$env:SystemDrive\DSCBuildLog"
        }
        WindowsFeature IIS
        {
            Ensure = 'Present'
            LogPath = "$env:SystemDrive\DSCBuildLog\IIS.log"
            Name = 
        }
    }
}

The crashing stops if I remove the DSC-Log code block.

Let me know if you need any further details!

Attached Logs

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions