-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell Preview: References aren't working across workspace #2306
PowerShell Preview: References aren't working across workspace #2306
Comments
@muzzar78 thanks for opening this issue and providing logs. We have identified the bug and @TylerLeonhardt is currently working on a fix...thanks! |
Fix out for this ^ |
Hey, just got the update preview extension today and still something isn't right. Here are the editor services logs [Trace - 4:32:00 pm] Sending request 'initialize - (0)'. [Trace - 4:32:01 pm] Received notification 'window/logMessage'. [Info - 4:32:01 pm] PowerShell runtime version: 6.2.3, edition: Core [Info - 4:32:01 pm] highlight handler loaded [Info - 4:32:01 pm] Resolved path: c:\repos\test [Info - 4:32:01 pm] Attempting to execute command(s):
[Trace - 4:32:01 pm] Received notification 'window/logMessage'. [Info - 4:32:01 pm] Session state changed --
[Trace - 4:32:01 pm] Received notification 'window/logMessage'. [Info - 4:32:01 pm] Session state changed --
[Trace - 4:32:01 pm] Received notification 'window/logMessage'. [Info - 4:32:01 pm] Execution completed successfully. [Info - 4:32:01 pm] Result was System.Runtime.CompilerServices.AsyncTaskMethodBuilder [Info - 4:32:01 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult [Info - 4:32:01 pm] Finished: Routing Request (0) initialize in 128ms [Trace - 4:32:01 pm] Sending notification 'initialized'. [Trace - 4:32:01 pm] Sending notification 'workspace/didChangeConfiguration'. [Trace - 4:32:01 pm] Sending request 'powerShell/getVersion - (1)'. [Info - 4:32:01 pm] Finding descriptor for initialized [Info - 4:32:01 pm] Finding descriptor for workspace/didChangeConfiguration [Info - 4:32:01 pm] Finding descriptor for powerShell/getVersion [Info - 4:32:01 pm] Starting: Routing Notification initialized [Info - 4:32:01 pm] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams [Trace - 4:32:02 pm] Sending notification 'textDocument/didOpen'. [Trace - 4:32:02 pm] Sending notification 'textDocument/didOpen'. [Trace - 4:32:02 pm] Sending response 'client/registerCapability - (1)'. Processing request took 7ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Finished: Routing Notification initialized in 152ms [Info - 4:32:02 pm] Starting: Routing Notification workspace/didChangeConfiguration [Info - 4:32:02 pm] Converting params for Notification workspace/didChangeConfiguration to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidChangeConfigurationParams [Info - 4:32:02 pm] Finding descriptor for textDocument/didOpen [Info - 4:32:02 pm] Using Script Analyzer settings path - ''. [Info - 4:32:02 pm] Created attribute powershell::file:///c%3A/repos/test/test2.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/didOpen [Info - 4:32:02 pm] Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finding descriptor for textDocument/didOpen [Info - 4:32:02 pm] Created attribute powershell::file:///c%3A/repos/test/test.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/didOpen [Info - 4:32:02 pm] Checking handler textDocument/didOpen:Microsoft.PowerShell.EditorServices.Handlers.TextDocumentHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finished: Routing Notification workspace/didChangeConfiguration in 51ms [Info - 4:32:02 pm] Starting: Routing Request (1) powerShell/getVersion [Info - 4:32:02 pm] Converting params for Request (1) powerShell/getVersion to Microsoft.PowerShell.EditorServices.Handlers.GetVersionParams [Trace - 4:32:02 pm] Sending request 'textDocument/documentSymbol - (3)'. [Trace - 4:32:02 pm] Sending request 'textDocument/codeAction - (4)'. [Trace - 4:32:02 pm] Sending request 'textDocument/codeAction - (5)'. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was Microsoft.PowerShell.EditorServices.Handlers.PowerShellVersion [Info - 4:32:02 pm] Finished: Routing Request (1) powerShell/getVersion in 4ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Notification textDocument/didOpen [Info - 4:32:02 pm] Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams [Info - 4:32:02 pm] Finding descriptor for textDocument/documentSymbol [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Attempting to execute command(s):
[Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Session state changed --
[Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test2.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/documentSymbol [Info - 4:32:02 pm] Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finding descriptor for textDocument/documentSymbol [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/documentSymbol [Info - 4:32:02 pm] Checking handler textDocument/documentSymbol:Microsoft.PowerShell.EditorServices.Handlers.DocumentSymbolHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finding descriptor for textDocument/codeAction [Info - 4:32:02 pm] Opened file as in-memory buffer: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Finished opening document. [Info - 4:32:02 pm] Finished: Routing Notification textDocument/didOpen in 25ms [Info - 4:32:02 pm] Starting: Routing Notification textDocument/didOpen [Info - 4:32:02 pm] Converting params for Notification textDocument/didOpen to OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Opened file as in-memory buffer: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Finished opening document. [Info - 4:32:02 pm] Finished: Routing Notification textDocument/didOpen in 1ms [Info - 4:32:02 pm] Starting: Routing Request (2) textDocument/documentSymbol [Info - 4:32:02 pm] Converting params for Request (2) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test2.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/codeAction [Info - 4:32:02 pm] Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finding descriptor for textDocument/codeAction [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/codeAction [Info - 4:32:02 pm] Checking handler textDocument/codeAction:Microsoft.PowerShell.EditorServices.Handlers.CodeActionHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Invocation of provider 'ScriptDocumentSymbolProvider' completed in 7ms. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Session state changed --
[Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Execution completed successfully. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Attempting to execute command(s):
[Trace - 4:32:02 pm] Sending request 'textDocument/foldingRange - (6)'. [Trace - 4:32:02 pm] Sending request 'textDocument/foldingRange - (7)'. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Finding descriptor for textDocument/foldingRange [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test2.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/foldingRange [Info - 4:32:02 pm] Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler [Info - 4:32:02 pm] Finding descriptor for textDocument/foldingRange [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/foldingRange [Info - 4:32:02 pm] Checking handler textDocument/foldingRange:Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 pm] Handler Selected: Microsoft.PowerShell.EditorServices.Handlers.FoldingRangeHandler via [powershell] (targeting OmniSharp.Extensions.JsonRpc.IJsonRpcRequestHandler [Trace - 4:32:02 pm] Sending request 'textDocument/codeLens - (9)'. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Finding descriptor for textDocument/codeLens [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test2.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/codeLens [Info - 4:32:02 pm] Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Finding descriptor for textDocument/codeLens [Info - 4:32:02 pm] Found attributes 1, powershell::file:///c%3A/repos/test/test.ps1 [Info - 4:32:02 pm] Looking for handler for descriptors textDocument/codeLens [Info - 4:32:02 pm] Checking handler textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 pm] Registration options OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensRegistrationOptions [Info - 4:32:02 pm] Document Selector [powershell] [Info - 4:32:02 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]]) [Info - 4:32:02 pm] Invocation of provider 'PsdDocumentSymbolProvider' completed in 220ms. [Info - 4:32:02 pm] Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms. [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer [Info - 4:32:02 pm] Finished: Routing Request (2) textDocument/documentSymbol in 248ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (3) textDocument/documentSymbol [Info - 4:32:02 pm] Converting params for Request (3) textDocument/documentSymbol to OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentSymbolParams [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Invocation of provider 'ScriptDocumentSymbolProvider' completed in 0ms. [Info - 4:32:02 pm] Invocation of provider 'PsdDocumentSymbolProvider' completed in 0ms. [Info - 4:32:02 pm] Invocation of provider 'PesterDocumentSymbolProvider' completed in 0ms. [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.SymbolInformationOrDocumentSymbolContainer [Info - 4:32:02 pm] Finished: Routing Request (3) textDocument/documentSymbol in 1ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (4) textDocument/codeAction [Info - 4:32:02 pm] Converting params for Request (4) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer [Info - 4:32:02 pm] Finished: Routing Request (4) textDocument/codeAction in 11ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (5) textDocument/codeAction [Info - 4:32:02 pm] Converting params for Request (5) textDocument/codeAction to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeActionParams [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CommandOrCodeActionContainer [Info - 4:32:02 pm] Finished: Routing Request (5) textDocument/codeAction in 2ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (6) textDocument/foldingRange [Info - 4:32:02 pm] Converting params for Request (6) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Result was System.Threading.Tasks.Task [Info - 4:32:02 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]] [Info - 4:32:02 pm] Finished: Routing Request (6) textDocument/foldingRange in 12ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (7) textDocument/foldingRange [Info - 4:32:02 pm] Converting params for Request (7) textDocument/foldingRange to OmniSharp.Extensions.LanguageServer.Protocol.Models.FoldingRangeRequestParam [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Result was System.Threading.Tasks.Task [Info - 4:32:02 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]] [Info - 4:32:02 pm] Finished: Routing Request (7) textDocument/foldingRange in 1ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (8) textDocument/codeLens [Info - 4:32:02 pm] Converting params for Request (8) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Invocation of provider 'ReferencesCodeLensProvider' completed in 5ms. [Info - 4:32:02 pm] Invocation of provider 'PesterCodeLensProvider' completed in 0ms. [Info - 4:32:02 pm] Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer [Info - 4:32:02 pm] Finished: Routing Request (8) textDocument/codeLens in 14ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (9) textDocument/codeLens [Info - 4:32:02 pm] Converting params for Request (9) textDocument/codeLens to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensParams [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Invocation of provider 'ReferencesCodeLensProvider' completed in 0ms. [Info - 4:32:02 pm] Invocation of provider 'PesterCodeLensProvider' completed in 0ms. [Info - 4:32:02 pm] Updating Resolve items with wrapped data for textDocument/codeLens:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLensContainer [Info - 4:32:02 pm] Finished: Routing Request (9) textDocument/codeLens in 1ms [Trace - 4:32:02 pm] Sending request 'codeLens/resolve - (10)'. [Trace - 4:32:02 pm] Sending request 'codeLens/resolve - (11)'. [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Finding descriptor for codeLens/resolve [Info - 4:32:02 pm] Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 pm] Starting: Routing Request (10) codeLens/resolve [Info - 4:32:02 pm] Converting params for Request (10) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Info - 4:32:02 pm] Finding descriptor for codeLens/resolve [Info - 4:32:02 pm] Checking handler codeLens/resolve:Microsoft.PowerShell.EditorServices.Handlers.CodeLensHandlers [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Info - 4:32:02 pm] Finished: Routing Request (10) codeLens/resolve in 45ms [Trace - 4:32:02 pm] Received notification 'window/logMessage'. [Info - 4:32:02 pm] Starting: Routing Request (11) codeLens/resolve [Info - 4:32:02 pm] Converting params for Request (11) codeLens/resolve to OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Info - 4:32:02 pm] Resolved path: c:\repos\test\test.ps1 [Info - 4:32:02 pm] Resolved path: c:\repos\test\test2.ps1 [Info - 4:32:02 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]] [Info - 4:32:02 pm] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.CodeLens [Info - 4:32:02 pm] Finished: Routing Request (11) codeLens/resolve in 2ms [Trace - 4:32:03 pm] Received notification 'window/logMessage'. [Info - 4:32:03 pm] Found 0 violations |
This is a new issue. I'll get a new one going. |
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
Non-Preview Working
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: