Downloading the VS Code server failed before, leading to residual data. As a result, new download cannot be performed.
Method 1 (performed locally): Open the command panel (Ctrl+Shift+P for Windows and Cmd+Shift+P for macOS), search for Kill VS Code Server on Host, and locate the affected instance, which will be automatically cleared. Then, establish the connection again.
Method 2 (performed remotely): Delete the files that are being used in /home/ma-user/.vscode-server/bin/ on the VS Code terminal. Then, establish the connection again.
ssh -tt -o StrictHostKeyChecking=no -i ${IdentityFile} ${User}@${HostName} -p ${Port} rm -rf /home/ma-user/.vscode-server/bin/
Parameters:
- IdentityFile: Path to the local key
- User: Username, for example, ma-user
- HostName: IP address
- Port: Port number
The preceding methods can also be used to resolve issues related to the VS Code server.