Skip to content

Frequent powershell crashes #1346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PrzemyslawKlys opened this issue Jun 3, 2018 · 66 comments
Closed

Frequent powershell crashes #1346

PrzemyslawKlys opened this issue Jun 3, 2018 · 66 comments
Labels
Issue-Bug A bug to squash.

Comments

@PrzemyslawKlys
Copy link
Contributor

System Details

  • Operating system name and version: Windows 10 Enterpise Build 17672 180511-1445 (insider preview)
  • VS Code version: 1.23.1
  • PowerShell extension version: 1.7.0
  • Output from $PSVersionTable:

Issue Description

I am fairly ok with PowerShell but I often abuse F5/CTRL+F5 to run code in terms of trying to run it.. fix small thing F5 and so on.. I often end up with script not running at all and at some point displaying this after few seconds
image

And this is just beginning. It seems I frequently get PowerShell crashes. I get this errors since ages so I doubt it's related to me running Insiders Windows version. Same script run fine in ISE and I can press F5 as many times I want.

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

@TylerLeonhardt
Copy link
Member

Hi there, thanks for this. Can you attach the logs so we help further :)

Instructions are here.

@PrzemyslawKlys
Copy link
Contributor Author

Currently on short vacations. When I will get back I will try to reproduce all the errors. I have already verbose logging turned on.

@TylerLeonhardt
Copy link
Member

Thanks! Actually, can you set the log level to "Diagnostic"? That will give us even more logs.

@PrzemyslawKlys
Copy link
Contributor Author

Will do! Are you aware of “junk” in intellisense in comparison to ISE? I get lots of useless variables, methods and so on being proposed by intellisense. I also seen intellisense proposing same things double (like VsCode actually loaded intellisense 2 times).

@rjmholt
Copy link
Contributor

rjmholt commented Jun 6, 2018

@PrzemyslawKlys, we're always looking to improve intellisense, but I don't think there's an issue to track that. Would you be able to open an issue? Specifically interested in what you're seeing in terms of the quality of the intellisense, what junk items you're seeing and any duplication - especially in comparison to the ISE.

@PrzemyslawKlys
Copy link
Contributor Author

Image

I’ll open this up as a separate issue when I get back. But this is what I have usually when working. I have no clue where it’s taking those values from...

@rjmholt
Copy link
Contributor

rjmholt commented Jun 6, 2018

Looks like it's dissecting URLs that maybe occur elsewhere in the document for fuzzy completions? I was under the impression it was a VSCode builtin feature to offer more completions when the ones we provide run out, but I can't find good documentation for it...

@rkeithhill
Copy link
Contributor

If PowerShell can't provide items for the auto-completion list, VSCode will typically supply tokens from the current file plus snippets like if. PowerShell can't always provide auto-completion if it can't infer the output of the expression. Sometimes I'll F8 to assign a variable so I get auto-completion. Other times, I'll specify a type on a variable to help with auto-completion. That said, if ISE can provide an appropriate auto-completion list for the expression, then VSCode should be able to. Underneath, both are just using the PowerShell engine for this.

@rjmholt rjmholt added Issue-Bug A bug to squash. Area-General labels Jun 7, 2018
@PrzemyslawKlys
Copy link
Contributor Author

image

I can press at this state F5 multiple times, nothing happens.

@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Jun 8, 2018

2018-06-08 12:06:08 [NORMAL] - Method "StartLogging" at line 163 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs

    PowerShell Editor Services Host v1.7.0.0 starting (pid 27508)...
    
      Host application details:
    
        Name:      Visual Studio Code Host
        ProfileId: Microsoft.VSCode
        Version:   1.7.0
        Arch:      64-bit
    
      Operating system details:
    
        Version: Microsoft Windows NT 10.0.17672.0
        Arch:    64-bit

2018-06-08 12:06:08 [NORMAL] - Method "StartLanguageService" at line 195 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs

    Language service started, type = Tcp, endpoint = 10328

2018-06-08 12:06:08 [NORMAL] - Method "StartDebugService" at line 264 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs

    Debug service started, type = Tcp, endpoint = 28396

2018-06-08 12:06:09 [NORMAL] - Method "Initialize" at line 220 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    PowerShell runtime version: 5.1.17672.1000, edition: Desktop

2018-06-08 12:06:09 [VERBOSE] - Method "SetExecutionPolicy" at line 1460 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Setting execution policy:
        Current = ExecutionPolicy.Bypass
        Desired = ExecutionPolicy.RemoteSigned

2018-06-08 12:06:09 [VERBOSE] - Method "CheckForCapability" at line 157 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs

    Side-by-side DSC module was not found.

2018-06-08 12:06:09 [VERBOSE] - Method "SetProfileVariableInCurrentRunspace" at line 1607 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Setting $profile variable in runspace.  Current user host profile path: C:\Users\pklys\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

2018-06-08 12:06:09 [VERBOSE] - Method "EnumeratePSScriptAnalyzerCmdlets" at line 355 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs

    The following cmdlets are available in the imported PSScriptAnalyzer module:
        Get-ScriptAnalyzerRule
        Invoke-Formatter
        Invoke-ScriptAnalyzer
    

2018-06-08 12:06:09 [VERBOSE] - Method "EnumeratePSScriptAnalyzerRules" at line 371 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs

    Available PSScriptAnalyzer Rules:
    PSAlignAssignmentStatement
    PSAvoidUsingCmdletAliases
    PSAvoidDefaultValueSwitchParameter
    PSAvoidDefaultValueForMandatoryParameter
    PSAvoidUsingEmptyCatchBlock
    PSAvoidGlobalAliases
    PSAvoidGlobalFunctions
    PSAvoidGlobalVars
    PSAvoidInvokingEmptyMembers
    PSAvoidNullOrEmptyHelpMessageAttribute
    PSAvoidUsingPositionalParameters
    PSReservedCmdletChar
    PSReservedParams
    PSAvoidShouldContinueWithoutForce
    PSAvoidUsingUserNameAndPassWordParams
    PSAvoidUsingComputerNameHardcoded
    PSAvoidUsingConvertToSecureStringWithPlainText
    PSAvoidUsingDeprecatedManifestFields
    PSAvoidUsingInvokeExpression
    PSAvoidUsingPlainTextForPassword
    PSAvoidUsingWMICmdlet
    PSAvoidUsingWriteHost
    PSMisleadingBacktick
    PSMissingModuleManifestField
    PSPlaceCloseBrace
    PSPlaceOpenBrace
    PSPossibleIncorrectComparisonWithNull
    PSProvideCommentHelp
    PSUseApprovedVerbs
    PSUseBOMForUnicodeEncodedFile
    PSUseCmdletCorrectly
    PSUseCompatibleCmdlets
    PSUseConsistentIndentation
    PSUseConsistentWhitespace
    PSUseDeclaredVarsMoreThanAssignments
    PSUseLiteralInitializerForHashtable
    PSUseOutputTypeCorrectly
    PSUsePSCredentialType
    PSShouldProcess
    PSUseShouldProcessForStateChangingFunctions
    PSUseSingularNouns
    PSUseSupportsShouldProcess
    PSUseToExportFieldsInManifest
    PSUseUTF8EncodingForHelpFile
    PSDSCDscExamplesPresent
    PSDSCDscTestsPresent
    PSDSCReturnCorrectTypesForDSCFunctions
    PSDSCUseIdenticalMandatoryParametersForDSC
    PSDSCUseIdenticalParametersForDSC
    PSDSCStandardDSCFunctionsInResource
    PSDSCUseVerboseMessageInDSCResource
    

2018-06-08 12:06:10 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:10 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:10 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        Import-Module C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
    

2018-06-08 12:06:10 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:10 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:10 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:10 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:10 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:10 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:10 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:10 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        Import-Module PowerShellEditorServices.VSCode
    

2018-06-08 12:06:10 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:10 [NORMAL] - Method "Register" at line 36 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs

    PowerShell Editor Services VS Code module loaded.

2018-06-08 12:06:10 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:10 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:10 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:10 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:10 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 0,
      "method": "initialize",
      "params": {
        "processId": 22432,
        "rootPath": "c:\\Users\\pklys\\OneDrive - Evotec\\Support\\GitHub\\PSPulsewayManager",
        "rootUri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager",
        "capabilities": {
          "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
              "documentChanges": true
            },
            "didChangeConfiguration": {
              "dynamicRegistration": false
            },
            "didChangeWatchedFiles": {
              "dynamicRegistration": true
            },
            "symbol": {
              "dynamicRegistration": true
            },
            "executeCommand": {
              "dynamicRegistration": true
            }
          },
          "textDocument": {
            "synchronization": {
              "dynamicRegistration": true,
              "willSave": true,
              "willSaveWaitUntil": true,
              "didSave": true
            },
            "completion": {
              "dynamicRegistration": true,
              "completionItem": {
                "snippetSupport": true
              }
            },
            "hover": {
              "dynamicRegistration": true
            },
            "signatureHelp": {
              "dynamicRegistration": true
            },
            "references": {
              "dynamicRegistration": true
            },
            "documentHighlight": {
              "dynamicRegistration": true
            },
            "documentSymbol": {
              "dynamicRegistration": true
            },
            "formatting": {
              "dynamicRegistration": true
            },
            "rangeFormatting": {
              "dynamicRegistration": true
            },
            "onTypeFormatting": {
              "dynamicRegistration": true
            },
            "definition": {
              "dynamicRegistration": true
            },
            "codeAction": {
              "dynamicRegistration": true
            },
            "codeLens": {
              "dynamicRegistration": true
            },
            "documentLink": {
              "dynamicRegistration": true
            },
            "rename": {
              "dynamicRegistration": true
            }
          }
        },
        "trace": "off"
      }
    }

