vscode-azure-account
vscode-azure-account copied to clipboard
Still can't use arrow keys or home/end keys in powershell cloud shell in vscode
Issue #78 describes my problem - but the solution doesn't seem to apply for me. I'm on windows build 18363, but I still experience the issue, where PowerShell Cloud Shell in vscode can't use arrow keys, home etc.
@tnsholding I'm having trouble reproducing this issue. My machine is also build 18363. What version of VSCode and the extension are you using, and does commenting out your settings file make any difference?
I'm on version 1.42.1 (user setup) of vscode. Azure Account extension version 1.042.223. And I have no custom settings. Could other extensions impact Azure Account extension? Running these extensions:
- aminecharot.azure-blueprints-generator
- bencoleman.armview
- DavidAnson.vscode-markdownlint
- ms-azure-devops.azure-pipelines
- ms-azuretools.vscode-azureterraform
- ms-vscode.azure-account
- ms-vscode.azurecli
- ms-vscode.powershell
- ms-vsts.team
- msazurermtools.azurerm-vscode-tools
- msjsdiag.vscode-react-native
- samcogan.arm-snippets
Thanks! I must have accidentally run the Bash command instead of Powershell, I'm able to consistently reproduce it now. The extensions don't have an impact.
@chrmarti On Windows, I'm seeing that https://github.com/microsoft/vscode-azure-account/blob/d652d3064aa75e1588dba7073fb706587ed2717a/src/cloudConsoleLauncher.ts#L258 is not hit when pressing the arrow keys, but is for other keystrokes. Is this expected? Also, how do you debug the CloudConsoleLauncher on MacOS? I see that it's not a separate node process there, so I wasn't sure how to attach to it
It's an Electron process (so you don't need Node.js installed) on Mac and Linux (that didn't work on Windows for some reason). I'd expect there to be something sent over the websocket a few lines above with ws.send
first and then a message returned as you suggest.
No idea if this is actually relevant or not, but the Up arrow also breaks for me in the cloud shell both on Azure Portal and within Windows Terminal, though it usually works for the first few minutes after I establish my session.
Still an issue, I don't know why #78 is closed. PoSh in cloud shell is barely usable because of this. Try using AzCopy with the inability to paste URL and SAS without being able to left/right through the command. It's unbelievably frustrating.
I still see this as an issue... On Azure portal working without problem. In VSCode other terminals are working fine ( local ps, wsl, even azure cloud bash :)) but Azure Cloud Powershell not.