PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.72k stars 495 forks source link

Frequent powershell crashes #1346

Closed PrzemyslawKlys closed 6 years ago

PrzemyslawKlys commented 6 years ago

System Details

Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

1.23.1
d0182c3417d225529c6d5ad24b7572815d0de9ac
x64

aaron-bond.better-comments@1.2.4
abusaidm.html-snippets@0.2.1
alefragnani.Bookmarks@0.19.1
azemoh.one-monokai@0.3.4
ban.spellright@2.5.0
donjayamanne.githistory@0.4.1
DotJoshJohnson.xml@2.2.0
eamodio.gitlens@8.3.3
emilast.LogFileHighlighter@2.4.0
emmanuelbeziat.vscode-great-icons@2.1.32
Equinusocio.vsc-material-theme@2.1.0
felixfbecker.php-debug@1.12.3
gerane.Theme-dimmed-monokai@0.0.2
gharveymn.nightswitch@1.1.0
GrapeCity.gc-excelviewer@2.0.21
hdg.live-html-previewer@0.3.0
HookyQR.beautify@1.3.0
IBM.output-colorizer@0.1.2
ikappas.phpcs@1.0.5
ionutvmi.reg@0.0.2
JerryHong.autofilename@0.1.3
johnpapa.winteriscoming@0.7.1
KnisterPeter.vscode-github@0.28.1
mechatroner.rainbow-csv@0.3.0
ms-vscode.csharp@1.15.2
ms-vscode.PowerShell@1.7.0
ms-vsliveshare.vsliveshare@0.3.262
ms-vsts.team@1.136.0
redhat.java@0.26.0
robertohuertasm.vscode-icons@7.23.0
Shan.code-settings-sync@2.9.2
streetsidesoftware.code-spell-checker@1.6.10
streetsidesoftware.code-spell-checker-polish@1.0.0
vangware.dark-plus-material@1.1.3
vscjava.vscode-java-debug@0.9.0
vscjava.vscode-java-pack@0.3.0
vscjava.vscode-java-test@0.6.1
vscjava.vscode-maven@0.8.0
wayou.vscode-todo-highlight@0.5.12
whizkydee.material-palenight-theme@1.8.0
xaver.clang-format@1.6.2
zhuangtongfa.Material-theme@2.13.6
Zignd.html-css-class-completion@1.11.0

Name                           Value
----                           -----
PSVersion                      5.1.17672.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17672.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

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 commented 6 years ago

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

Instructions are here.

PrzemyslawKlys commented 6 years ago

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 commented 6 years ago

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

PrzemyslawKlys commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.

PrzemyslawKlys commented 6 years ago

image

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

PrzemyslawKlys commented 6 years ago
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 commented 6 years ago
**********************
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 commented 6 years ago
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 commented 6 years ago

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 commented 6 years ago

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

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

PrzemyslawKlys commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Try the preview here

rjmholt commented 6 years ago

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 commented 6 years ago

image

is that expected?

rjmholt commented 6 years ago

Yeah, you want to override.

PrzemyslawKlys commented 6 years ago

logs.zip

Logs from insider build. Same thing...

PrzemyslawKlys commented 6 years ago

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 commented 6 years ago

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

PrzemyslawKlys commented 6 years ago

proof-crashonemptyfile

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

rkeithhill commented 6 years ago

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

rkeithhill commented 6 years ago

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.

rkeithhill commented 6 years ago

BTW in the future, it would help us to repro the issue if you invoked commands not with kbd shortcuts (can't see that in an animated GIF) but instead with the command palette (ctrl+shift+p):

image

:-)

PR is on the way to fix the empty string/doc issue.

rkeithhill commented 6 years ago

@PrzemyslawKlys Do you have this setting in your user settings file:

 "editor.formatOnSave": true,
PrzemyslawKlys commented 6 years ago

Yes I do use that. I actually don't use much shortcuts. Not for formatting anyways. But in future I will use command palette.

PrzemyslawKlys commented 6 years ago

1528829447-de10d690-55e5-4252-933e-42595b0064111528809550848.zip

Another crash. Created new .ps1, pasted code from facebook

#ChangeACL.ps1
$Right="FullControl"

#The possible values for Rights are 
# ListDirectory, ReadData, WriteData 
# CreateFiles, CreateDirectories, AppendData 
# ReadExtendedAttributes, WriteExtendedAttributes, Traverse
# ExecuteFile, DeleteSubdirectoriesAndFiles, ReadAttributes 
# WriteAttributes, Write, Delete 
# ReadPermissions, Read, ReadAndExecute 
# Modify, ChangePermissions, TakeOwnership
# Synchronize, FullControl

$StartingDir=Read-Host "What directory do you want to start at?"
$Principal=Read-Host "What security principal do you want to grant" `
"$Right to? `n Use format domain\username or domain\group"