2018-06-08 12:06:10 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'initialize' with id 0

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'initialize' with id 0

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 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,
          "codeLensProvider": {
            "resolveProvider": true
          },
          "documentFormattingProvider": false,
          "documentRangeFormattingProvider": null,
          "documentOnTypeFormattingProvider": null,
          "renameProvider": null,
          "documentLinkProvider": null,
          "executeCommandProvider": null,
          "experimental": null
        }
      }
    }

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "initialized",
      "params": {}
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Event 'initialized'

2018-06-08 12:06:11 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs

    MessageDispatcher: No handler registered for Event type 'initialized'

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "$/setTraceNotification",
      "params": {
        "value": "off"
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Event '$/setTraceNotification'

2018-06-08 12:06:11 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs

    MessageDispatcher: No handler registered for Event type '$/setTraceNotification'

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "workspace/didChangeConfiguration",
      "params": {
        "settings": {
          "powershell": {
            "powerShellExePath": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "powerShellAdditionalExePaths": [],
            "powerShellDefaultVersion": "",
            "startAutomatically": true,
            "useX86Host": false,
            "enableProfileLoading": true,
            "bugReporting": {
              "project": "https://github.com/PowerShell/vscode-powershell"
            },
            "helpCompletion": "BlockComment",
            "scriptAnalysis": {
              "enable": true,
              "settingsPath": ""
            },
            "codeFormatting": {
              "preset": "OTBS",
              "openBraceOnSameLine": true,
              "newLineAfterOpenBrace": true,
              "newLineAfterCloseBrace": false,
              "whitespaceBeforeOpenBrace": true,
              "whitespaceBeforeOpenParen": true,
              "whitespaceAroundOperator": true,
              "whitespaceAfterSeparator": true,
              "ignoreOneLineBlock": true,
              "alignPropertyValuePairs": true
            },
            "integratedConsole": {
              "showOnStartup": false,
              "focusConsoleOnExecute": true
            },
            "debugging": {
              "createTemporaryIntegratedConsole": false
            },
            "developer": {
              "bundledModulesPath": "",
              "editorServicesLogLevel": "Diagnostic",
              "editorServicesWaitForDebugger": false,
              "featureFlags": [],
              "powerShellExeIsWindowsDevBuild": false,
              "powerShellExePath": ""
            }
          }
        }
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Event 'workspace/didChangeConfiguration'

2018-06-08 12:06:11 [VERBOSE] - Method "Update" at line 95 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServerSettings.cs

    Using Script Analyzer settings path - ''.

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "textDocument/didOpen",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
          "languageId": "powershell",
          "version": 10,
          "text": "function Get-PulsewayMaintenanceMode {\r\n    [cmdletbinding()]\r\n    param(\r\n        $Computer = $Env:COMPUTERNAME\r\n    )\r\n    $RegistryPath = 'HKLM:\\SOFTWARE\\MMSOFT Design\\PC Monitor'\r\n    $RegistryKey = 'MaintenanceMode'\r\n\r\n    $Setting = Get-ItemProperty -Path $RegistryPath -Name $RegistryKey\r\n    return $Setting.$RegistryKey\r\n}\r\nfunction Set-PulsewayMaintenanceMode {\r\n    [cmdletbinding()]\r\n    param(\r\n        [string] $Computer = $Env:COMPUTERNAME,\r\n        [bool] $Toggle\r\n    )\r\n    $RegistryPath = 'HKLM:\\SOFTWARE\\MMSOFT Design\\PC Monitor'\r\n    $RegistryKey = 'MaintenanceMode'\r\n\r\n    if ($Toggle) { $Value = 1 } else { $Value = 0}\r\n\r\n    $ScriptBlock = {\r\n        [cmdletbinding()]\r\n        param(\r\n            $RegistryPath,\r\n            $RegistryKey,\r\n            $Value\r\n        )\r\n        $VerbosePreference = $Using:VerbosePreference\r\n        $Setting = Set-ItemProperty -Path $RegistryPath -Name $RegistryKey -Value $Value\r\n        return $Setting\r\n    }\r\n\r\n    foreach ($Comp in $Computer) {\r\n        Invoke-Command -ComputerName $Comp -ScriptBlock $ScriptBlock -ArgumentList $RegistryPath, $RegistryKey, $Value\r\n    }\r\n}\r\n\r\nClear-Host\r\nGet-PulsewayMaintenanceMode\r\nSet-PulsewayMaintenanceMode -Toggle $true -Verbose\r\nGet-PulsewayMaintenanceMode"
        }
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Event 'textDocument/didOpen'

2018-06-08 12:06:11 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:11 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        prompt
    

2018-06-08 12:06:11 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:11 [VERBOSE] - Method "GetFileBuffer" at line 138 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Opened file as in-memory buffer: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:11 [VERBOSE] - Method "HandleDidOpenTextDocumentNotification" at line 487 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs

    Finished opening document.

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "powerShell/getVersion",
      "params": null
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'powerShell/getVersion' with id 1

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'powerShell/getVersion' with id 1

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "1",
      "result": {
        "version": "5.1.17672.1000",
        "displayVersion": "5.1",
        "edition": "Desktop",
        "architecture": "x64"
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:11 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 2,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 42,
            "character": 27
          },
          "end": {
            "line": 42,
            "character": 27
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 2

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 2

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "2",
      "result": []
    }

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 3,
      "method": "textDocument/codeLens",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        }
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeLens' with id 3

2018-06-08 12:06:11 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:11 [VERBOSE] - Method "InvokeProviders" at line 71 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs

    Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider' completed in 4ms.

2018-06-08 12:06:11 [VERBOSE] - Method "InvokeProviders" at line 71 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs

    Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.PesterCodeLensProvider' completed in 2ms.

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeLens' with id 3

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "3",
      "result": [
        {
          "range": {
            "start": {
              "line": 0,
              "character": 0
            },
            "end": {
              "line": 10,
              "character": 1
            }
          },
          "command": null,
          "data": {
            "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
          }
        },
        {
          "range": {
            "start": {
              "line": 11,
              "character": 0
            },
            "end": {
              "line": 37,
              "character": 1
            }
          },
          "command": null,
          "data": {
            "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
          }
        }
      ]
    }

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 4,
      "method": "textDocument/documentSymbol",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        }
      }
    }

2018-06-08 12:06:11 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentSymbol' with id 4

2018-06-08 12:06:11 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:11 [VERBOSE] - Method "InvokeProviders" at line 71 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs

    Invocation of provider 'Microsoft.PowerShell.EditorServices.Symbols.ScriptDocumentSymbolProvider' completed in 0ms.

2018-06-08 12:06:11 [VERBOSE] - Method "InvokeProviders" at line 71 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs

    Invocation of provider 'Microsoft.PowerShell.EditorServices.Symbols.PsdDocumentSymbolProvider' completed in 56ms.

2018-06-08 12:06:11 [VERBOSE] - Method "InvokeProviders" at line 71 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs

    Invocation of provider 'Microsoft.PowerShell.EditorServices.Symbols.PesterDocumentSymbolProvider' completed in 0ms.

2018-06-08 12:06:11 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentSymbol' with id 4

2018-06-08 12:06:11 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "4",
      "result": [
        {
          "name": "Get-PulsewayMaintenanceMode { }",
          "kind": 12,
          "location": {
            "uri": "file:///",
            "range": {
              "start": {
                "line": 0,
                "character": 0
              },
              "end": {
                "line": 10,
                "character": 1
              }
            }
          },
          "containerName": "PSPulseway"
        },
        {
          "name": "Set-PulsewayMaintenanceMode { }",
          "kind": 12,
          "location": {
            "uri": "file:///",
            "range": {
              "start": {
                "line": 11,
                "character": 0
              },
              "end": {
                "line": 37,
                "character": 1
              }
            }
          },
          "containerName": "PSPulseway"
        }
      ]
    }

2018-06-08 12:06:11 [VERBOSE] - Method "DelayThenInvokeDiagnostics" at line 1499 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs

    Analyzing script file: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 5,
      "method": "codeLens/resolve",
      "params": {
        "range": {
          "start": {
            "line": 0,
            "character": 0
          },
          "end": {
            "line": 10,
            "character": 1
          }
        },
        "data": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
          "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
        }
      }
    }

2018-06-08 12:06:12 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'codeLens/resolve' with id 5

2018-06-08 12:06:12 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:12 [VERBOSE] - Method "GetDiagnosticRecordsAsync" at line 417 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs

    Found 0 violations

2018-06-08 12:06:12 [VERBOSE] - Method "DelayThenInvokeDiagnostics" at line 1503 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs

    Analysis complete.

2018-06-08 12:06:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'codeLens/resolve' with id 5

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "5",
      "result": {
        "range": {
          "start": {
            "line": 0,
            "character": 0
          },
          "end": {
            "line": 10,
            "character": 1
          }
        },
        "command": {
          "title": "2 references",
          "command": "editor.action.showReferences",
          "arguments": [
            "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            {
              "line": 0,
              "character": 0
            },
            [
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 40,
                    "character": 0
                  },
                  "end": {
                    "line": 40,
                    "character": 27
                  }
                }
              },
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 42,
                    "character": 0
                  },
                  "end": {
                    "line": 42,
                    "character": 27
                  }
                }
              }
            ]
          ]
        },
        "data": null
      }
    }

