Skip to content

PowerShell Preview: References aren't working across workspace #2306

Closed
PowerShell/PowerShellEditorServices
#1110
@muzzar78

Description

@muzzar78

Issue Description

I'm seeing an issue with the VSCode PowerShell preview extension where references aren't working across a workspace (they work ok in the same file). If I switch back to non-preview it works fine.

Preview Not Working
image

Non-Preview Working
image

Attached Logs

[Trace - 12:18:47 pm] Sending request 'initialize - (0)'.
Params: {
    "processId": 17708,
    "rootPath": "c:\\repos\\test",
    "rootUri": "file:///c%3A/repos/test",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional"
            },
            "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,
                    "preselectSupport": 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"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    }
                }
            },
            "definition": {
                "dynamicRegistration": true,
                "linkSupport": 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
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true
            },
            "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,
                "prepareSupport": true
            },
            "documentLink": {
                "dynamicRegistration": true
            },
            "typeDefinition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "implementation": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true
            },
            "declaration": {
                "dynamicRegistration": true,
                "linkSupport": true
            }
        }
    },
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///c%3A/repos/test",
            "name": "test"
        }
    ]
}


[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "PowerShell runtime version: 7.0.0, edition: Core"
}


[Info  - 12:18:47 pm] PowerShell runtime version: 7.0.0, edition: Core
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Setting execution policy:\r\n    Current = ExecutionPolicy.Bypass\r\n    Desired = ExecutionPolicy.RemoteSigned"
}


[Info  - 12:18:47 pm] Setting execution policy:
    Current = ExecutionPolicy.Bypass
    Desired = ExecutionPolicy.RemoteSigned
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Setting $profile variable in runspace.  Current user host profile path: C:\\Users\\AdamMurray\\Documents\\PowerShell\\Microsoft.VSCode_profile.ps1"
}


[Info  - 12:18:47 pm] Setting $profile variable in runspace.  Current user host profile path: C:\Users\AdamMurray\Documents\PowerShell\Microsoft.VSCode_profile.ps1
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Attempting to execute command(s):\r\n\r\n    Import-Module C:\\Users\\AdamMurray\\.vscode\\extensions\\ms-vscode.powershell-preview-2019.11.0\\modules\\PowerShellEditorServices\\bin\\..\\Commands\\PowerShellEditorServices.Commands.psd1\r\n"
}


[Info  - 12:18:47 pm] Attempting to execute command(s):

    Import-Module C:\Users\AdamMurray\.vscode\extensions\ms-vscode.powershell-preview-2019.11.0\modules\PowerShellEditorServices\bin\..\Commands\PowerShellEditorServices.Commands.psd1

[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Ready\r\n    New state: Running\r\n    Result: NotFinished"
}