#define a new access rule.
#note that the $rule line has been artificially broken for print purposes.
#it needs to be one line. the online version of the script is properly
#formatted.
$rule=new-object System.Security.AccessControl.FileSystemAccessRule
($Principal,$Right,"Allow")

foreach ($file in $(Get-ChildItem $StartingDir -recurse)) {
$acl=get-acl $file.FullName

#Add this access rule to the ACL
$acl.SetAccessRule($rule)

#Write the changes to the object
set-acl $File.Fullname $acl
}

Saved, edited, saved. F5 ... and stuck.

PrzemyslawKlys commented 6 years ago

I've actually noticed just now that while F5 is stuck, i can use CTRL+F5. Since I don't use really DEBUG features at all I thought I disabled it earlier.

    "debug.hideActionBar": true,
    "debug.internalConsoleOptions": "neverOpen",
    "debug.openDebug": "neverOpen",
    "debug.openExplorerOnEnd": false,
    "debug.showInStatusBar": "never",

But that doesn't seem to do much for f5 button. It still is stuck.

Is there a way to switch F5 with CTRL+F5 with places? And does having DEBUG on/off makes a difference for powershell ?

PrzemyslawKlys commented 6 years ago

Hrmms.. I actually found it...

image

The funny thing is F5 still doesn't work.. Ctrl+F5 works still (thou with switched behaviour)...

image

That is quite a weird behaviour.. maybe powershell is not actually broken in this case... but something in VS Code is. F5 does work in other software just FYI.

I actually found how to fix F5...

image

After removing Continue (which also had F5) it now works properly. So maybe the debug session is stuck somehow? And doesn't releases .. so F5 doesn't work since it's in different place.. just weird.

TylerLeonhardt commented 6 years ago

@PrzemyslawKlys So I just want to make sure we're on track here. The initial crash was fixed with: https://github.com/PowerShell/PowerShellEditorServices/pull/685

That will be in the next release.

It looks like you're also unblocked with the debugging? Is that right?

PrzemyslawKlys commented 6 years ago

The unlock in debuging did work, kinda, although it's still hanging from time time to time. It surely helped in majority of cases. But it means something is going on behind scenes that does it. After this I also found myself in need to restart VSCode few times because I was not able to do anything. I sometimes get VSCode (even after I disabled the debugging) to hang on outputing errors... like if i make mistake press F5 it's going red all over the screen and it stops at some point for like 1 minute asking me after some time I want to Reopen or continue to wait. During that time I am unable to close VS Code, while the popup which appears is able to do so. If i open the same script in ISE it outputs the errors in like 5 seconds and it's done. At one time I even got VSCode to suggest me that we should change rendertype: "terminal.integrated.rendererType": "canvas", I believe it changed it to 'dom'. I changed it to canvas but I really have no clue ;-) Changed it to Auto just now. I have pretty powerfull machine with NVME drive 2500mb read/write gtx1080 and i7 and when I get hangs like this I'm wondering what's wrong because while performance should be great.

I already reported in other case it's hard to work on "Folders". When I work on single file it's mostly fine, when I work on folders it's more likely to hang, break down or crash entirely. I've even seen VSCode to just disappear (crashing in the background I guess).

That's why I want to help out to iron bugs, provide samples, provide what happens to get this fixed ;-) I really like VSCode and powershell in it.

PrzemyslawKlys commented 6 years ago

Usually when lock happens this shows up

image

PrzemyslawKlys commented 6 years ago

One more thing (sorry). While it may not be related to VSCode PowerShell .. I've recently started getting this screen as below. For full disclosure I've disabled UAC (since I need to make sure VSCode runs as Admin always) which makes VSCode in Admin mode all the time (I couldn't work with just Start as Admin as it wasn't working properly for multi windows)

When I create new file, save it, powershell crashes (the issue is already fixed as you stated above).. i type something in the file, restart powershell and for some weird reason PowerShell thinks the file is coming from remote...

image

Granted ... i do work on synced OneDrive (C:\User\pklys\OneDrive....) with symlinks to directory (C:\Support\GitHub...) which then gets symlinked to Modules directory .. so may not be your simple setup.

I can't unblock this file. It doesn't matter what sort of options I have set for scripts running.. it started randomly to happen. I have to delete the file, create new file with same name and the issue is gone. No clue where is it coming from.

rjmholt commented 6 years ago

That looks like an Execution Policy message. I think it has to do with the fact this is on a synced drive - PowerShell might be determining that this is a remote unsigned script.

PrzemyslawKlys commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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

Probably the non-v2 artefact is the safer choice.

PrzemyslawKlys commented 6 years ago

Thank You! @rjmholt

PrzemyslawKlys commented 6 years ago

image

image

Just in case that matters :-)

rjmholt commented 6 years ago

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 commented 6 years ago

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

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

PrzemyslawKlys commented 6 years ago

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

image

rjmholt commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

@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?)