2018-06-08 12:06:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'textDocument/publishDiagnostics'

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "textDocument/publishDiagnostics",
      "params": {
        "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
        "diagnostics": []
      }
    }

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 6,
      "method": "codeLens/resolve",
      "params": {
        "range": {
          "start": {
            "line": 11,
            "character": 0
          },
          "end": {
            "line": 37,
            "character": 1
          }
        },
        "data": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
          "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
        }
      }
    }

2018-06-08 12:06:12 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'codeLens/resolve' with id 6

2018-06-08 12:06:12 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'codeLens/resolve' with id 6

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "6",
      "result": {
        "range": {
          "start": {
            "line": 11,
            "character": 0
          },
          "end": {
            "line": 37,
            "character": 1
          }
        },
        "command": {
          "title": "1 reference",
          "command": "editor.action.showReferences",
          "arguments": [
            "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            {
              "line": 11,
              "character": 0
            },
            [
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 41,
                    "character": 0
                  },
                  "end": {
                    "line": 41,
                    "character": 27
                  }
                }
              }
            ]
          ]
        },
        "data": null
      }
    }

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 7,
      "method": "textDocument/documentHighlight",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 39,
          "character": 10
        }
      }
    }

2018-06-08 12:06:12 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentHighlight' with id 7

2018-06-08 12:06:12 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentHighlight' with id 7

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "7",
      "result": [
        {
          "range": {
            "start": {
              "line": 39,
              "character": 0
            },
            "end": {
              "line": 39,
              "character": 10
            }
          },
          "kind": 3
        }
      ]
    }

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 8,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 39,
            "character": 10
          },
          "end": {
            "line": 39,
            "character": 10
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:06:12 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 8

2018-06-08 12:06:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 8

2018-06-08 12:06:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "8",
      "result": []
    }

2018-06-08 12:06:13 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 9,
      "method": "codeLens/resolve",
      "params": {
        "range": {
          "start": {
            "line": 0,
            "character": 0
          },
          "end": {
            "line": 10,
            "character": 1
          }
        },
        "data": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
          "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
        }
      }
    }

2018-06-08 12:06:13 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'codeLens/resolve' with id 9

2018-06-08 12:06:13 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:13 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'codeLens/resolve' with id 9

2018-06-08 12:06:13 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "9",
      "result": {
        "range": {
          "start": {
            "line": 0,
            "character": 0
          },
          "end": {
            "line": 10,
            "character": 1
          }
        },
        "command": {
          "title": "2 references",
          "command": "editor.action.showReferences",
          "arguments": [
            "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            {
              "line": 0,
              "character": 0
            },
            [
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 40,
                    "character": 0
                  },
                  "end": {
                    "line": 40,
                    "character": 27
                  }
                }
              },
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 42,
                    "character": 0
                  },
                  "end": {
                    "line": 42,
                    "character": 27
                  }
                }
              }
            ]
          ]
        },
        "data": null
      }
    }

2018-06-08 12:06:13 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 10,
      "method": "codeLens/resolve",
      "params": {
        "range": {
          "start": {
            "line": 11,
            "character": 0
          },
          "end": {
            "line": 37,
            "character": 1
          }
        },
        "data": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
          "providerId": "Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider"
        }
      }
    }

2018-06-08 12:06:13 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'codeLens/resolve' with id 10

2018-06-08 12:06:13 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:13 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'codeLens/resolve' with id 10

2018-06-08 12:06:13 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "10",
      "result": {
        "range": {
          "start": {
            "line": 11,
            "character": 0
          },
          "end": {
            "line": 37,
            "character": 1
          }
        },
        "command": {
          "title": "1 reference",
          "command": "editor.action.showReferences",
          "arguments": [
            "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
            {
              "line": 11,
              "character": 0
            },
            [
              {
                "uri": "file:///c:/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1",
                "range": {
                  "start": {
                    "line": 41,
                    "character": 0
                  },
                  "end": {
                    "line": 41,
                    "character": 27
                  }
                }
              }
            ]
          ]
        },
        "data": null
      }
    }

2018-06-08 12:06:16 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 11,
      "method": "textDocument/documentHighlight",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 42,
          "character": 27
        }
      }
    }

2018-06-08 12:06:16 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentHighlight' with id 11

2018-06-08 12:06:16 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:16 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentHighlight' with id 11

2018-06-08 12:06:16 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "11",
      "result": [
        {
          "range": {
            "start": {
              "line": 0,
              "character": 9
            },
            "end": {
              "line": 0,
              "character": 36
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 40,
              "character": 0
            },
            "end": {
              "line": 40,
              "character": 27
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 42,
              "character": 0
            },
            "end": {
              "line": 42,
              "character": 27
            }
          },
          "kind": 3
        }
      ]
    }

2018-06-08 12:06:17 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 12,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 42,
            "character": 27
          },
          "end": {
            "line": 42,
            "character": 27
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:06:17 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 12

2018-06-08 12:06:17 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 12

2018-06-08 12:06:17 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "12",
      "result": []
    }

2018-06-08 12:06:22 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 13,
      "method": "evaluate",
      "params": {
        "expression": "Get-PulsewayMaintenanceMode"
      }
    }

2018-06-08 12:06:22 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'evaluate' with id 13

2018-06-08 12:06:22 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:22 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:22 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        Get-PulsewayMaintenanceMode
        Out-Default
    

2018-06-08 12:06:22 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:23 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:23 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:23 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Writing Event 'powerShell/executionStatusChanged'

    Attempting to execute command(s):
    
        prompt
    

2018-06-08 12:06:23 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Writing Event 'powerShell/executionStatusChanged'

    Attempting to execute command(s):
    
        prompt
    

2018-06-08 12:06:23 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:23 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:23 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:23 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:23 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:23 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'evaluate' with id 13

2018-06-08 12:06:23 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "13",
      "result": {
        "result": "",
        "variablesReference": 0
      }
    }

2018-06-08 12:06:23 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:23 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:23 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:23 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 14,
      "method": "evaluate",
      "params": {
        "expression": "Get-PulsewayMaintenanceMode"
      }
    }

2018-06-08 12:06:30 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'evaluate' with id 14

2018-06-08 12:06:30 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:30 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        Get-PulsewayMaintenanceMode
        Out-Default
    

2018-06-08 12:06:30 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:30 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:30 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:30 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:30 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:30 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        prompt
    

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:30 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:30 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
     2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "14",
      "result": {
        "result": "",
        "variablesReference": 0
      }
    }

2018-06-08 12:06:30 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:30 [VERBOSE] - Method "ExecuteCommand" at line 570 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed successfully.

2018-06-08 12:06:30 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:30 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 12:06:41 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 15,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 25,
            "character": 26
          },
          "end": {
            "line": 25,
            "character": 26
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:06:41 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 15

2018-06-08 12:06:41 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 15

2018-06-08 12:06:41 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "15",
      "result": []
    }

2018-06-08 12:06:42 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 16,
      "method": "textDocument/documentHighlight",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 42,
          "character": 27
        }
      }
    }

2018-06-08 12:06:42 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentHighlight' with id 16

2018-06-08 12:06:42 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:42 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentHighlight' with id 16

2018-06-08 12:06:42 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "16",
      "result": [
        {
          "range": {
            "start": {
              "line": 0,
              "character": 9
            },
            "end": {
              "line": 0,
              "character": 36
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 40,
              "character": 0
            },
            "end": {
              "line": 40,
              "character": 27
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 42,
              "character": 0
            },
            "end": {
              "line": 42,
              "character": 27
            }
          },
          "kind": 3
        }
      ]
    }

2018-06-08 12:06:42 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 17,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 42,
            "character": 27
          },
          "end": {
            "line": 42,
            "character": 27
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:06:42 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 17

2018-06-08 12:06:42 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 17

2018-06-08 12:06:42 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "17",
      "result": []
    }

2018-06-08 12:06:43 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 18,
      "method": "textDocument/hover",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 40,
          "character": 27
        }
      }
    }

2018-06-08 12:06:43 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/hover' with id 18

2018-06-08 12:06:43 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:06:43 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:43 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 12:06:43 [VERBOSE] - Method "ExecuteCommand" at line 491 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Attempting to execute command(s):
    
        Microsoft.PowerShell.Core\Get-Command Get-PulsewayMaintenanceMode -ErrorAction Ignore
    

2018-06-08 12:06:43 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 12:06:44 [VERBOSE] - Method "OnSessionStateChanged" at line 1171 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 12:06:44 [ERROR] - Method "ExecuteCommand" at line 564 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution of the following command(s) completed with errors:
    
        Microsoft.PowerShell.Core\Get-Command Get-PulsewayMaintenanceMode -ErrorAction Ignore
    
    

2018-06-08 12:06:44 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 12:06:44 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": true
      }
    }

2018-06-08 12:06:44 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/hover' with id 18

2018-06-08 12:06:44 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "18",
      "result": {
        "contents": [
          {
            "language": "PowerShell",
            "value": "function Get-PulsewayMaintenanceMode"
          }
        ],
        "range": {
          "start": {
            "line": 40,
            "character": 0
          },
          "end": {
            "line": 40,
            "character": 27
          }
        }
      }
    }

2018-06-08 12:07:45 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 19,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 16,
            "character": 5
          },
          "end": {
            "line": 16,
            "character": 5
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:07:45 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 19

2018-06-08 12:07:45 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 19

2018-06-08 12:07:45 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "19",
      "result": []
    }