[Info  - 12:18:47 pm] Session state changed --

    Old state: Ready
    New state: Running
    Result: NotFinished
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "PSScriptAnalyzer successfully imported:\r\n    Version: 1.18.3\r\n    Exported Cmdlets:\r\n    Get-ScriptAnalyzerRule\r\n    Invoke-Formatter\r\n    Invoke-ScriptAnalyzer\r\n    Available Rules:\r\n        PSAlignAssignmentStatement\r\n        PSAvoidUsingCmdletAliases\r\n        PSAvoidAssignmentToAutomaticVariable\r\n        PSAvoidDefaultValueSwitchParameter\r\n        PSAvoidDefaultValueForMandatoryParameter\r\n        PSAvoidUsingEmptyCatchBlock\r\n        PSAvoidGlobalAliases\r\n        PSAvoidGlobalFunctions\r\n        PSAvoidGlobalVars\r\n        PSAvoidInvokingEmptyMembers\r\n        PSAvoidNullOrEmptyHelpMessageAttribute\r\n        PSAvoidUsingPositionalParameters\r\n        PSReservedCmdletChar\r\n        PSReservedParams\r\n        PSAvoidShouldContinueWithoutForce\r\n        PSAvoidTrailingWhitespace\r\n        PSAvoidUsingUsernameAndPasswordParams\r\n        PSAvoidUsingComputerNameHardcoded\r\n        PSAvoidUsingConvertToSecureStringWithPlainText\r\n        PSAvoidUsingDeprecatedManifestFields\r\n        PSAvoidUsingInvokeExpression\r\n        PSAvoidUsingPlainTextForPassword\r\n        PSAvoidUsingWMICmdlet\r\n        PSAvoidUsingWriteHost\r\n        PSUseCompatibleCommands\r\n        PSUseCompatibleSyntax\r\n        PSUseCompatibleTypes\r\n        PSMisleadingBacktick\r\n        PSMissingModuleManifestField\r\n        PSPlaceCloseBrace\r\n        PSPlaceOpenBrace\r\n        PSPossibleIncorrectComparisonWithNull\r\n        PSPossibleIncorrectUsageOfAssignmentOperator\r\n        PSPossibleIncorrectUsageOfRedirectionOperator\r\n        PSProvideCommentHelp\r\n        PSUseApprovedVerbs\r\n        PSUseBOMForUnicodeEncodedFile\r\n        PSUseCmdletCorrectly\r\n        PSUseCompatibleCmdlets\r\n        PSUseConsistentIndentation\r\n        PSUseConsistentWhitespace\r\n        PSUseCorrectCasing\r\n        PSUseDeclaredVarsMoreThanAssignments\r\n        PSUseLiteralInitializerForHashtable\r\n        PSUseOutputTypeCorrectly\r\n        PSUsePSCredentialType\r\n        PSShouldProcess\r\n        PSUseShouldProcessForStateChangingFunctions\r\n        PSUseSupportsShouldProcess\r\n        PSUseToExportFieldsInManifest\r\n        PSUseUTF8EncodingForHelpFile\r\n        PSDSCDscExamplesPresent\r\n        PSDSCDscTestsPresent\r\n        PSDSCReturnCorrectTypesForDSCFunctions\r\n        PSDSCUseIdenticalMandatoryParametersForDSC\r\n        PSDSCUseIdenticalParametersForDSC\r\n        PSDSCStandardDSCFunctionsInResource\r\n        PSDSCUseVerboseMessageInDSCResource\r\n"
}


[Info  - 12:18:47 pm] PSScriptAnalyzer successfully imported:
    Version: 1.18.3
    Exported Cmdlets:
    Get-ScriptAnalyzerRule
    Invoke-Formatter
    Invoke-ScriptAnalyzer
    Available 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
        PSUseCompatibleCommands
        PSUseCompatibleSyntax
        PSUseCompatibleTypes
        PSMisleadingBacktick
        PSMissingModuleManifestField
        PSPlaceCloseBrace
        PSPlaceOpenBrace
        PSPossibleIncorrectComparisonWithNull
        PSPossibleIncorrectUsageOfAssignmentOperator
        PSPossibleIncorrectUsageOfRedirectionOperator
        PSProvideCommentHelp
        PSUseApprovedVerbs
        PSUseBOMForUnicodeEncodedFile
        PSUseCmdletCorrectly
        PSUseCompatibleCmdlets
        PSUseConsistentIndentation
        PSUseConsistentWhitespace
        PSUseCorrectCasing
        PSUseDeclaredVarsMoreThanAssignments
        PSUseLiteralInitializerForHashtable
        PSUseOutputTypeCorrectly
        PSUsePSCredentialType
        PSShouldProcess
        PSUseShouldProcessForStateChangingFunctions
        PSUseSupportsShouldProcess
        PSUseToExportFieldsInManifest
        PSUseUTF8EncodingForHelpFile
        PSDSCDscExamplesPresent
        PSDSCDscTestsPresent
        PSDSCReturnCorrectTypesForDSCFunctions
        PSDSCUseIdenticalMandatoryParametersForDSC
        PSDSCUseIdenticalParametersForDSC
        PSDSCStandardDSCFunctionsInResource
        PSDSCUseVerboseMessageInDSCResource

