12/22/2016 10:12:03 AM [NORMAL] - Method "StartLogging" at line 117 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs PowerShell Editor Services Host v0.8.0.469 starting (pid 12664)... Host application details: Name: Visual Studio Code Host ProfileId: Microsoft.VSCode Version: 0.8.0 Arch: 64-bit Operating system details: Version: Microsoft Windows NT 10.0.10586.0 Arch: 64-bit 12/22/2016 10:12:04 AM [NORMAL] - Method "Initialize" at line 202 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs PowerShell runtime version: 5.0.10586.672, edition: Desktop 12/22/2016 10:12:04 AM [VERBOSE] - Method "SetExecutionPolicy" at line 1050 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Current execution policy: ExecutionPolicy.Unrestricted 12/22/2016 10:12:04 AM [VERBOSE] - Method "SetProfileVariableInCurrentRunspace" at line 1154 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Setting $profile variable in runspace. Current user host profile path: C:\Users\585553\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1 12/22/2016 10:12:05 AM [NORMAL] - Method "FindPSScriptAnalyzer" at line 191 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs PSScriptAnalyzer found at C:\Users\585553\.vscode\extensions\ms-vscode.PowerShell-0.8.0\modules\PSScriptAnalyzer\PSScriptAnalyzer.psd1 12/22/2016 10:12:06 AM [NORMAL] - Method "ImportPSScriptAnalyzer" at line 227 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs Successfully imported PSScriptAnalyzer 12/22/2016 10:12:06 AM [VERBOSE] - Method "EnumeratePSScriptAnalyzerRules" at line 246 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs Available PSScriptAnalyzer Rules: PSAvoidUsingCmdletAliases PSAvoidDefaultValueSwitchParameter PSAvoidDefaultValueForMandatoryParameter PSAvoidUsingEmptyCatchBlock PSAvoidGlobalAliases PSAvoidGlobalFunctions PSAvoidGlobalVars PSAvoidInvokingEmptyMembers PSAvoidNullOrEmptyHelpMessageAttribute PSAvoidUsingPositionalParameters PSReservedCmdletChar PSReservedParams PSAvoidShouldContinueWithoutForce PSAvoidUsingUserNameAndPassWordParams PSAvoidUsingComputerNameHardcoded PSAvoidUsingConvertToSecureStringWithPlainText PSAvoidUsingDeprecatedManifestFields PSAvoidUsingInvokeExpression PSAvoidUsingPlainTextForPassword PSAvoidUsingWMICmdlet PSAvoidUsingWriteHost PSMisleadingBacktick PSMissingModuleManifestField PSPossibleIncorrectComparisonWithNull PSProvideCommentHelp PSUseApprovedVerbs PSUseBOMForUnicodeEncodedFile PSUseCmdletCorrectly PSUseCompatibleCmdlets PSUseDeclaredVarsMoreThanAssignments PSUseLiteralInitializerForHashtable PSUseOutputTypeCorrectly PSUsePSCredentialType PSShouldProcess PSUseShouldProcessForStateChangingFunctions PSUseSingularNouns PSUseToExportFieldsInManifest PSUseUTF8EncodingForHelpFile PSDSCDscExamplesPresent PSDSCDscTestsPresent PSDSCReturnCorrectTypesForDSCFunctions PSDSCUseIdenticalMandatoryParametersForDSC PSDSCUseIdenticalParametersForDSC PSDSCStandardDSCFunctionsInResource PSDSCUseVerboseMessageInDSCResource 12/22/2016 10:12:06 AM [VERBOSE] - Method "Initialize" at line 103 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Extensions\ExtensionService.cs Executing extension API cmdlet script at path: C:\Users\585553\AppData\Local\Temp\PSES_ExtensionCmdlets_mcyn2nmp.ps1 12/22/2016 10:12:06 AM [VERBOSE] - Method "ExecuteCommand" at line 448 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): . C:\Users\585553\AppData\Local\Temp\PSES_ExtensionCmdlets_mcyn2nmp.ps1 12/22/2016 10:12:06 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 12/22/2016 10:12:06 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Running New state: Ready Result: Completed 12/22/2016 10:12:06 AM [VERBOSE] - Method "ExecuteCommand" at line 490 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Execution completed successfully. 12/22/2016 10:12:06 AM [NORMAL] - Method "StartLanguageService" at line 150 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs Language service started, listening on port 21584 12/22/2016 10:12:06 AM [NORMAL] - Method "Initialize" at line 202 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs PowerShell runtime version: 5.0.10586.672, edition: Desktop 12/22/2016 10:12:06 AM [VERBOSE] - Method "SetExecutionPolicy" at line 1050 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Current execution policy: ExecutionPolicy.Unrestricted 12/22/2016 10:12:06 AM [VERBOSE] - Method "SetProfileVariableInCurrentRunspace" at line 1154 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Setting $profile variable in runspace. Current user host profile path: C:\Users\585553\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1 12/22/2016 10:12:07 AM [NORMAL] - Method "StartDebugService" at line 181 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs Debug service started, listening on port 18563 12/22/2016 10:12:07 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "id": 0, "method": "initialize", "params": { "processId": 56764, "rootPath": "c:\\Users\\585553\\Documents\\Visual Studio 2015\\Projects\\PowerShellProject\\PowerShellProject", "capabilities": {} } } 12/22/2016 10:12:07 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "jsonrpc": "2.0", "id": "0", "result": { "capabilities": { "textDocumentSync": 2, "hoverProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ ".", "-", ":", "\\" ] }, "signatureHelpProvider": { "triggerCharacters": [ " " ] }, "definitionProvider": true, "referencesProvider": true, "documentHighlightProvider": true, "documentSymbolProvider": true, "workspaceSymbolProvider": true, "codeActionProvider": true } } } 12/22/2016 10:12:07 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "method": "workspace/didChangeConfiguration", "params": { "settings": { "powershell": { "developer": { "bundledModulesPath": "../modules/", "editorServicesLogLevel": "Verbose", "editorServicesWaitForDebugger": false, "powerShellExePath": "" }, "enableProfileLoading": true, "scriptAnalysis": { "enable": true, "settingsPath": "" }, "useX86Host": false } } } } 12/22/2016 10:12:07 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "method": "textDocument/didOpen", "params": { "uri": "file:///c%3A/Users/585553/Documents/Visual%20Studio%202015/Projects/PowerShellProject/PowerShellProject/test.ps1", "text": "function Get-FileName($initialDirectory){ \r\n [System.Reflection.Assembly]::LoadWithPartialName(\"System.windows.forms\") | Out-Null\r\n\r\n $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog\r\n $OpenFileDialog.initialDirectory = $initialDirectory\r\n $OpenFileDialog.filter = \"All files (*.*)| *.*\"\r\n $OpenFileDialog.ShowDialog() | Out-Null\r\n $OpenFileDialog.filename\r\n}\r\n\r\n$path = Get-FileName \"c:\\aaa\"" } } 12/22/2016 10:12:07 AM [VERBOSE] - Method "ResolveFilePath" at line 283 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs Resolved path: c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject\test.ps1 12/22/2016 10:12:07 AM [VERBOSE] - Method "GetFileBuffer" at line 124 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs Opened file as in-memory buffer: c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject\test.ps1 12/22/2016 10:12:07 AM [VERBOSE] - Method "HandleDidOpenTextDocumentNotification" at line 411 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs Finished opening document. 12/22/2016 10:12:07 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "jsonrpc": "2.0", "id": 1, "method": "powerShell/getVersion" } 12/22/2016 10:12:07 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "jsonrpc": "2.0", "id": "1", "result": { "version": "5.0.10586.672", "displayVersion": "5.0", "edition": "Desktop", "architecture": "x64" } } 12/22/2016 10:12:08 AM [VERBOSE] - Method "DelayThenInvokeDiagnostics" at line 1195 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs Analyzing script file: c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject\test.ps1 12/22/2016 10:12:08 AM [VERBOSE] - Method "GetDiagnosticRecords" at line 266 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs Running PSScriptAnalyzer against c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject\test.ps1 12/22/2016 10:12:10 AM [VERBOSE] - Method "GetDiagnosticRecords" at line 288 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs Found 0 violations 12/22/2016 10:12:10 AM [VERBOSE] - Method "DelayThenInvokeDiagnostics" at line 1201 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs Analysis complete. 12/22/2016 10:12:10 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "jsonrpc": "2.0", "method": "textDocument/publishDiagnostics", "params": { "uri": "file:///c%3A/Users/585553/Documents/Visual%20Studio%202015/Projects/PowerShellProject/PowerShellProject/test.ps1", "diagnostics": [] } } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "initialize", "arguments": { "adapterID": "PowerShell", "pathFormat": "path", "linesStartAt1": true, "columnsStartAt1": true, "supportsVariableType": true, "supportsVariablePaging": true, "supportsRunInTerminalRequest": true }, "type": "request", "seq": 1 } 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": "1", "command": "initialize", "success": true, "body": { "supportsConfigurationDoneRequest": true, "supportsFunctionBreakpoints": true, "supportsConditionalBreakpoints": true, "supportsHitConditionalBreakpoints": true, "supportsEvaluateForHovers": false, "supportsSetVariable": true } } 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "event", "event": "initialized", "body": null } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "launch", "arguments": { "name": "PowerShell", "type": "PowerShell", "request": "launch", "program": "c:\\Users\\585553\\Documents\\Visual Studio 2015\\Projects\\PowerShellProject\\PowerShellProject\\test.ps1", "args": [], "cwd": "c:\\Users\\585553\\Documents\\Visual Studio 2015\\Projects\\PowerShellProject\\PowerShellProject\\test.ps1" }, "type": "request", "seq": 2 } 12/22/2016 10:12:11 AM [VERBOSE] - Method "HandleLaunchRequest" at line 157 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\DebugAdapter.cs Working dir set to: c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": "2", "command": "launch", "success": true, "body": null } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "setFunctionBreakpoints", "arguments": { "breakpoints": [] }, "type": "request", "seq": 3 } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ExecuteCommand" at line 448 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): Microsoft.PowerShell.Utility\Get-PSBreakpoint Microsoft.PowerShell.Utility\Remove-PSBreakpoint 12/22/2016 10:12:11 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 12/22/2016 10:12:11 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Running New state: Ready Result: Completed 12/22/2016 10:12:11 AM [VERBOSE] - Method "ExecuteCommand" at line 490 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Execution completed successfully. 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": "3", "command": "setFunctionBreakpoints", "success": true, "body": { "breakpoints": [] } } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "configurationDone", "type": "request", "seq": 4 } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ExecuteCommand" at line 448 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Attempting to execute command(s): c:\Users\585553\Documents\Visual Studio 2015\Projects\PowerShellProject\PowerShellProject\test.ps1 Out-Default 12/22/2016 10:12:11 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Ready New state: Running Result: NotFinished 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": "4", "command": "configurationDone", "success": true, "body": null } 12/22/2016 10:12:11 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "threads", "type": "request", "seq": 5 } 12/22/2016 10:12:11 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs WRITE MESSAGE: { "type": "response", "request_seq": "5", "command": "threads", "success": true, "body": { "threads": [ { "id": 1, "name": "Main Thread" } ] } } 12/22/2016 10:13:19 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs READ MESSAGE: { "command": "disconnect", "arguments": { "restart": false }, "type": "request", "seq": 6 } 12/22/2016 10:13:19 AM [VERBOSE] - Method "AbortExecution" at line 647 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Execution abort requested... 12/22/2016 10:13:19 AM [VERBOSE] - Method "OnSessionStateChanged" at line 799 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs Session state changed -- Old state: Running New state: Aborting Result: NotFinished 12/22/2016 10:13:20 AM [ERROR] - Method "ListenForMessages" at line 227 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs Stream terminated unexpectedly, ending MessageDispatcher loop Exception: IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.