2018-06-08 12:08:12 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 20,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 24,
            "character": 14
          },
          "end": {
            "line": 24,
            "character": 14
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:08:12 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 20

2018-06-08 12:08:12 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 20

2018-06-08 12:08:12 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "20",
      "result": []
    }

2018-06-08 12:08:49 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 21,
      "method": "textDocument/documentHighlight",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 42,
          "character": 27
        }
      }
    }

2018-06-08 12:08:49 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentHighlight' with id 21

2018-06-08 12:08:49 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:08:49 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentHighlight' with id 21

2018-06-08 12:08:49 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "21",
      "result": [
        {
          "range": {
            "start": {
              "line": 0,
              "character": 9
            },
            "end": {
              "line": 0,
              "character": 36
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 40,
              "character": 0
            },
            "end": {
              "line": 40,
              "character": 27
            }
          },
          "kind": 3
        },
        {
          "range": {
            "start": {
              "line": 42,
              "character": 0
            },
            "end": {
              "line": 42,
              "character": 27
            }
          },
          "kind": 3
        }
      ]
    }

2018-06-08 12:08:49 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 22,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 42,
            "character": 27
          },
          "end": {
            "line": 42,
            "character": 27
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:08:49 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 22

2018-06-08 12:08:49 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 22

2018-06-08 12:08:49 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "22",
      "result": []
    }

2018-06-08 12:09:38 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 23,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 10,
            "character": 1
          },
          "end": {
            "line": 10,
            "character": 1
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:09:38 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 23

2018-06-08 12:09:38 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 23

2018-06-08 12:09:38 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "23",
      "result": []
    }

2018-06-08 12:09:39 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 24,
      "method": "textDocument/documentHighlight",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "position": {
          "line": 11,
          "character": 0
        }
      }
    }

2018-06-08 12:09:39 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/documentHighlight' with id 24

2018-06-08 12:09:39 [VERBOSE] - Method "ResolveFilePath" at line 378 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs

    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Public\PSPulseway.ps1

2018-06-08 12:09:39 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/documentHighlight' with id 24

2018-06-08 12:09:39 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "24",
      "result": []
    }

2018-06-08 12:09:39 [DIAGNOSTIC] - Method "ReadMessage" at line 114 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 25,
      "method": "textDocument/codeAction",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Public/PSPulseway.ps1"
        },
        "range": {
          "start": {
            "line": 11,
            "character": 0
          },
          "end": {
            "line": 11,
            "character": 0
          }
        },
        "context": {
          "diagnostics": []
        }
      }
    }

2018-06-08 12:09:39 [VERBOSE] - Method "ReadMessage" at line 123 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs

    Received Request 'textDocument/codeAction' with id 25

2018-06-08 12:09:39 [VERBOSE] - Method "WriteMessage" at line 61 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    Writing Response 'textDocument/codeAction' with id 25

2018-06-08 12:09:39 [DIAGNOSTIC] - Method "WriteMessage" at line 67 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs

    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "25",
      "result": []
    }

@PrzemyslawKlys
Copy link
Contributor Author

**********************
Windows PowerShell transcript start
Start time: 20180608120607
Username: EVOTEC\przemyslaw.klys
RunAs User: EVOTEC\przemyslaw.klys
Configuration Name: 
Machine: EVO1 (Microsoft Windows NT 10.0.17672.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command & 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\Start-EditorServices.ps1' -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1528452367-87a626d7-7fc1-47b7-b3fb-751a80d97a481528452275016\EditorServices.log' -SessionDetailsPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\sessions\PSES-VSCode-5288-899629' -FeatureFlags @()
Process ID: 27508
PSVersion: 5.1.17672.1000
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17672.1000
BuildVersion: 10.0.17672.1000
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1528452367-87a626d7-7fc1-47b7-b3fb-751a80d97a481528452275016\Start-EditorServices.log
VERBOSE: 
#-- Updated PSModulePath to: -------------------------------------------------
VERBOSE: C:\Users\pklys\Documents\WindowsPowerShell\Modules
VERBOSE: C:\Program Files\WindowsPowerShell\Modules
VERBOSE: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
VERBOSE: C:\Program Files\Intel\
VERBOSE: C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\
VERBOSE: C:\Program Files\SharePoint Online Management Shell\
VERBOSE: C:\Program Files (x86)\AutoIt3\AutoItX
VERBOSE: C:\Program Files\WindowsPowerShell\Modules\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\
VERBOSE: C:\Program Files (x86)\SharePoint Online Management Shell\
VERBOSE: C:\Program Files\Common Files\Skype for Business Online\Modules\
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvPkgConverter
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvSequencer
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\
VERBOSE: C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules
VERBOSE: 
#-- Check required modules available -----------------------------------------
VERBOSE: Testing module availability PowerShellGet
VERBOSE: Populating RepositorySourceLocation property for module PowerShellGet.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.5.0.0\PSModule.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1'.
VERBOSE: PowerShellGet  found
VERBOSE: 
#-- Start up PowerShellEditorServices ----------------------------------------
VERBOSE: Importing PowerShellEditorServices
VERBOSE: Loading module from path 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'.
VERBOSE: Loading module from path 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\PowerShellEditorServices.psm1'.
VERBOSE: Exporting function 'Start-EditorServicesHost'.
VERBOSE: Exporting function 'Compress-LogDir'.
VERBOSE: Exporting function 'Get-PowerShellEditorServicesVersion'.
VERBOSE: Importing function 'Compress-LogDir'.
VERBOSE: Importing function 'Get-PowerShellEditorServicesVersion'.
VERBOSE: Importing function 'Start-EditorServicesHost'.
VERBOSE: Checking port: 10328, attempts remaining 10 --------------------
VERBOSE: Testing availability of port 10328 at address 127.0.0.1 / InterNetwork
VERBOSE: Port: 10328 is available
VERBOSE: Checking port: 28396, attempts remaining 10 --------------------
VERBOSE: Testing availability of port 28396 at address 127.0.0.1 / InterNetwork
VERBOSE: Port: 28396 is available
PowerShell Integrated Console
VERBOSE: Invoking Start-EditorServicesHost
VERBOSE: Start-EditorServicesHost returned Microsoft.PowerShell.EditorServices.Host.EditorServicesHost
VERBOSE: Writing session file with contents:
VERBOSE: {"debugServicePort":28396,"status":"started","debugServiceTransport":"Tcp","languageServiceTransport":"Tcp","languageServicePort":10328}
VERBOSE: Wrote out session file
VERBOSE: 
#-- Waiting for EditorServicesHost to complete execution ---------------------

@PrzemyslawKlys
Copy link
Contributor Author

2018-6-8 12:06:07 [NORMAL] - Language server starting --
2018-6-8 12:06:07 [NORMAL] -     exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2018-6-8 12:06:07 [NORMAL] -     args: C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1528452367-87a626d7-7fc1-47b7-b3fb-751a80d97a481528452275016\EditorServices.log' -SessionDetailsPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\sessions\PSES-VSCode-5288-899629' -FeatureFlags @()
2018-6-8 12:06:07 [NORMAL] - powershell.exe started, pid: 27508
2018-6-8 12:06:09 [NORMAL] - Language server started.
2018-6-8 12:06:09 [NORMAL] - {"debugServicePort":28396,"status":"started","debugServiceTransport":"Tcp","languageServiceTransport":"Tcp","languageServicePort":10328}
2018-6-8 12:06:09 [NORMAL] - Connecting to language service on port 10328...
2018-6-8 12:06:09 [NORMAL] - Language service connected.
2018-6-8 12:09:41 [NORMAL] - powershell.exe terminated or terminal UI was closed

@PrzemyslawKlys
Copy link
Contributor Author

And again.. opened folder, run the script once.. and stuck F5 does nothing to display finally 'timeout'. Also notice the Undefined message. I get that a lot as well. Also my number of plugins installed is much shorter then it seems. I have lots of disabled plugins (to keep track of nice plugins).

logs.zip

@PrzemyslawKlys
Copy link
Contributor Author

1528455094-08d084d1-163a-456a-be16-ee6b11affefc1528455091368.zip

This one holds a crash in the end. I saved file and it crashed powershell.

@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Jun 8, 2018

image

That's what I get now ;-) Every minute something new.. I guess it's some new feature in VS Code as it wasn't there in April release. What is funny is that my computer is i7 7600K with 32GB ram and Nvidia 1080 so plenty of GPU - All newly created terminals will use the non-GPU renderer.

@PrzemyslawKlys
Copy link
Contributor Author

logs.zip

Another one. This time i managed to work for a longer while. The last one crashed, after that powershell was unable to restart and I got 2 timeouts. Had to close VS Code and restart... unfortunetly that didn't help. When pressed F5 got this error

image

And it's stuck like that with Starting status... after a while

image

2018-6-8 19:03:41 [NORMAL] - Visual Studio Code v1.24.0 64-bit
2018-6-8 19:03:41 [NORMAL] - PowerShell Extension v1.7.0
2018-6-8 19:03:41 [NORMAL] - Operating System: Windows 64-bit
2018-6-8 19:03:41 [NORMAL] - Language server starting --
2018-6-8 19:03:41 [NORMAL] -     exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2018-6-8 19:03:41 [NORMAL] -     args: C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1528477421-26fcd472-8964-4ade-94be-e5580c27a5c21528477418531\EditorServices.log' -SessionDetailsPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0\sessions\PSES-VSCode-12416-921725' -FeatureFlags @()
2018-6-8 19:03:42 [NORMAL] - powershell.exe started, pid: 24428
2018-6-8 19:03:43 [NORMAL] - powershell.exe terminated or terminal UI was closed
2018-6-8 19:04:42 [NORMAL] - Language server startup failed.
2018-6-8 19:04:42 [ERROR] - The language service could not be started: 
2018-6-8 19:04:42 [ERROR] - Timed out waiting for session file to appear.

@rjmholt
Copy link
Contributor

rjmholt commented Jun 8, 2018

Ah! This looks like a logger threading issue in the logs you attach. I believe this has been fixed since we moved to Serilog

@rjmholt
Copy link
Contributor

rjmholt commented Jun 8, 2018

Try the preview here

@rjmholt
Copy link
Contributor

rjmholt commented Jun 8, 2018

We are due for a release soon but there are still a couple of things to finish up before we're ready for it

@PrzemyslawKlys
Copy link
Contributor Author

image

is that expected?

@rjmholt
Copy link
Contributor

rjmholt commented Jun 8, 2018

Yeah, you want to override.

@PrzemyslawKlys
Copy link
Contributor Author

logs.zip

Logs from insider build. Same thing...

@PrzemyslawKlys
Copy link
Contributor Author

image

And another one:

2018-06-08 20:29:58.440 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: In method 'StartLogging', line 166:
    PowerShell Editor Services Host v1.7.0.0 starting (pid 26856)...
    
      Host application details:
    
        Name:      Visual Studio Code Host
        ProfileId: Microsoft.VSCode
        Version:   1.7.0
        Arch:      64-bit
    
      Operating system details:
    
        Version: Microsoft Windows NT 10.0.17672.0
        Arch:    64-bit

2018-06-08 20:29:58.452 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: In method 'StartLanguageService', line 198:
    Language service started, type = NamedPipe, endpoint = LanguageService_d1fcbd479072653efa4a.pipe

2018-06-08 20:29:58.457 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: In method 'StartDebugService', line 268:
    Debug service started, type = NamedPipe, endpoint = DebugService_d1fcbd479072653efa4a.pipe

2018-06-08 20:29:59.240 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'Initialize', line 220:
    PowerShell runtime version: 5.1.17672.1000, edition: Desktop

2018-06-08 20:29:59.283 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'SetExecutionPolicy', line 1460:
    Setting execution policy:
        Current = ExecutionPolicy.Bypass
        Desired = ExecutionPolicy.RemoteSigned

2018-06-08 20:29:59.286 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Capabilities\DscBreakpointCapability.cs: In method 'CheckForCapability', line 157:
    Side-by-side DSC module was not found.

2018-06-08 20:29:59.286 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'SetProfileVariableInCurrentRunspace', line 1607:
    Setting $profile variable in runspace.  Current user host profile path: C:\Users\pklys\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

2018-06-08 20:29:59.501 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: In method 'EnumeratePSScriptAnalyzerCmdlets', line 359:
    The following cmdlets are available in the imported PSScriptAnalyzer module:
        Get-ScriptAnalyzerRule
        Invoke-Formatter
        Invoke-ScriptAnalyzer
    

2018-06-08 20:29:59.626 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: In method 'EnumeratePSScriptAnalyzerRules', line 375:
    Available PSScriptAnalyzer Rules:
    PSAlignAssignmentStatement
    PSAvoidUsingCmdletAliases
    PSAvoidAssignmentToAutomaticVariable
    PSAvoidDefaultValueSwitchParameter
    PSAvoidDefaultValueForMandatoryParameter
    PSAvoidUsingEmptyCatchBlock
    PSAvoidGlobalAliases
    PSAvoidGlobalFunctions
    PSAvoidGlobalVars
    PSAvoidInvokingEmptyMembers
    PSAvoidNullOrEmptyHelpMessageAttribute
    PSAvoidUsingPositionalParameters
    PSReservedCmdletChar
    PSReservedParams
    PSAvoidShouldContinueWithoutForce
    PSAvoidTrailingWhitespace
    PSAvoidUsingUserNameAndPassWordParams
    PSAvoidUsingComputerNameHardcoded
    PSAvoidUsingConvertToSecureStringWithPlainText
    PSAvoidUsingDeprecatedManifestFields
    PSAvoidUsingInvokeExpression
    PSAvoidUsingPlainTextForPassword
    PSAvoidUsingWMICmdlet
    PSAvoidUsingWriteHost
    PSMisleadingBacktick
    PSMissingModuleManifestField
    PSPlaceCloseBrace
    PSPlaceOpenBrace
    PSPossibleIncorrectComparisonWithNull
    PSPossibleIncorrectUsageOfAssignmentOperator
    PSPossibleIncorrectUsageOfRedirectionOperator
    PSProvideCommentHelp
    PSUseApprovedVerbs
    PSUseBOMForUnicodeEncodedFile
    PSUseCmdletCorrectly
    PSUseCompatibleCmdlets
    PSUseConsistentIndentation
    PSUseConsistentWhitespace
    PSUseDeclaredVarsMoreThanAssignments
    PSUseLiteralInitializerForHashtable
    PSUseOutputTypeCorrectly
    PSUsePSCredentialType
    PSShouldProcess
    PSUseShouldProcessForStateChangingFunctions
    PSUseSingularNouns
    PSUseSupportsShouldProcess
    PSUseToExportFieldsInManifest
    PSUseUTF8EncodingForHelpFile
    PSDSCDscExamplesPresent
    PSDSCDscTestsPresent
    PSDSCReturnCorrectTypesForDSCFunctions
    PSDSCUseIdenticalMandatoryParametersForDSC
    PSDSCUseIdenticalParametersForDSC
    PSDSCStandardDSCFunctionsInResource
    PSDSCUseVerboseMessageInDSCResource
    

2018-06-08 20:29:59.715 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:29:59.716 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:29:59.717 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        Import-Module C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules\PowerShellEditorServices\bin\Desktop\..\..\Commands\PowerShellEditorServices.Commands.psd1
    

2018-06-08 20:29:59.717 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:29:59.870 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:29:59.870 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:29:59.870 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:29:59.870 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:29:59.872 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:29:59.872 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:29:59.872 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        Import-Module PowerShellEditorServices.VSCode
    

2018-06-08 20:29:59.872 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:29:59.906 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs: In method 'Register', line 36:
    PowerShell Editor Services VS Code module loaded.

2018-06-08 20:29:59.949 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:29:59.949 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:29:59.949 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:29:59.949 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:29:59.963 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 0,
      "method": "initialize",
      "params": {
        "processId": 29784,
        "rootPath": "c:\\Users\\pklys\\OneDrive - Evotec\\Support\\GitHub\\PSPulsewayManager",
        "rootUri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager",
        "capabilities": {
          "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
              "documentChanges": true
            },
            "didChangeConfiguration": {
              "dynamicRegistration": true
            },
            "didChangeWatchedFiles": {
              "dynamicRegistration": true
            },
            "symbol": {
              "dynamicRegistration": true,
              "symbolKind": {
                "valueSet": [
                  1,
                  2,
                  3,
                  4,
                  5,
                  6,
                  7,
                  8,
                  9,
                  10,
                  11,
                  12,
                  13,
                  14,
                  15,
                  16,
                  17,
                  18,
                  19,
                  20,
                  21,
                  22,
                  23,
                  24,
                  25,
                  26
                ]
              }
            },
            "executeCommand": {
              "dynamicRegistration": true
            },
            "configuration": true,
            "workspaceFolders": true
          },
          "textDocument": {
            "publishDiagnostics": {
              "relatedInformation": true
            },
            "synchronization": {
              "dynamicRegistration": true,
              "willSave": true,
              "willSaveWaitUntil": true,
              "didSave": true
            },
            "completion": {
              "dynamicRegistration": true,
              "contextSupport": true,
              "completionItem": {
                "snippetSupport": true,
                "commitCharactersSupport": true,
                "documentationFormat": [
                  "markdown",
                  "plaintext"
                ],
                "deprecatedSupport": true
              },
              "completionItemKind": {
                "valueSet": [
                  1,
                  2,
                  3,
                  4,
                  5,
                  6,
                  7,
                  8,
                  9,
                  10,
                  11,
                  12,
                  13,
                  14,
                  15,
                  16,
                  17,
                  18,
                  19,
                  20,
                  21,
                  22,
                  23,
                  24,
                  25
                ]
              }
            },
            "hover": {
              "dynamicRegistration": true,
              "contentFormat": [
                "markdown",
                "plaintext"
              ]
            },
            "signatureHelp": {
              "dynamicRegistration": true,
              "signatureInformation": {
                "documentationFormat": [
                  "markdown",
                  "plaintext"
                ]
              }
            },
            "definition": {
              "dynamicRegistration": true
            },
            "references": {
              "dynamicRegistration": true
            },
            "documentHighlight": {
              "dynamicRegistration": true
            },
            "documentSymbol": {
              "dynamicRegistration": true,
              "symbolKind": {
                "valueSet": [
                  1,
                  2,
                  3,
                  4,
                  5,
                  6,
                  7,
                  8,
                  9,
                  10,
                  11,
                  12,
                  13,
                  14,
                  15,
                  16,
                  17,
                  18,
                  19,
                  20,
                  21,
                  22,
                  23,
                  24,
                  25,
                  26
                ]
              }
            },
            "codeAction": {
              "dynamicRegistration": true,
              "codeActionLiteralSupport": {
                "codeActionKind": {
                  "valueSet": [
                    "",
                    "quickfix",
                    "refactor",
                    "refactor.extract",
                    "refactor.inline",
                    "refactor.rewrite",
                    "source",
                    "source.organizeImports"
                  ]
                }
              }
            },
            "codeLens": {
              "dynamicRegistration": true
            },
            "formatting": {
              "dynamicRegistration": true
            },
            "rangeFormatting": {
              "dynamicRegistration": true
            },
            "onTypeFormatting": {
              "dynamicRegistration": true
            },
            "rename": {
              "dynamicRegistration": true
            },
            "documentLink": {
              "dynamicRegistration": true
            },
            "typeDefinition": {
              "dynamicRegistration": true
            },
            "implementation": {
              "dynamicRegistration": true
            },
            "colorProvider": {
              "dynamicRegistration": true
            }
          }
        },
        "trace": "off",
        "workspaceFolders": [
          {
            "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager",
            "name": "PSPulsewayManager"
          }
        ]
      }
    }