[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "highlight handler loaded"
}


[Info  - 12:18:47 pm] highlight handler loaded
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Running\r\n    New state: Ready\r\n    Result: Completed"
}


[Info  - 12:18:47 pm] Session state changed --

    Old state: Running
    New state: Ready
    Result: Completed
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Execution completed successfully."
}


[Info  - 12:18:47 pm] Execution completed successfully.
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Attempting to execute command(s):\r\n\r\n    Microsoft.PowerShell.Core\\Import-Module -Name PowerShellEditorServices.VSCode\r\n"
}


[Info  - 12:18:47 pm] Attempting to execute command(s):

    Microsoft.PowerShell.Core\Import-Module -Name PowerShellEditorServices.VSCode

[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Ready\r\n    New state: Running\r\n    Result: NotFinished"
}


[Info  - 12:18:47 pm] Session state changed --

    Old state: Ready
    New state: Running
    Result: NotFinished
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Running\r\n    New state: Ready\r\n    Result: Completed"
}


[Info  - 12:18:47 pm] Session state changed --

    Old state: Running
    New state: Ready
    Result: Completed
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Execution completed successfully."
}


[Info  - 12:18:47 pm] Execution completed successfully.
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for initialize"
}


[Info  - 12:18:47 pm] Finding descriptor for initialize
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (0) initialize"
}


[Info  - 12:18:47 pm] Starting: Routing Request (0) initialize
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams"
}


[Info  - 12:18:47 pm] Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:47 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult"
}


[Info  - 12:18:47 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (0) initialize in 41ms"
}


[Info  - 12:18:47 pm] Finished: Routing Request (0) initialize in 41ms
[Trace - 12:18:47 pm] Received response 'initialize - (0)' in 840ms.
Result: {
    "capabilities": {
        "textDocumentSync": 0,
        "hoverProvider": false,
        "definitionProvider": false,
        "referencesProvider": false,
        "documentHighlightProvider": false,
        "documentSymbolProvider": false,
        "workspaceSymbolProvider": false,
        "documentFormattingProvider": false,
        "documentRangeFormattingProvider": false,
        "experimental": {}
    }
}


[Trace - 12:18:47 pm] Sending notification 'initialized'.
Params: {}


[Trace - 12:18:47 pm] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "powershell": {
            "sideBar": {
                "CommandExplorerVisibility": true,
                "CommandExplorerExcludeFilter": []
            },
            "powerShellExePath": "C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
            "powerShellAdditionalExePaths": [],
            "powerShellDefaultVersion": "",
            "promptToUpdatePowerShell": true,
            "startAutomatically": true,
            "useX86Host": false,
            "enableProfileLoading": true,
            "bugReporting": {
                "project": "https://github.com/PowerShell/vscode-powershell"
            },
            "helpCompletion": "BlockComment",
            "scriptAnalysis": {
                "enable": true,
                "settingsPath": ""
            },
            "codeFolding": {
                "enable": true,
                "showLastLine": true
            },
            "codeFormatting": {
                "autoCorrectAliases": false,
                "preset": "Custom",
                "openBraceOnSameLine": true,
                "newLineAfterOpenBrace": true,
                "newLineAfterCloseBrace": true,
                "pipelineIndentationStyle": "NoIndentation",
                "whitespaceBeforeOpenBrace": true,
                "whitespaceBeforeOpenParen": true,
                "whitespaceAroundOperator": true,
                "whitespaceAfterSeparator": true,
                "whitespaceInsideBrace": true,
                "whitespaceAroundPipe": true,
                "ignoreOneLineBlock": true,
                "alignPropertyValuePairs": true,
                "useCorrectCasing": false
            },
            "integratedConsole": {
                "showOnStartup": true,
                "focusConsoleOnExecute": true,
                "useLegacyReadLine": false
            },
            "debugging": {
                "createTemporaryIntegratedConsole": false
            },
            "developer": {
                "bundledModulesPath": "",
                "editorServicesLogLevel": "Normal",
                "editorServicesWaitForDebugger": false,
                "featureFlags": [
                    "PSReadLine"
                ],
                "powerShellExeIsWindowsDevBuild": false
            }
        }
    }
}


