vscode-azure-account icon indicating copy to clipboard operation
vscode-azure-account copied to clipboard

Still can't use arrow keys or home/end keys in powershell cloud shell in vscode

Open tnsholding opened this issue 5 years ago • 7 comments

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 avatar Feb 27 '20 10:02 tnsholding

@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?

RMacfarlane avatar Mar 02 '20 18:03 RMacfarlane

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

tnsholding avatar Mar 03 '20 08:03 tnsholding

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

RMacfarlane avatar Mar 03 '20 18:03 RMacfarlane

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.

chrmarti avatar Mar 03 '20 21:03 chrmarti

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.

DannyMeister avatar Aug 04 '20 16:08 DannyMeister

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.

bferg317-perrigo avatar Nov 04 '21 18:11 bferg317-perrigo

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.

mlomat avatar Aug 22 '22 10:08 mlomat