2018-06-08 20:29:59.964 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'initialize' with id 0

2018-06-08 20:29:59.999 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'initialize' with id 0

2018-06-08 20:29:59.999 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    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,
          "codeLensProvider": {
            "resolveProvider": true
          },
          "documentFormattingProvider": false,
          "documentRangeFormattingProvider": null,
          "documentOnTypeFormattingProvider": null,
          "renameProvider": null,
          "documentLinkProvider": null,
          "executeCommandProvider": null,
          "experimental": null
        }
      }
    }

2018-06-08 20:30:00.000 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "initialized",
      "params": {}
    }

2018-06-08 20:30:00.000 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Event 'initialized'

2018-06-08 20:30:00.008 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "workspace/didChangeConfiguration",
      "params": {
        "settings": {
          "powershell": {
            "powerShellExePath": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "powerShellAdditionalExePaths": [],
            "powerShellDefaultVersion": "",
            "startAutomatically": true,
            "useX86Host": false,
            "enableProfileLoading": true,
            "bugReporting": {
              "project": "https://github.com/PowerShell/vscode-powershell"
            },
            "helpCompletion": "BlockComment",
            "scriptAnalysis": {
              "enable": true,
              "settingsPath": ""
            },
            "codeFormatting": {
              "preset": "OTBS",
              "openBraceOnSameLine": true,
              "newLineAfterOpenBrace": true,
              "newLineAfterCloseBrace": false,
              "whitespaceBeforeOpenBrace": true,
              "whitespaceBeforeOpenParen": true,
              "whitespaceAroundOperator": true,
              "whitespaceAfterSeparator": true,
              "ignoreOneLineBlock": true,
              "alignPropertyValuePairs": true
            },
            "integratedConsole": {
              "showOnStartup": false,
              "focusConsoleOnExecute": true
            },
            "debugging": {
              "createTemporaryIntegratedConsole": false
            },
            "developer": {
              "bundledModulesPath": "",
              "editorServicesLogLevel": "Diagnostic",
              "editorServicesWaitForDebugger": false,
              "featureFlags": [],
              "powerShellExeIsWindowsDevBuild": false,
              "powerShellExePath": ""
            }
          }
        }
      }
    }

2018-06-08 20:30:00.008 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Event 'workspace/didChangeConfiguration'

2018-06-08 20:30:00.014 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServerSettings.cs: In method 'Update', line 95:
    Using Script Analyzer settings path - ''.

2018-06-08 20:30:00.018 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        prompt
    

2018-06-08 20:30:00.019 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:00.019 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:30:00.019 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:30:00.019 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "textDocument/didOpen",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Publish/Manage-Module.ps1",
          "languageId": "powershell",
          "version": 1,
          "text": "Clear-Host\r\nImport-Module \"C:\\Support\\GitHub\\PSPublishModule\\PSPublishModule.psm1\" -Force\r\n\r\n$apikey = '7b8aafe1-d097-4b86-82a5-6c5a80a8b73c'\r\n$modulePath = \"C:\\Users\\pklys\\Documents\\WindowsPowerShell\\Modules\\\"\r\n$projectPath = \"C:\\Support\\GitHub\"\r\n$projectName = 'PSPulsewayManager'\r\n\r\n#New-PrepareManifest -ProjectName $projectName -modulePath $modulePath -projectPath $projectPath -functionToExport '' -projectUrl \"https://github.com/EvotecIT/$projectName\"\r\nNew-PrepareModule -projectName $projectName -modulePath $modulePath -projectPath $projectPath\r\n#New-PublishModule -projectName $projectName -apikey $apikey\r\n"
        }
      }
    }

2018-06-08 20:30:00.019 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Event 'textDocument/didOpen'

2018-06-08 20:30:00.021 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: In method 'ResolveFilePath', line 378:
    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish\Manage-Module.ps1

2018-06-08 20:30:00.022 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: In method 'GetFileBuffer', line 138:
    Opened file as in-memory buffer: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish\Manage-Module.ps1

2018-06-08 20:30:00.022 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs: In method 'HandleDidOpenTextDocumentNotification', line 504:
    Finished opening document.

2018-06-08 20:30:00.022 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "powerShell/getVersion",
      "params": null
    }

2018-06-08 20:30:00.022 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'powerShell/getVersion' with id 1

2018-06-08 20:30:00.024 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'powerShell/getVersion' with id 1

2018-06-08 20:30:00.024 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "1",
      "result": {
        "version": "5.1.17672.1000",
        "displayVersion": "5.1",
        "edition": "Desktop",
        "architecture": "x64"
      }
    }

2018-06-08 20:30:00.030 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:30:00.030 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:30:00.030 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:00.030 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:30:00.261 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": 2,
      "method": "textDocument/codeLens",
      "params": {
        "textDocument": {
          "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Publish/Manage-Module.ps1"
        }
      }
    }

2018-06-08 20:30:00.261 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'textDocument/codeLens' with id 2

2018-06-08 20:30:00.263 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Workspace\Workspace.cs: In method 'ResolveFilePath', line 378:
    Resolved path: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish\Manage-Module.ps1

2018-06-08 20:30:00.263 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: In method 'InvokeProviders', line 71:
    Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.ReferencesCodeLensProvider' completed in 0ms.

2018-06-08 20:30:00.264 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Components\FeatureComponentBase.cs: In method 'InvokeProviders', line 71:
    Invocation of provider 'Microsoft.PowerShell.EditorServices.CodeLenses.PesterCodeLensProvider' completed in 0ms.

2018-06-08 20:30:00.265 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'textDocument/codeLens' with id 2

2018-06-08 20:30:00.265 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "2",
      "result": []
    }

2018-06-08 20:30:00.773 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs: In method 'DelayThenInvokeDiagnostics', line 1516:
    Analyzing script file: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish\Manage-Module.ps1

2018-06-08 20:30:01.104 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Analysis\AnalysisService.cs: In method 'GetDiagnosticRecordsAsync', line 421:
    Found 1 violations

2018-06-08 20:30:01.121 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\LanguageServer.cs: In method 'DelayThenInvokeDiagnostics', line 1520:
    Analysis complete.

2018-06-08 20:30:01.125 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'textDocument/publishDiagnostics'

2018-06-08 20:30:01.125 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "textDocument/publishDiagnostics",
      "params": {
        "uri": "file:///c%3A/Users/pklys/OneDrive%20-%20Evotec/Support/GitHub/PSPulsewayManager/Publish/Manage-Module.ps1",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 3,
                "character": 0
              },
              "end": {
                "line": 3,
                "character": 7
              }
            },
            "severity": 2,
            "code": "PSScriptAnalyzer202c9cb5-255e-48eb-8918-a0b56b9aac8d",
            "message": "The variable 'apikey' is assigned but never used. (PSUseDeclaredVarsMoreThanAssignments)",
            "source": "PSScriptAnalyzer"
          }
        ]
      }
    }

2018-06-08 20:30:03.625 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "initialize",
      "arguments": {
        "clientID": "vscode",
        "clientName": "Visual Studio Code",
        "adapterID": "PowerShell",
        "pathFormat": "path",
        "linesStartAt1": true,
        "columnsStartAt1": true,
        "supportsVariableType": true,
        "supportsVariablePaging": true,
        "supportsRunInTerminalRequest": true,
        "locale": "en-us"
      },
      "type": "request",
      "seq": 1
    }

2018-06-08 20:30:03.626 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'initialize' with id 1

2018-06-08 20:30:03.629 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        Microsoft.PowerShell.Utility\Get-PSBreakpoint
        Microsoft.PowerShell.Utility\Remove-PSBreakpoint
    

2018-06-08 20:30:03.629 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:03.629 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:30:03.629 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:30:03.631 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:30:03.631 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:30:03.631 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:03.631 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:30:03.633 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'initialize' with id 1

2018-06-08 20:30:03.633 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 1,
      "command": "initialize",
      "success": true,
      "body": {
        "supportsConfigurationDoneRequest": true,
        "supportsFunctionBreakpoints": true,
        "supportsConditionalBreakpoints": true,
        "supportsHitConditionalBreakpoints": true,
        "supportsEvaluateForHovers": false,
        "supportsSetVariable": true
      }
    }