[Trace - 12:18:47 pm] Sending request 'powerShell/getVersion - (1)'.
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for initialized"
}


[Info  - 12:18:47 pm] Finding descriptor for initialized
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for workspace/didChangeConfiguration"
}


[Info  - 12:18:47 pm] Finding descriptor for workspace/didChangeConfiguration
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Notification initialized"
}


[Info  - 12:18:47 pm] Starting: Routing Notification initialized
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for powerShell/getVersion"
}


[Info  - 12:18:47 pm] Finding descriptor for powerShell/getVersion
[Trace - 12:18:47 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams"
}


[Info  - 12:18:47 pm] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams
[Trace - 12:18:48 pm] Received request 'client/registerCapability - (1)'.
Params: {
    "registrations": [
        {
            "id": "e5234972-2eb7-4910-959a-9e3851d0c1b3",
            "method": "workspace/symbol",
            "registerOptions": {}
        },
        {
            "id": "926f242d-67d9-48ea-91d3-162fc333376c",
            "method": "textDocument/didChange",
            "registerOptions": {
                "syncKind": 2,
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "3da05220-7718-4684-b6c7-bb5cd943d090",
            "method": "textDocument/didOpen",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "45540e31-e056-4c4f-b57d-5ecd14f99142",
            "method": "textDocument/didClose",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "ba7a35ba-0b40-4495-808d-74ab14c4c60c",
            "method": "textDocument/didSave",
            "registerOptions": {
                "includeText": true,
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "e13d7d73-5aad-4172-bad6-7108065e4411",
            "method": "workspace/didChangeConfiguration",
            "registerOptions": {}
        },
        {
            "id": "804e3171-f6d0-4474-876c-c76a10eb453d",
            "method": "textDocument/foldingRange",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "1720027f-2511-4356-b3c9-29eae5bf01e8",
            "method": "textDocument/formatting",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "a7bc50cd-0967-4ef5-916e-e03feb1768cd",
            "method": "textDocument/rangeFormatting",
            "registerOptions": {
                "documentSelector": [
                    {
                        "pattern": "**/*.ps*1"
                    }
                ]
            }
        },
        {
            "id": "ee4189da-f7a0-4926-bec5-6e678c8964ae",
            "method": "textDocument/references",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "1a201a58-b120-42dd-bb05-3e59c91e3bb1",
            "method": "textDocument/documentSymbol",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "28c4076e-8a68-4f5b-8330-41138929ce4b",
            "method": "textDocument/documentHighlight",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "3f6207ae-e931-40d1-ace1-c38fc9131f50",
            "method": "textDocument/codeLens",
            "registerOptions": {
                "resolveProvider": true,
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "9113a090-1704-451a-a8ba-7df6fe588dd4",
            "method": "textDocument/codeAction",
            "registerOptions": {
                "codeActionKinds": [
                    "quickfix"
                ],
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "3d54ccea-839c-4da9-9717-85cb519c6281",
            "method": "textDocument/completion",
            "registerOptions": {
                "triggerCharacters": [
                    ".",
                    "-",
                    ":",
                    "\\"
                ],
                "resolveProvider": true,
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "59765dd1-5cd3-4d55-b0bb-1d4cfedb3356",
            "method": "textDocument/hover",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "eea7a9de-1bef-458a-b9e2-b194665e045a",
            "method": "textDocument/signatureHelp",
            "registerOptions": {
                "triggerCharacters": [
                    " "
                ],
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        },
        {
            "id": "e0677c9d-793e-4dd9-92dd-e77a9ef77ce1",
            "method": "textDocument/definition",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "powershell"
                    }
                ]
            }
        }
    ]
}


[Trace - 12:18:48 pm] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/repos/test/test.ps1",
        "languageId": "powershell",
        "version": 1,
        "text": "\r\ntest-function\r\n\r\nanotherfunction\r\n\r\nfunction test-function {\r\n\r\n    \r\n}"
    }
}


[Trace - 12:18:48 pm] Sending response 'client/registerCapability - (1)'. Processing request took 4ms
No result returned.


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Notification initialized in 122ms"
}


