[Trace - 10:18:21] Sending request 'initialize - (0)'. Params: { "processId": 17412, "rootPath": "c:\\Data\\PowerShell\\Miscellaneous\\Issues\\References not working", "rootUri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working", "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/Data/PowerShell/Miscellaneous/Issues/References%20not%20working", "name": "References not working" } ] } [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "PowerShell runtime version: 7.0.0, edition: Core" } [Info - 10:18:21] PowerShell runtime version: 7.0.0, edition: Core [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Setting execution policy:\r\n Current = ExecutionPolicy.Bypass\r\n Desired = ExecutionPolicy.RemoteSigned" } [Info - 10:18:21] Setting execution policy: Current = ExecutionPolicy.Bypass Desired = ExecutionPolicy.RemoteSigned [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Setting $profile variable in runspace. Current user host profile path: C:\\Users\\\\Documents\\PowerShell\\Microsoft.VSCode_profile.ps1" } [Info - 10:18:21] Setting $profile variable in runspace. Current user host profile path: C:\Users\\Documents\PowerShell\Microsoft.VSCode_profile.ps1 [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Attempting to execute command(s):\r\n\r\n Import-Module C:\\Users\\\\.vscode\\extensions\\ms-vscode.powershell-preview-2020.1.0\\modules\\PowerShellEditorServices\\Commands\\PowerShellEditorServices.Commands.psd1\r\n" } [Info - 10:18:21] Attempting to execute command(s): Import-Module C:\Users\\.vscode\extensions\ms-vscode.powershell-preview-2020.1.0\modules\PowerShellEditorServices\Commands\PowerShellEditorServices.Commands.psd1 [Trace - 10:18:21] 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 - 10:18:21] Session state changed -- Old state: Ready New state: Running Result: NotFinished [Trace - 10:18:21] 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 - 10:18:21] 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 - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "highlight handler loaded" } [Info - 10:18:21] highlight handler loaded [Trace - 10:18:21] 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 - 10:18:21] Session state changed -- Old state: Running New state: Ready Result: Completed [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Execution completed successfully." } [Info - 10:18:21] Execution completed successfully. [Trace - 10:18:21] 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 - 10:18:21] Attempting to execute command(s): Microsoft.PowerShell.Core\Import-Module -Name PowerShellEditorServices.VSCode [Trace - 10:18:21] 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 - 10:18:21] Session state changed -- Old state: Ready New state: Running Result: NotFinished [Trace - 10:18:21] 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 - 10:18:21] Session state changed -- Old state: Running New state: Ready Result: Completed [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Execution completed successfully." } [Info - 10:18:21] Execution completed successfully. [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for initialize" } [Info - 10:18:21] Finding descriptor for initialize [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (0) initialize" } [Info - 10:18:21] Starting: Routing Request (0) initialize [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams" } [Info - 10:18:21] Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working" } [Info - 10:18:21] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working [Trace - 10:18:21] 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 - 10:18:21] 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 - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult" } [Info - 10:18:21] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (0) initialize in 35ms" } [Info - 10:18:21] Finished: Routing Request (0) initialize in 35ms [Trace - 10:18:21] Received response 'initialize - (0)' in 933ms. Result: { "capabilities": { "textDocumentSync": 0, "hoverProvider": false, "definitionProvider": false, "referencesProvider": false, "documentHighlightProvider": false, "documentSymbolProvider": false, "workspaceSymbolProvider": false, "documentFormattingProvider": false, "documentRangeFormattingProvider": false, "experimental": {} } } [Trace - 10:18:21] Sending notification 'initialized'. Params: {} [Trace - 10:18:21] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": { "powershell": { "sideBar": { "CommandExplorerVisibility": true, "CommandExplorerExcludeFilter": [] }, "powerShellAdditionalExePaths": [], "powerShellDefaultVersion": "PowerShell Preview (x64)", "powerShellExePath": "", "promptToUpdatePowerShell": true, "startAsLoginShell": { "osx": true, "linux": false }, "startAutomatically": true, "useX86Host": false, "enableProfileLoading": true, "bugReporting": { "project": "https://github.com/PowerShell/vscode-powershell" }, "helpCompletion": "BlockComment", "scriptAnalysis": { "enable": true, "settingsPath": "C:\\Data\\PowerShell\\Modules\\psscriptanalyzer-custom-rules\\PSScriptAnalyzerSettings.psd1" }, "codeFolding": { "enable": true, "showLastLine": true }, "codeFormatting": { "autoCorrectAliases": true, "preset": "Custom", "openBraceOnSameLine": true, "newLineAfterOpenBrace": true, "newLineAfterCloseBrace": true, "pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline", "whitespaceBeforeOpenBrace": true, "whitespaceBeforeOpenParen": true, "whitespaceAroundOperator": true, "whitespaceAfterSeparator": true, "whitespaceInsideBrace": false, "whitespaceAroundPipe": true, "ignoreOneLineBlock": false, "alignPropertyValuePairs": true, "useCorrectCasing": true }, "integratedConsole": { "showOnStartup": true, "focusConsoleOnExecute": true, "useLegacyReadLine": false, "forceClearScrollbackBuffer": false, "suppressStartupBanner": false }, "debugging": { "createTemporaryIntegratedConsole": false }, "developer": { "bundledModulesPath": "", "editorServicesLogLevel": "Diagnostic", "editorServicesWaitForDebugger": false, "featureFlags": [ "PSReadLine" ] } } } } [Trace - 10:18:21] Sending request 'powerShell/getVersion - (1)'. [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for initialized" } [Info - 10:18:21] Finding descriptor for initialized [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for workspace/didChangeConfiguration" } [Info - 10:18:21] Finding descriptor for workspace/didChangeConfiguration [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for powerShell/getVersion" } [Info - 10:18:21] Finding descriptor for powerShell/getVersion [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Notification initialized" } [Info - 10:18:21] Starting: Routing Notification initialized [Trace - 10:18:21] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams" } [Info - 10:18:21] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams [Trace - 10:18:22] Received request 'client/registerCapability - (1)'. Params: { "registrations": [ { "id": "4f2f49e2-3f1f-4cff-b907-150dde576bd8", "method": "workspace/symbol", "registerOptions": {} }, { "id": "0ff47592-8006-4fa4-9d1a-f35dea2d70a1", "method": "textDocument/didChange", "registerOptions": { "syncKind": 2, "documentSelector": [ { "language": "powershell" } ] } }, { "id": "5ff459e9-4a0f-442e-b05d-f8964e2608f0", "method": "textDocument/didOpen", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "91ed53f2-1e0e-4abd-b4d6-230facdee9b2", "method": "textDocument/didClose", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "05e9634f-2fae-4f12-b1b3-623e79711ba4", "method": "textDocument/didSave", "registerOptions": { "includeText": true, "documentSelector": [ { "language": "powershell" } ] } }, { "id": "011a61c8-f19e-48fe-bc39-1eb9f3764817", "method": "workspace/didChangeConfiguration", "registerOptions": {} }, { "id": "7a43cb9a-88f8-4573-b00e-b56051de814b", "method": "textDocument/foldingRange", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "e2c26c5a-aa01-49e7-ae94-53b7a58e74b4", "method": "textDocument/formatting", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "b78af61c-1aa8-46b4-9905-fa060999c69f", "method": "textDocument/rangeFormatting", "registerOptions": { "documentSelector": [ { "pattern": "**/*.ps*1" } ] } }, { "id": "61606fae-7f2a-46d2-ab3e-2c43f1001e0b", "method": "textDocument/references", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "9d9072e1-ccc8-4a70-8be0-973cfa3bbefe", "method": "textDocument/documentSymbol", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "01715e57-1545-438a-b8d9-6b8a30d1e859", "method": "textDocument/documentHighlight", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "01f773fd-ccfc-4249-9058-766c2d9cb251", "method": "textDocument/codeLens", "registerOptions": { "resolveProvider": true, "documentSelector": [ { "language": "powershell" } ] } }, { "id": "8784f896-7d50-483a-bdeb-943a4ae9ece8", "method": "textDocument/codeAction", "registerOptions": { "codeActionKinds": [ "quickfix" ], "documentSelector": [ { "language": "powershell" } ] } }, { "id": "5c0cdc34-41ee-4ec7-a63c-0cd684090df3", "method": "textDocument/completion", "registerOptions": { "triggerCharacters": [ ".", "-", ":", "\\" ], "resolveProvider": true, "documentSelector": [ { "language": "powershell" } ] } }, { "id": "e39554a2-938e-4c74-89aa-1b84aeadeed1", "method": "textDocument/hover", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } }, { "id": "a861c78e-8e92-4969-9687-2fc97353792b", "method": "textDocument/signatureHelp", "registerOptions": { "triggerCharacters": [ " " ], "documentSelector": [ { "language": "powershell" } ] } }, { "id": "ba465f53-88c1-472b-8f92-c89d3c53ba85", "method": "textDocument/definition", "registerOptions": { "documentSelector": [ { "language": "powershell" } ] } } ] } [Trace - 10:18:22] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "languageId": "powershell", "version": 1, "text": "Clear-Host\r\n\r\nImport-Module .\\TestModule.psm1\r\n\r\nfunction Y {\r\n Write-Host 'Function Y called'\r\n}\r\n\r\nx\r\n\r\nY\r\n" } } [Trace - 10:18:22] Sending response 'client/registerCapability - (1)'. Processing request took 3ms No result returned. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Notification initialized in 121ms" } [Info - 10:18:22] Finished: Routing Notification initialized in 121ms [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Notification workspace/didChangeConfiguration" } [Info - 10:18:22] Starting: Routing Notification workspace/didChangeConfiguration [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Notification workspace/didChangeConfiguration to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeConfigurationParams" } [Info - 10:18:22] Converting params for Notification workspace/didChangeConfiguration to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeConfigurationParams [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Using Script Analyzer settings path - 'C:\\Data\\PowerShell\\Modules\\psscriptanalyzer-custom-rules\\PSScriptAnalyzerSettings.psd1'." } [Info - 10:18:22] Using Script Analyzer settings path - 'C:\Data\PowerShell\Modules\psscriptanalyzer-custom-rules\PSScriptAnalyzerSettings.psd1'. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for textDocument/didOpen" } [Info - 10:18:22] Finding descriptor for textDocument/didOpen [Trace - 10:18:22] Received notification 'powerShell/executionStatusChanged'. Params: { "executionOptions": { "writeOutputToHost": true, "writeErrorsToHost": true, "addToHistory": false, "interruptCommandPrompt": false, "writeInputToHost": false }, "executionStatus": 1, "hadErrors": false } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Attempting to execute command(s):\r\n\r\n C:\\Users\\\\Documents\\PowerShell\\profile.ps1\r\n Out-Default\r\n" } [Info - 10:18:22] Attempting to execute command(s): C:\Users\\Documents\PowerShell\profile.ps1 Out-Default [Trace - 10:18:22] 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 - 10:18:22] Session state changed -- Old state: Ready New state: Running Result: NotFinished [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Created attribute powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1" } [Info - 10:18:22] Created attribute powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Looking for handler for descriptors textDocument/didOpen" } [Info - 10:18:22] Looking for handler for descriptors textDocument/didOpen [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler" } [Info - 10:18:22] Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions" } [Info - 10:18:22] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Document Selector [powershell]" } [Info - 10:18:22] Document Selector [powershell] [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Sending request 'textDocument/documentSymbol - (2)'. Params: { "textDocument": { "uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } } [Trace - 10:18:22] Sending request 'textDocument/codeAction - (3)'. Params: { "textDocument": { "uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" }, "range": { "start": { "line": 8, "character": 1 }, "end": { "line": 8, "character": 1 } }, "context": { "diagnostics": [] } } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for textDocument/documentSymbol" } [Info - 10:18:22] Finding descriptor for textDocument/documentSymbol [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1" } [Info - 10:18:22] Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Looking for handler for descriptors textDocument/documentSymbol" } [Info - 10:18:22] Looking for handler for descriptors textDocument/documentSymbol [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler" } [Info - 10:18:22] Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions" } [Info - 10:18:22] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Document Selector [powershell]" } [Info - 10:18:22] Document Selector [powershell] [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for textDocument/codeAction" } [Info - 10:18:22] Finding descriptor for textDocument/codeAction [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1" } [Info - 10:18:22] Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Looking for handler for descriptors textDocument/codeAction" } [Info - 10:18:22] Looking for handler for descriptors textDocument/codeAction [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler" } [Info - 10:18:22] Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions" } [Info - 10:18:22] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Document Selector [powershell]" } [Info - 10:18:22] Document Selector [powershell] [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Sending request 'textDocument/foldingRange - (4)'. Params: { "textDocument": { "uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for textDocument/foldingRange" } [Info - 10:18:22] Finding descriptor for textDocument/foldingRange [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1" } [Info - 10:18:22] Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Looking for handler for descriptors textDocument/foldingRange" } [Info - 10:18:22] Looking for handler for descriptors textDocument/foldingRange [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler" } [Info - 10:18:22] Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions" } [Info - 10:18:22] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Document Selector [powershell]" } [Info - 10:18:22] Document Selector [powershell] [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Sending request 'textDocument/codeLens - (5)'. Params: { "textDocument": { "uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for textDocument/codeLens" } [Info - 10:18:22] Finding descriptor for textDocument/codeLens [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1" } [Info - 10:18:22] Found attributes 1, powershell::file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References not working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Looking for handler for descriptors textDocument/codeLens" } [Info - 10:18:22] Looking for handler for descriptors textDocument/codeLens [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers" } [Info - 10:18:22] Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions" } [Info - 10:18:22] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Document Selector [powershell]" } [Info - 10:18:22] Document Selector [powershell] [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Session state changed -- Old state: Running New state: Ready Result: Completed [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Execution completed successfully." } [Info - 10:18:22] Execution completed successfully. [Trace - 10:18:22] Received notification 'powerShell/executionStatusChanged'. Params: { "executionOptions": { "writeOutputToHost": true, "writeErrorsToHost": true, "addToHistory": false, "interruptCommandPrompt": false, "writeInputToHost": false }, "executionStatus": 4, "hadErrors": false } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "StartReadLoop called while read loop is already running" } [Info - 10:18:22] StartReadLoop called while read loop is already running [Trace - 10:18:22] Received notification 'powerShell/executionStatusChanged'. Params: { "executionOptions": { "writeOutputToHost": false, "writeErrorsToHost": false, "addToHistory": false, "interruptCommandPrompt": false, "writeInputToHost": false }, "executionStatus": 1, "hadErrors": false } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Attempting to execute command(s):\r\n\r\n prompt\r\n" } [Info - 10:18:22] Attempting to execute command(s): prompt [Trace - 10:18:22] 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 - 10:18:22] Session state changed -- Old state: Ready New state: Running Result: NotFinished [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Notification workspace/didChangeConfiguration in 713ms" } [Info - 10:18:22] Finished: Routing Notification workspace/didChangeConfiguration in 713ms [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (1) powerShell/getVersion" } [Info - 10:18:22] Starting: Routing Request (1) powerShell/getVersion [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (1) powerShell/getVersion to Microsoft.PowerShell.EditorServices.Handlers.GetVersionParams" } [Info - 10:18:22] Converting params for Request (1) powerShell/getVersion to Microsoft.PowerShell.EditorServices.Handlers.GetVersionParams [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion" } [Info - 10:18:22] Response value was Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (1) powerShell/getVersion in 2ms" } [Info - 10:18:22] Finished: Routing Request (1) powerShell/getVersion in 2ms [Trace - 10:18:22] Received response 'powerShell/getVersion - (1)' in 846ms. Result: { "version": "7.0.0-rc.1", "displayVersion": "7.0", "edition": "Core", "architecture": "X64" } [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Notification textDocument/didOpen" } [Info - 10:18:22] Starting: Routing Notification textDocument/didOpen [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams" } [Info - 10:18:22] Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:22] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Opened file as in-memory buffer: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:22] Opened file as in-memory buffer: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished opening document." } [Info - 10:18:22] Finished opening document. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Notification textDocument/didOpen in 7ms" } [Info - 10:18:22] Finished: Routing Notification textDocument/didOpen in 7ms [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (2) textDocument/documentSymbol" } [Info - 10:18:22] Starting: Routing Request (2) textDocument/documentSymbol [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (2) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams" } [Info - 10:18:22] Converting params for Request (2) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:22] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Invocation of provider 'ScriptDocumentSymbolProvider' completed in 2ms." } [Info - 10:18:22] Invocation of provider 'ScriptDocumentSymbolProvider' completed in 2ms. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Invocation of provider 'PsdDocumentSymbolProvider' completed in 42ms." } [Info - 10:18:22] Invocation of provider 'PsdDocumentSymbolProvider' completed in 42ms. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms." } [Info - 10:18:22] Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms. [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer" } [Info - 10:18:22] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (2) textDocument/documentSymbol in 51ms" } [Info - 10:18:22] Finished: Routing Request (2) textDocument/documentSymbol in 51ms [Trace - 10:18:22] Received response 'textDocument/documentSymbol - (2)' in 747ms. Result: [ { "name": "Y { }", "kind": 12, "deprecated": false, "location": { "uri": "file:///", "range": { "start": { "line": 4, "character": 0 }, "end": { "line": 6, "character": 1 } } }, "containerName": "Test" } ] [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (3) textDocument/codeAction" } [Info - 10:18:22] Starting: Routing Request (3) textDocument/codeAction [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (3) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams" } [Info - 10:18:22] Converting params for Request (3) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer" } [Info - 10:18:22] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (3) textDocument/codeAction in 3ms" } [Info - 10:18:22] Finished: Routing Request (3) textDocument/codeAction in 3ms [Trace - 10:18:22] Received response 'textDocument/codeAction - (3)' in 749ms. Result: [] [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (4) textDocument/foldingRange" } [Info - 10:18:22] Starting: Routing Request (4) textDocument/foldingRange [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (4) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam" } [Info - 10:18:22] Converting params for Request (4) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:22] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (4) textDocument/foldingRange in 2ms" } [Info - 10:18:22] Finished: Routing Request (4) textDocument/foldingRange in 2ms [Trace - 10:18:22] Received response 'textDocument/foldingRange - (4)' in 562ms. Result: [ { "startLine": 4, "startCharacter": 11, "endLine": 5, "endCharacter": 1 } ] [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (5) textDocument/codeLens" } [Info - 10:18:22] Starting: Routing Request (5) textDocument/codeLens [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (5) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams" } [Info - 10:18:22] Converting params for Request (5) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:22] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Invocation of provider 'ReferencesCodeLensProvider' completed in 2ms." } [Info - 10:18:22] Invocation of provider 'ReferencesCodeLensProvider' completed in 2ms. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Invocation of provider 'PesterCodeLensProvider' completed in 0ms." } [Info - 10:18:22] Invocation of provider 'PesterCodeLensProvider' completed in 0ms. [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers" } [Info - 10:18:22] Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Trace - 10:18:22] 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 - 10:18:22] 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 - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer" } [Info - 10:18:22] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer [Trace - 10:18:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (5) textDocument/codeLens in 4ms" } [Info - 10:18:22] Finished: Routing Request (5) textDocument/codeLens in 4ms [Trace - 10:18:22] Received response 'textDocument/codeLens - (5)' in 515ms. Result: [ { "range": { "start": { "line": 4, "character": 0 }, "end": { "line": 6, "character": 1 } }, "data": { "data": { "Uri": "file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "ProviderId": "ReferencesCodeLensProvider" }, "$$___handlerType___$$": "Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers", "$$___handlerKey___$$": "[powershell]" } } ] [Trace - 10:18:23] Sending request 'codeLens/resolve - (6)'. Params: { "range": { "start": { "line": 4, "character": 0 }, "end": { "line": 6, "character": 1 } }, "data": { "data": { "Uri": "file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "ProviderId": "ReferencesCodeLensProvider" }, "$$___handlerType___$$": "Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers", "$$___handlerKey___$$": "[powershell]" } } [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finding descriptor for codeLens/resolve" } [Info - 10:18:23] Finding descriptor for codeLens/resolve [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers" } [Info - 10:18:23] Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Starting: Routing Request (6) codeLens/resolve" } [Info - 10:18:23] Starting: Routing Request (6) codeLens/resolve [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Converting params for Request (6) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens" } [Info - 10:18:23] Converting params for Request (6) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1" } [Info - 10:18:23] Resolved path: file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1 [Trace - 10:18:23] 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 - 10:18:23] 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 - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens" } [Info - 10:18:23] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Finished: Routing Request (6) codeLens/resolve in 14ms" } [Info - 10:18:23] Finished: Routing Request (6) codeLens/resolve in 14ms [Trace - 10:18:23] Received response 'codeLens/resolve - (6)' in 27ms. Result: { "range": { "start": { "line": 4, "character": 0 }, "end": { "line": 6, "character": 1 } }, "command": { "title": "1 reference", "command": "editor.action.showReferences", "arguments": [ "file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", { "Line": 4, "Character": 0 }, [ { "Uri": "file:///c%3A/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "Range": { "Start": { "Line": 10, "Character": 0 }, "End": { "Line": 10, "Character": 1 } } } ] ] }, "data": { "Uri": "file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "ProviderId": "ReferencesCodeLensProvider" } } [Trace - 10:18:23] 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 - 10:18:23] Session state changed -- Old state: Running New state: Ready Result: Completed [Trace - 10:18:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Execution completed successfully." } [Info - 10:18:23] Execution completed successfully. [Trace - 10:18:23] Received notification 'powerShell/executionStatusChanged'. Params: { "executionOptions": { "writeOutputToHost": false, "writeErrorsToHost": false, "addToHistory": false, "interruptCommandPrompt": false, "writeInputToHost": false }, "executionStatus": 4, "hadErrors": false } [Trace - 10:18:23] 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 - 10:18:23] 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 - 10:18:27] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Found 0 violations" } [Info - 10:18:27] Found 0 violations [Trace - 10:18:27] Received notification 'textDocument/publishDiagnostics'. Params: { "uri": "file:///c:/Data/PowerShell/Miscellaneous/Issues/References%20not%20working/Test.ps1", "diagnostics": [] }