Problem: cannot use GitHub CoPilot in ssh remote sessions.
Solution: add this to .vscode/settings.json (e.g. on the remote server)
"remote.extensionKind": {
"GitHub.copilot": [
"ui"
],
"GitHub.copilot-chat": [
"ui"