[Info  - 12:18:48 pm] Finished: Routing Notification initialized in 122ms
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Notification workspace/didChangeConfiguration"
}


[Info  - 12:18:48 pm] Starting: Routing Notification workspace/didChangeConfiguration
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Notification workspace/didChangeConfiguration to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeConfigurationParams"
}


[Info  - 12:18:48 pm] Converting params for Notification workspace/didChangeConfiguration to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeConfigurationParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for textDocument/didOpen"
}


[Info  - 12:18:48 pm] Finding descriptor for textDocument/didOpen
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Using Script Analyzer settings path - ''."
}


[Info  - 12:18:48 pm] Using Script Analyzer settings path - ''.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Created attribute powershell::file:///c%3A/repos/test/test.ps1"
}


[Info  - 12:18:48 pm] Created attribute powershell::file:///c%3A/repos/test/test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Looking for handler for descriptors textDocument/didOpen"
}


[Info  - 12:18:48 pm] Looking for handler for descriptors textDocument/didOpen
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler"
}


[Info  - 12:18:48 pm] Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions"
}


[Info  - 12:18:48 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Document Selector [powershell]"
}


[Info  - 12:18:48 pm] Document Selector [powershell]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])"
}


[Info  - 12:18:48 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcNotificationHandler`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Notification workspace/didChangeConfiguration in 20ms"
}


[Info  - 12:18:48 pm] Finished: Routing Notification workspace/didChangeConfiguration in 20ms
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (1) powerShell/getVersion"
}


[Info  - 12:18:48 pm] Starting: Routing Request (1) powerShell/getVersion
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (1) powerShell/getVersion to Microsoft.PowerShell.EditorServices.Handlers.GetVersionParams"
}


[Info  - 12:18:48 pm] Converting params for Request (1) powerShell/getVersion to Microsoft.PowerShell.EditorServices.Handlers.GetVersionParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion, Microsoft.PowerShell.EditorServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion, Microsoft.PowerShell.EditorServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion"
}


[Info  - 12:18:48 pm] Response value was Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (1) powerShell/getVersion in 1ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (1) powerShell/getVersion in 1ms
[Trace - 12:18:48 pm] Received response 'powerShell/getVersion - (1)' in 153ms.
Result: {
    "version": "7.0.0-preview.5",
    "displayVersion": "7.0",
    "edition": "Core",
    "architecture": "X64"
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Notification textDocument/didOpen"
}


[Info  - 12:18:48 pm] Starting: Routing Notification textDocument/didOpen
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams"
}


[Info  - 12:18:48 pm] Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Resolved path: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Resolved path: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Opened file as in-memory buffer: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Opened file as in-memory buffer: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'powerShell/executionStatusChanged'.
Params: {
    "executionOptions": {
        "writeOutputToHost": false,
        "writeErrorsToHost": false,
        "addToHistory": false,
        "interruptCommandPrompt": false,
        "writeInputToHost": false
    },
    "executionStatus": 1,
    "hadErrors": false
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Attempting to execute command(s):\r\n\r\n    prompt\r\n"
}


[Info  - 12:18:48 pm] Attempting to execute command(s):

    prompt

[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Ready\r\n    New state: Running\r\n    Result: NotFinished"
}


[Info  - 12:18:48 pm] Session state changed --

    Old state: Ready
    New state: Running
    Result: NotFinished
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished opening document."
}


[Info  - 12:18:48 pm] Finished opening document.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Notification textDocument/didOpen in 7ms"
}


[Info  - 12:18:48 pm] Finished: Routing Notification textDocument/didOpen in 7ms
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Session state changed --\r\n\r\n    Old state: Running\r\n    New state: Ready\r\n    Result: Completed"
}


[Info  - 12:18:48 pm] Session state changed --

    Old state: Running
    New state: Ready
    Result: Completed
[Trace - 12:18:48 pm] Sending request 'textDocument/documentSymbol - (2)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/repos/test/test.ps1"
    }
}


[Trace - 12:18:48 pm] Sending request 'textDocument/codeAction - (3)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/repos/test/test.ps1"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 12
        },
        "end": {
            "line": 5,
            "character": 12
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Execution completed successfully."
}


[Info  - 12:18:48 pm] Execution completed successfully.
[Trace - 12:18:48 pm] Received notification 'powerShell/executionStatusChanged'.
Params: {
    "executionOptions": {
        "writeOutputToHost": false,
        "writeErrorsToHost": false,
        "addToHistory": false,
        "interruptCommandPrompt": false,
        "writeInputToHost": false
    },
    "executionStatus": 4,
    "hadErrors": false
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for textDocument/documentSymbol"
}


[Info  - 12:18:48 pm] Finding descriptor for textDocument/documentSymbol
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Attempting to execute command(s):\r\n\r\n    \r\n            [System.Diagnostics.DebuggerHidden()]\r\n            [System.Diagnostics.DebuggerStepThrough()]\r\n            param()\r\n            return [Microsoft.PowerShell.PSConsoleReadLine, Microsoft.PowerShell.PSReadLine2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]::ReadLine(\r\n                $Host.Runspace,\r\n                $ExecutionContext,\r\n                $args[0]) System.Threading.CancellationToken\r\n"
}


[Info  - 12:18:48 pm] Attempting to execute command(s):

    
            [System.Diagnostics.DebuggerHidden()]
            [System.Diagnostics.DebuggerStepThrough()]
            param()
            return [Microsoft.PowerShell.PSConsoleReadLine, Microsoft.PowerShell.PSReadLine2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]::ReadLine(
                $Host.Runspace,
                $ExecutionContext,
                $args[0]) System.Threading.CancellationToken

[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1"
}


[Info  - 12:18:48 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Looking for handler for descriptors textDocument/documentSymbol"
}


[Info  - 12:18:48 pm] Looking for handler for descriptors textDocument/documentSymbol
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler"
}


[Info  - 12:18:48 pm] Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions"
}


[Info  - 12:18:48 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Document Selector [powershell]"
}


[Info  - 12:18:48 pm] Document Selector [powershell]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])"
}


[Info  - 12:18:48 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (2) textDocument/documentSymbol"
}


[Info  - 12:18:48 pm] Starting: Routing Request (2) textDocument/documentSymbol
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (2) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams"
}


[Info  - 12:18:48 pm] Converting params for Request (2) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for textDocument/codeAction"
}


[Info  - 12:18:48 pm] Finding descriptor for textDocument/codeAction
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Resolved path: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Resolved path: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Invocation of provider 'ScriptDocumentSymbolProvider' completed in 1ms."
}


[Info  - 12:18:48 pm] Invocation of provider 'ScriptDocumentSymbolProvider' completed in 1ms.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1"
}


[Info  - 12:18:48 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Looking for handler for descriptors textDocument/codeAction"
}


[Info  - 12:18:48 pm] Looking for handler for descriptors textDocument/codeAction
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler"
}


[Info  - 12:18:48 pm] Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions"
}


[Info  - 12:18:48 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Document Selector [powershell]"
}


[Info  - 12:18:48 pm] Document Selector [powershell]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])"
}


[Info  - 12:18:48 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Invocation of provider 'PsdDocumentSymbolProvider' completed in 62ms."
}


[Info  - 12:18:48 pm] Invocation of provider 'PsdDocumentSymbolProvider' completed in 62ms.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms."
}


[Info  - 12:18:48 pm] Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer"
}


[Info  - 12:18:48 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (2) textDocument/documentSymbol in 70ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (2) textDocument/documentSymbol in 70ms
[Trace - 12:18:48 pm] Received response 'textDocument/documentSymbol - (2)' in 112ms.
Result: [
    {
        "name": "test-function { }",
        "kind": 12,
        "deprecated": false,
        "location": {
            "uri": "file:///",
            "range": {
                "start": {
                    "line": 5,
                    "character": 0
                },
                "end": {
                    "line": 8,
                    "character": 1
                }
            }
        },
        "containerName": "test"
    }
]


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (3) textDocument/codeAction"
}


[Info  - 12:18:48 pm] Starting: Routing Request (3) textDocument/codeAction
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (3) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams"
}


[Info  - 12:18:48 pm] Converting params for Request (3) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer"
}


[Info  - 12:18:48 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (3) textDocument/codeAction in 8ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (3) textDocument/codeAction in 8ms
[Trace - 12:18:48 pm] Received response 'textDocument/codeAction - (3)' in 113ms.
Result: []


[Trace - 12:18:48 pm] Sending request 'textDocument/foldingRange - (4)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/repos/test/test.ps1"
    }
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for textDocument/foldingRange"
}


[Info  - 12:18:48 pm] Finding descriptor for textDocument/foldingRange
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1"
}


[Info  - 12:18:48 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Looking for handler for descriptors textDocument/foldingRange"
}


[Info  - 12:18:48 pm] Looking for handler for descriptors textDocument/foldingRange
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler"
}


[Info  - 12:18:48 pm] Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions"
}


[Info  - 12:18:48 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Document Selector [powershell]"
}


[Info  - 12:18:48 pm] Document Selector [powershell]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]], OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])"
}


[Info  - 12:18:48 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]], OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (4) textDocument/foldingRange"
}


[Info  - 12:18:48 pm] Starting: Routing Request (4) textDocument/foldingRange
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (4) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam"
}


[Info  - 12:18:48 pm] Converting params for Request (4) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Resolved path: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Resolved path: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]], OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]], OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRange, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (4) textDocument/foldingRange in 5ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (4) textDocument/foldingRange in 5ms
[Trace - 12:18:48 pm] Received response 'textDocument/foldingRange - (4)' in 11ms.
Result: [
    {
        "startLine": 5,
        "startCharacter": 23,
        "endLine": 7,
        "endCharacter": 1
    }
]


[Trace - 12:18:48 pm] Sending request 'textDocument/codeLens - (5)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/repos/test/test.ps1"
    }
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for textDocument/codeLens"
}


[Info  - 12:18:48 pm] Finding descriptor for textDocument/codeLens
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1"
}


[Info  - 12:18:48 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Looking for handler for descriptors textDocument/codeLens"
}


[Info  - 12:18:48 pm] Looking for handler for descriptors textDocument/codeLens
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers"
}


[Info  - 12:18:48 pm] Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions"
}


[Info  - 12:18:48 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Document Selector [powershell]"
}


[Info  - 12:18:48 pm] Document Selector [powershell]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])"
}


[Info  - 12:18:48 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler`2[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]])
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (5) textDocument/codeLens"
}


