Constant LSP Issues and Poor Performance on Windows
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
I am having the worst time getting Amazon Q to run properly on VS Code for Windows. I constantly get errors about the LSP server and I get thrown back to the Select Q Developer Profile and being forced to reauthenticate. It's super annoying and I'm not having any connectivity issues at all. All the while it will stick on "Thinking" or just sit blankly until the end of time.
2025-05-22 17:05:25.826 [info] [Info - 5:05:25 PM] [VSCode Client] Received {"command":"telemetry/event","params":{"triggerType":"click","tabId":"jgd9uz","name":"addMessage"}} from chat
2025-05-22 17:05:25.830 [info] [2025-05-22T21:05:25.827Z] Received chat prompt
2025-05-22 17:05:25.837 [info] [Info - 5:05:25 PM] [2025-05-22T21:05:25.834Z] Fixing history: tabId=jgd9uz, historyId=undefined
2025-05-22 17:05:25.838 [info] [2025-05-22T21:05:25.834Z] Getting messages for tabId=jgd9uz, historyId=undefined, numMessages=undefined
2025-05-22 17:05:25.839 [info] [2025-05-22T21:05:25.837Z] Amazon Q Token Service Manager: Getting instance of CodeWhispererStreaming client
2025-05-22 17:05:25.842 [info] [Info - 5:05:25 PM] [Telemetry] Emitting amazonq_messageResponseError telemetry: {"cwsprChatHasCodeSnippet":false,"cwsprChatTriggerInteraction":"click","cwsprChatActiveEditorTotalCharacters":0,"cwsprChatResponseCode":0,"cwsprChatRequestLength":52,"cwsprChatConversationType":"AgenticChat","requestId":"","reasonDesc":"Amazon Q Profile is not selected for IDC connection type","credentialStartUrl":"https://d-906632d976.awsapps.com/start","result":"Succeeded","languageServerVersion":"1.3.0"}
2025-05-22 17:05:25.843 [info] [2025-05-22T21:05:25.841Z] Q auth error: Amazon Q Profile is not selected for IDC connection type
2025-05-22 17:05:27.587 [info] [Info - 5:05:27 PM] [VSCode Client] Received {"command":"authFollowUpClicked","params":{"tabId":"jgd9uz","messageId":"TEMP_owbvyu","authFollowupType":"use-supported-auth"}} from chat
2025-05-22 17:05:27.587 [info] [Info - 5:05:27 PM] [VSCode Client] AuthFollowUp clicked
2025-05-22 17:05:27.588 [info] [Info - 5:05:27 PM] [VSCode Client] Received {"command":"telemetry/event","params":{"tabId":"jgd9uz","messageId":"TEMP_owbvyu","authFollowupType":"use-supported-auth","name":"authFollowupClicked"}} from chat
2025-05-22 17:05:27.589 [info] auth: logout
2025-05-22 17:05:27.622 [info] auth: Invalidating connection: c9d0019f-4442-4151-9654-2c8faf99a435
2025-05-22 17:05:27.872 [warning] credentials (sso): invalidating stored token: Session token not found or invalid
2025-05-22 17:05:27.872 [info] SsoAccessTokenProvider: invalidate token and registration
2025-05-22 17:05:27.875 [warning] auth: failed to logout of connection "c9d0019f-4442-4151-9654-2c8faf99a435": UnauthorizedException: Session token not found or invalid
2025-05-22 17:05:27.876 [info] SsoAccessTokenProvider: invalidate token and registration
2025-05-22 17:05:27.893 [info] auth: Updating connection state of c9d0019f-4442-4151-9654-2c8faf99a435 to invalid
2025-05-22 17:05:27.927 [info] secondaryAuth: connectionId=c9d0019f-4442-4151-9654-2c8faf99a435, connectionStatus=invalid
2025-05-22 17:05:27.928 [info] codewhisperer: connection states
connection isValid=false,
connection isValidCodewhispererCoreConnection=true,
connection isExpired=true,
secondaryAuth isExpired=true,
connection isUndefined=false
2025-05-22 17:05:27.928 [info] codewhisperer: active connection changed
2025-05-22 17:05:27.928 [info] codewhisperer: connection changed to invalid: c9d0019f-4442-4151-9654-2c8faf99a435
2025-05-22 17:05:27.933 [info] secondaryAuth: connectionId=c9d0019f-4442-4151-9654-2c8faf99a435, connectionStatus=undefined
2025-05-22 17:05:27.933 [info] codewhisperer: connection states
connection isValid=true,
connection isValidCodewhispererCoreConnection=true,
connection isExpired=false,
secondaryAuth isExpired=false,
connection isUndefined=false
025-05-22 17:25:42.653 [info] [Info - 5:25:42 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:42.655 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\qserver-win32-x64\qserver\lspServer.js --nolazy --preserve-symlinks --stdio]
2025-05-22 17:25:42.679 [info] [Info - 5:25:42 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:42.680 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\aws-lsp-codewhisperer.js --nolazy --preserve-symlinks --stdio --pre-init-encryption --set-credentials-encryption-key]
2025-05-22 17:25:42.803 [info] [Info - 5:25:42 PM] LSP server starts
2025-05-22 17:25:43.114 [info] [Info - 5:25:43 PM] Loaded model from C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\qserver-win32-x64\qserver
2025-05-22 17:25:43.338 [info] [Warn - 5:25:43 PM] Unknown tokenizer class "CodeSageTokenizer", attempting to construct from base class.
2025-05-22 17:25:43.491 [info] [Info - 5:25:43 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:43.492 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\aws-lsp-codewhisperer.js --nolazy --preserve-symlinks --stdio --pre-init-encryption --set-credentials-encryption-key]
2025-05-22 17:25:43.516 [info] [Info - 5:25:43 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:43.517 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\qserver-win32-x64\qserver\lspServer.js --nolazy --preserve-symlinks --stdio]
2025-05-22 17:25:43.653 [info] [Info - 5:25:43 PM] LSP server starts
2025-05-22 17:25:43.870 [info] [Info - 5:25:43 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:43.870 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\aws-lsp-codewhisperer.js --nolazy --preserve-symlinks --stdio --pre-init-encryption --set-credentials-encryption-key]
2025-05-22 17:25:43.892 [info] [Info - 5:25:43 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:43.893 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\qserver-win32-x64\qserver\lspServer.js --nolazy --preserve-symlinks --stdio]
2025-05-22 17:25:44.014 [info] [Info - 5:25:44 PM] LSP server starts
2025-05-22 17:25:44.268 [info] [Info - 5:25:44 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:44.269 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ\1.3.0\servers\aws-lsp-codewhisperer.js --nolazy --preserve-symlinks --stdio --pre-init-encryption --set-credentials-encryption-key]
2025-05-22 17:25:44.294 [info] [Info - 5:25:44 PM] Connection to server got closed. Server will restart.
2025-05-22 17:25:44.295 [info] Command: (not started) [C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\node.exe C:\Users\DTS\AppData\Local\aws\toolkits\language-servers\AmazonQ-Workspace\0.1.47\qserver-win32-x64\qserver\lspServer.js --nolazy --preserve-symlinks --stdio]
2025-05-22 17:25:44.432 [info] [Info - 5:25:44 PM] LSP server starts
2025-05-22 17:25:44.671 [info] [Error - 5:25:44 PM] Connection to server got closed. Server will not be restarted.
2025-05-22 17:25:44.671 [info] [Error - 5:25:44 PM] Connection to server got closed. Server will not be restarted.
2025-05-22 17:26:03.054 [info] [Info - 5:26:03 PM] [VSCode Client] Received {"command":"telemetry/event","params":{"name":"enterFocus"}} from chat
2025-05-22 17:26:13.865 [info] [Info - 5:26:13 PM] [VSCode Client] Received {"command":"stopChatResponse","params":{"tabId":"z9h9n6"}} from chat
## System details (run `AWS: About` and/or `Amazon Q: About`)
OS: Windows_NT x64 10.0.19045
Visual Studio Code extension host: 1.100.2
Amazon Q: 1.68.0
node: 20.19.0
electron: 34.5.1
Contributor guide
Research direction
Start by reproducing the Windows failure using the reported VS Code, Amazon Q, Node, and Electron versions, then inspect the logged aws-lsp-codewhisperer.js and qserver/lspServer.js launches alongside the Amazon Q authentication errors. Done means the LSP no longer repeatedly closes, chat does not remain blank or stuck on Thinking, and the user is not repeatedly forced to reauthenticate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, node.js, typescript, vscode
- Domain
- authentication, devtools, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100