2018-06-08 20:30:03.634 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "launch",
      "arguments": {
        "type": "PowerShell",
        "name": "PowerShell Launch Current File",
        "request": "launch",
        "args": [],
        "script": "c:\\Users\\pklys\\OneDrive - Evotec\\Support\\GitHub\\PSPulsewayManager\\Publish\\Manage-Module.ps1",
        "cwd": "c:\\Users\\pklys\\OneDrive - Evotec\\Support\\GitHub\\PSPulsewayManager\\Publish\\Manage-Module.ps1",
        "createTemporaryIntegratedConsole": false,
        "internalConsoleOptions": "neverOpen",
        "__sessionId": "e3e9c21f-6c65-4ed3-9a74-5d836fed8012"
      },
      "type": "request",
      "seq": 2
    }

2018-06-08 20:30:03.634 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'launch' with id 2

2018-06-08 20:30:03.639 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\DebugAdapter.cs: In method 'HandleLaunchRequest', line 305:
    Working dir set to: c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish

2018-06-08 20:30:03.639 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'launch' with id 2

2018-06-08 20:30:03.639 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 2,
      "command": "launch",
      "success": true,
      "body": null
    }

2018-06-08 20:30:03.640 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'initialized'

2018-06-08 20:30:03.640 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "event",
      "event": "initialized",
      "body": null
    }

2018-06-08 20:30:03.647 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "setFunctionBreakpoints",
      "arguments": {
        "breakpoints": []
      },
      "type": "request",
      "seq": 3
    }

2018-06-08 20:30:03.647 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'setFunctionBreakpoints' with id 3

2018-06-08 20:30:03.652 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        Microsoft.PowerShell.Utility\Get-PSBreakpoint -Type Command
        Microsoft.PowerShell.Utility\Remove-PSBreakpoint
    

2018-06-08 20:30:03.653 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:03.653 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:30:03.653 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:30:03.654 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:30:03.654 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:30:03.654 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:03.654 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": true,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:30:03.655 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'setFunctionBreakpoints' with id 3

2018-06-08 20:30:03.655 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 3,
      "command": "setFunctionBreakpoints",
      "success": true,
      "body": {
        "breakpoints": []
      }
    }

2018-06-08 20:30:03.656 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "configurationDone",
      "type": "request",
      "seq": 4
    }

2018-06-08 20:30:03.656 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'configurationDone' with id 4

2018-06-08 20:30:03.664 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        c:\Users\pklys\OneDrive - Evotec\Support\GitHub\PSPulsewayManager\Publish\Manage-Module.ps1
        Out-Default
    

2018-06-08 20:30:03.664 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:03.664 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:30:03.664 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:30:03.664 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'configurationDone' with id 4

2018-06-08 20:30:03.664 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 4,
      "command": "configurationDone",
      "success": true,
      "body": null
    }

2018-06-08 20:30:03.665 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "threads",
      "type": "request",
      "seq": 5
    }

2018-06-08 20:30:03.665 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'threads' with id 5

2018-06-08 20:30:03.687 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'threads' with id 5

2018-06-08 20:30:03.687 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 5,
      "command": "threads",
      "success": true,
      "body": {
        "threads": [
          {
            "id": 1,
            "name": "Main Thread"
          }
        ]
      }
    }

2018-06-08 20:30:03.976 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:03.986 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:03.987 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:03.997 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:03.998 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.008 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.008 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.017 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.018 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.027 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.029 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.039 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.040 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.049 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.050 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyBeginApplication', line 270:
    NotifyBeginApplication() called.

2018-06-08 20:30:04.060 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\Host\EditorServicesPSHost.cs: In method 'NotifyEndApplication', line 279:
    NotifyEndApplication() called.

2018-06-08 20:30:04.062 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:30:04.062 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:30:04.066 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 491:
    Attempting to execute command(s):
    
        prompt
    

2018-06-08 20:30:04.066 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:04.066 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": true,
          "writeErrorsToHost": true,
          "addToHistory": true,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:30:04.067 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Ready
        New state: Running
        Result: NotFinished

2018-06-08 20:30:04.067 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:04.067 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 1,
        "hadErrors": false
      }
    }

2018-06-08 20:30:04.068 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\DebugAdapter.cs: In method 'OnExecutionCompleted', line 121:
    Execution completed, terminating...

2018-06-08 20:30:04.070 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'terminated'

2018-06-08 20:30:04.070 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "event",
      "event": "terminated",
      "body": {
        "restart": false
      }
    }

2018-06-08 20:30:04.072 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'OnSessionStateChanged', line 1171:
    Session state changed --
    
        Old state: Running
        New state: Ready
        Result: Completed

2018-06-08 20:30:04.072 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: In method 'ExecuteCommand', line 570:
    Execution completed successfully.

2018-06-08 20:30:04.072 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Event 'powerShell/executionStatusChanged'

2018-06-08 20:30:04.072 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "method": "powerShell/executionStatusChanged",
      "params": {
        "executionOptions": {
          "writeOutputToHost": false,
          "writeErrorsToHost": false,
          "addToHistory": false,
          "interruptCommandPrompt": false
        },
        "executionStatus": 4,
        "hadErrors": false
      }
    }

2018-06-08 20:30:04.098 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 114:
    READ MESSAGE:
    
    {
      "command": "disconnect",
      "arguments": {
        "restart": false
      },
      "type": "request",
      "seq": 6
    }

2018-06-08 20:30:04.098 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'disconnect' with id 6

2018-06-08 20:30:04.102 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'disconnect' with id 6

2018-06-08 20:30:04.102 [DIAGNOSTIC] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "type": "response",
      "request_seq": 6,
      "command": "disconnect",
      "success": true,
      "body": null
    }

2018-06-08 20:30:04.103 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\Server\DebugAdapter.cs: In method 'Stop', line 167:
    Debug adapter is shutting down...

2018-06-08 20:30:04.104 [NORMAL] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: In method 'OnDebugServiceClientConnect', line 314:
    Previous debug session ended, restarting debug service listener...

2018-06-08 20:30:04.104 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\Channel\NamedPipeServerListener.cs: In method 'Stop', line 57:
    Named pipe server shutting down...

2018-06-08 20:30:04.104 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\Channel\NamedPipeServerListener.cs: In method 'Stop', line 61:
    Named pipe server has been disposed.

2018-06-08 20:30:04.105 [VERBOSE] C:\projects\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: In method 'ListenForMessages', line 355:
    MessageReader attempted to read from a disposed stream, ending MessageDispatcher loop


**********************
Windows PowerShell transcript start
Start time: 20180608202957
Username: EVOTEC\przemyslaw.klys
RunAs User: EVOTEC\przemyslaw.klys
Configuration Name: 
Machine: EVO1 (Microsoft Windows NT 10.0.17672.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command & 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules\PowerShellEditorServices\Start-EditorServices.ps1' -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0'-AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules'-EnableConsoleRepl -LanguageServicePipeName LanguageService_d1fcbd479072653efa4a.pipe -DebugServicePipeName DebugService_d1fcbd479072653efa4a.pipe -LogLevel 'Diagnostic' -LogPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\logs\1528482597-db8d794c-b84b-4f23-938c-8c2de4cb55f21528482593708\EditorServices.log' -SessionDetailsPath 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\sessions\PSES-VSCode-5728-205847' -FeatureFlags @()
Process ID: 26856
PSVersion: 5.1.17672.1000
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17672.1000
BuildVersion: 10.0.17672.1000
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\logs\1528482597-db8d794c-b84b-4f23-938c-8c2de4cb55f21528482593708\Start-EditorServices.log
VERBOSE: 
#-- Updated PSModulePath to: -------------------------------------------------
VERBOSE: C:\Users\pklys\Documents\WindowsPowerShell\Modules
VERBOSE: C:\Program Files\WindowsPowerShell\Modules
VERBOSE: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
VERBOSE: C:\Program Files\Intel\
VERBOSE: C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\
VERBOSE: C:\Program Files\SharePoint Online Management Shell\
VERBOSE: C:\Program Files (x86)\AutoIt3\AutoItX
VERBOSE: C:\Program Files\WindowsPowerShell\Modules\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\
VERBOSE: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\
VERBOSE: C:\Program Files (x86)\SharePoint Online Management Shell\
VERBOSE: C:\Program Files\Common Files\Skype for Business Online\Modules\
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvPkgConverter
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvSequencer
VERBOSE: C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\
VERBOSE: C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules
VERBOSE: 
#-- Check required modules available -----------------------------------------
VERBOSE: Testing module availability PowerShellGet
VERBOSE: Populating RepositorySourceLocation property for module PowerShellGet.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.5.0.0\PSModule.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1'.
VERBOSE: PowerShellGet  found
VERBOSE: 
#-- Start up PowerShellEditorServices ----------------------------------------
VERBOSE: Importing PowerShellEditorServices
VERBOSE: Loading module from path 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'.
VERBOSE: Loading module from path 'C:\Users\pklys\.vscode\extensions\ms-vscode.powershell-1.7.0-insiders-557\modules\PowerShellEditorServices\PowerShellEditorServices.psm1'.
VERBOSE: Exporting function 'Start-EditorServicesHost'.
VERBOSE: Exporting function 'Compress-LogDir'.
VERBOSE: Exporting function 'Get-PowerShellEditorServicesVersion'.
VERBOSE: Importing function 'Compress-LogDir'.
VERBOSE: Importing function 'Get-PowerShellEditorServicesVersion'.
VERBOSE: Importing function 'Start-EditorServicesHost'.
PowerShell Integrated Console
VERBOSE: Invoking Start-EditorServicesHost
VERBOSE: Start-EditorServicesHost returned Microsoft.PowerShell.EditorServices.Host.EditorServicesHost
VERBOSE: Writing session file with contents:
VERBOSE: {"status":"started","debugServiceTransport":"NamedPipe","languageServiceTransport":"NamedPipe","debugServicePipeName":"DebugService_d1fcbd479072653efa4a.pipe","languageServicePipeName":"LanguageService_d1fcbd479072653efa4a.pipe"}
VERBOSE: Wrote out session file
VERBOSE: 
#-- Waiting for EditorServicesHost to complete execution ---------------------

@PrzemyslawKlys
Copy link
Contributor Author

Actually one thing I noticed is that when you create an empty .ps1 file and press Ctrl+S (Save) it will crash powershell.

@PrzemyslawKlys
Copy link
Contributor Author

proof-crashonemptyfile

Here is a little gif animation showing the last problem...

@rkeithhill
Copy link
Contributor

OK, I can dupe this last one. I'll take a look at it.

@rkeithhill
Copy link
Contributor

Hmm, well this sucks:

06-10 16:40:15 8> Invoke-Formatter -ScriptDefinition ""
Invoke-Formatter : Cannot bind argument to parameter 'ScriptDefinition' because it is an empty string.

That right there seems to be the problem. Invoke-Formatter is fine with " " but not "". Go figure.

@PrzemyslawKlys
Copy link
Contributor Author

@rjmholt I know what it is.. but the problem is regardless of my settings it's not working. And it only behaves like that sporadically. That's why I brought it up. It only happens for files created within VSCode.

My default policy:

image

@rjmholt
Copy link
Contributor

rjmholt commented Jun 22, 2018

Ah I see. Well it's complicated enough that it's hard to identify where the bug might be, but my instinct is that it might be a PowerShell bug. Worth opening an issue in the PowerShell repo

@PrzemyslawKlys
Copy link
Contributor Author

@rjmholt it seems to only happen when VS crashes on the bug you fixed already. Do you have a new insiders version so I can see if it gets better?

@rjmholt
Copy link
Contributor

rjmholt commented Jun 25, 2018

Try either of these: https://ci.appveyor.com/project/PowerShell/vscode-powershell/build/artifacts

Probably the non-v2 artefact is the safer choice.

@PrzemyslawKlys
Copy link
Contributor Author

Thank You! @rjmholt

@PrzemyslawKlys
Copy link
Contributor Author

image

image

Just in case that matters :-)

@rjmholt
Copy link
Contributor

rjmholt commented Jun 25, 2018

Let us know how you go! I'm hoping that a lot of the unstable behaviour you're seeing is because of that threaded logging bug...

@rjmholt
Copy link
Contributor

rjmholt commented Jun 25, 2018

Do you know what's producing that warning? An NPM linter?

Looks like it's complaining that we use uppercase letters.

@PrzemyslawKlys
Copy link
Contributor Author

I just installed vsix, reloaded and clicked package.json for PowerShell. It seems it doesn't like the name PowerShell (2nd screen)

image

@rjmholt
Copy link
Contributor

rjmholt commented Jun 25, 2018

Yes, looks like uppercase letters are deprecated for some reason: https://docs.npmjs.com/files/package.json#name

I don't think we're actually published on NPM, but could be wrong. Such a change could either be a total breaking change or totally inconsequential...

@rkeithhill
Copy link
Contributor

rkeithhill commented Jun 25, 2018

There is a powershell package on npmjs.com but it isn't this one. I think that vscode extensions just happen to use npm pkg infrastructure but aren't real npm pkgs, kind of like published PowerShell modules use NuGet for packaging but aren't really NuGet pkgs.

The worry would be if the "name" is a (case-sensitive) key for the VSCode Marketplace and changing the case would disassociate new versions of the extension with existing versions. I would hope not and that we could change it just to get rid of the warning.

@PrzemyslawKlys
Copy link
Contributor Author

@rjmholt I don't want to jinx it but it seems VScode is now much better on the insiders version. Haven't had a crash and generally feels snappier. Was it the only change you did there (the crashing on empty file?)

@rjmholt
Copy link
Contributor

rjmholt commented Jun 26, 2018

No jinxing at all -- if there's a bug, the only lucky part is finding it and working out what's causing it.

To be honest, we've been slowly starting to focus our efforts at exactly what you're talking about; improving stability and performance (although there's plenty more work to do).

I think the main thing stopping the crashes is making the logging thread-safe and asynchronous (PowerShell/PowerShellEditorServices#666), but there have been a couple of other improvements here and there.

@PrzemyslawKlys
Copy link
Contributor Author

image

image

Event thou I don't use debugging I got this.. I can't do anything. I closed/killed powershell. Using 1.25 and 1.8. I just saw this first time ever when upgraded to 1.8. Before that I wasn't getting any notifications but the behavior was similar. VSCode being stuck until restart. Not sure if it's any help thou as I can't find anything to go on...

And btw I've switched my VSCode a while ago so that F5 runs code without Debug...

image

And I still get that that issue.

@TylerLeonhardt
Copy link
Member

Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on?

@PrzemyslawKlys
Copy link
Contributor Author

@tylerl0706 unfortunately not for this one. Next time it happens I'll do so. Had it just once thou.

@PrzemyslawKlys
Copy link
Contributor Author

image

image

logs.zip

Newest insiders version.

@PrzemyslawKlys
Copy link
Contributor Author

logs.zip

New crashes.

2018-07-28 10:12:08.146 [VERBOSE] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: In method 'ReadMessage', line 123:
    Received Request 'textDocument/codeAction' with id 5

2018-07-28 10:12:08.146 [VERBOSE] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 61:
    Writing Response 'textDocument/codeAction' with id 5

2018-07-28 10:12:08.146 [DIAGNOSTIC] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: In method 'WriteMessage', line 67:
    WRITE MESSAGE:
    
    {
      "jsonrpc": "2.0",
      "id": "5",
      "result": []
    }

2018-07-28 10:12:23.482 [ERROR] C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: In method 'ListenForMessages', line 344:
    Stream terminated unexpectedly, ending MessageDispatcher loop
    
    Exception: EndOfStreamException
    MessageReader's input stream ended unexpectedly, terminating.

Simply by running script

@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Jul 28, 2018

image

I get that a lot now. I have no clue where it's coming from.

Insiders Windows
Newest VSCode 1.25
Newest 1.82

@PrzemyslawKlys
Copy link
Contributor Author

logs.zip

@PrzemyslawKlys
Copy link
Contributor Author

Also notice what happens after that many crashes

image

Maybe there is a way to clear intellisense on crash so it doesn't have all the old stuff. I guess you could clear it on initialization? Not sure if it would have wrong impact thou

I actually tried to record this... but I tried to do it in small window. When in small window it wouldn't crash (weird) but then I maximize window.. rerun the script with F5 and it's crashing again. Don't think it's related but maybe. Keep in mind that all i do is press F5, F5, F5 and sometimes I use a shortcut to maximize window. My F5 is Start without Debugging.

error

Please notice that the gif is "speed up" version of it. I didn't really work that fast :-)

@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Jul 29, 2018

Maybe stupid thought.. but could it be related to terminal size? I can reproduce crashing heavily when I use VSCode on my 4k monitor from left to right (almost full screen - I do have Taskbar on the left side). I get it less frequently when I split screen.

I've also found this artcile for PowerShell 6 - https://docs.microsoft.com/en-us/powershell/scripting/whats-new/breaking-changes-ps6?view=powershell-6 and relevant section

Don't insert line breaks to output (except for tables) #5193
Previously, output was aligned to the width of the console and line breaks were added at the end width of the console, meaning the output didn't get reformatted as expected if the terminal was resized. This change was not applied to tables, as the line breaks are necessary to keep the columns aligned.

Maybe not really related but maybe something is indeed related to resizing.

@chr-ber
Copy link

chr-ber commented Jul 31, 2018

I have only reproduced this issue when either one of these options is set to true:
"editor.formatOnType": true,
"editor.formatOnSave": true,
Or if I manually click on FormatDocument.

It I avoid this, the issue was not appearing.

@PrzemyslawKlys
Copy link
Contributor Author

I do use editor.FOrmatOnSave althought not sure if it's related. I actually disabled it now and no change. I can reproduce this all the time now. If I have powershell terminal on larger part of screen or fully vertical on full 4k it will crash with 259 error. No matter the code. If it's below certain width it will work. The moment I scale it on width it goes bonkers.

@randygrolemund
Copy link

randygrolemund commented Dec 6, 2018

Any progress made on this? I have VS Code installed on a few different windows machines, and lately I have to close and reopen VSC to run powershell. It will run the 1st time.... but subsequent testing requires a restart of the app. If I go down to the lower CLI half, I can run my code 100% of the time, It doesn't matter how simple of a program I write.... something just to get the date does it, I uninstalled.... removed all the associated directories and cleaned the computer. Rebooted, even. Reinstall fresh, only the powershell extension... still does it. Honestly, I cannot develop this way.... it's so painful. The issue started in the last few weeks or a month. I keep things really basic as far as extension go, I only use the official MS Powershell extension. Up until recently, this was my fav app to dev with (still is), but if I cannot get this resolved, I have to move on... any ideas?

@randygrolemund
Copy link

Here's an example..... this ran the 1st time. And now I'm trying to run it a 2nd time... it will sit here until I cancel it .

image

@PrzemyslawKlys
Copy link
Contributor Author

PrzemyslawKlys commented Dec 6, 2018

#1634 check this out @randygrolemund . It's a new issue on 1.10 version. Not related to this one.

@randygrolemund
Copy link

randygrolemund commented Dec 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

6 participants