[Info  - 12:18:48 pm] Starting: Routing Request (5) textDocument/codeLens
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (5) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams"
}


[Info  - 12:18:48 pm] Converting params for Request (5) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Resolved path: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Resolved path: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Invocation of provider 'ReferencesCodeLensProvider' completed in 7ms."
}


[Info  - 12:18:48 pm] Invocation of provider 'ReferencesCodeLensProvider' completed in 7ms.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Invocation of provider 'PesterCodeLensProvider' completed in 0ms."
}


[Info  - 12:18:48 pm] Invocation of provider 'PesterCodeLensProvider' completed in 0ms.
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers"
}


[Info  - 12:18:48 pm] Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer"
}


[Info  - 12:18:48 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (5) textDocument/codeLens in 10ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (5) textDocument/codeLens in 10ms
[Trace - 12:18:48 pm] Received response 'textDocument/codeLens - (5)' in 16ms.
Result: [
    {
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 8,
                "character": 1
            }
        },
        "data": {
            "data": {
                "Uri": "file:///c%3A/repos/test/test.ps1",
                "ProviderId": "ReferencesCodeLensProvider"
            },
            "$$___handlerType___$$": "Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers",
            "$$___handlerKey___$$": "[powershell]"
        }
    }
]


[Trace - 12:18:48 pm] Sending request 'codeLens/resolve - (6)'.
Params: {
    "range": {
        "start": {
            "line": 5,
            "character": 0
        },
        "end": {
            "line": 8,
            "character": 1
        }
    },
    "data": {
        "data": {
            "Uri": "file:///c%3A/repos/test/test.ps1",
            "ProviderId": "ReferencesCodeLensProvider"
        },
        "$$___handlerType___$$": "Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers",
        "$$___handlerKey___$$": "[powershell]"
    }
}


[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finding descriptor for codeLens/resolve"
}


[Info  - 12:18:48 pm] Finding descriptor for codeLens/resolve
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers"
}


[Info  - 12:18:48 pm] Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Starting: Routing Request (6) codeLens/resolve"
}


[Info  - 12:18:48 pm] Starting: Routing Request (6) codeLens/resolve
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Converting params for Request (6) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens"
}


[Info  - 12:18:48 pm] Converting params for Request (6) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Resolved path: c:\\repos\\test\\test.ps1"
}


[Info  - 12:18:48 pm] Resolved path: c:\repos\test\test.ps1
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]"
}


[Info  - 12:18:48 pm] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens, OmniSharp.Extensions.LanguageProtocol, Version=0.14.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens"
}


[Info  - 12:18:48 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens
[Trace - 12:18:48 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Finished: Routing Request (6) codeLens/resolve in 11ms"
}


[Info  - 12:18:48 pm] Finished: Routing Request (6) codeLens/resolve in 11ms
[Trace - 12:18:48 pm] Received response 'codeLens/resolve - (6)' in 19ms.
Result: {
    "range": {
        "start": {
            "line": 5,
            "character": 0
        },
        "end": {
            "line": 8,
            "character": 1
        }
    },
    "command": {
        "title": "1 reference",
        "command": "editor.action.showReferences",
        "arguments": [
            "file:///c%3A/repos/test/test.ps1",
            {
                "Line": 5,
                "Character": 0
            },
            [
                {
                    "Uri": "file:///c%3A/repos/test/test.ps1",
                    "Range": {
                        "Start": {
                            "Line": 1,
                            "Character": 0
                        },
                        "End": {
                            "Line": 1,
                            "Character": 13
                        }
                    }
                }
            ]
        ]
    },
    "data": {
        "Uri": "file:///c%3A/repos/test/test.ps1",
        "ProviderId": "ReferencesCodeLensProvider"
    }
}


[Trace - 12:18:49 pm] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Found 0 violations"
}


[Info  - 12:18:49 pm] Found 0 violations
[Trace - 12:18:49 pm] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c:/repos/test/test.ps1",
    "diagnostics": []
}

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

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.18362
VSCode 1.40.1
PowerShell Extension Version 2019.11.0

PowerShell Information

Name Value
PSVersion 7.0.0-preview.5
PSEdition Core
GitCommitId 7.0.0-preview.5
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.0.0 6.1.0 6.2.0 7.0.0-preview.5
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-account ms-vscode 0.8.7
azurerm-vscode-tools msazurermtools 0.8.2
csharp ms-vscode 1.21.7
gitlens eamodio 10.1.2
powershell-preview ms-vscode 2019.11.0
prettify-json mohsen1 0.0.3
remote-wsl ms-vscode-remote 0.40.3
xml DotJoshJohnson 2.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions