{
"key": "ctrl+shift+t,
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "echo ${file}"
}
}
Run the command defined in 1. -> The file path is displayed in the console
Now open an SSH connection (using the VScode extension)

I have tried different variable reference and here are the results:
${file}, ${relativeFile}, ${relativeFileDirname}, ${fileBasename}, ${fileBasenameNoExtension}, ${fileDirname}, ${fileExtname}${cwd}, ${lineNumber}, ${selectedText}, ${execPath}When using ${file} via an SSH connection, the path of the file on the remote should be returned to the console (as it used to).
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
Based on how we're filtering, it looks like this never worked. However, it seems like something that should work.
I have improved variable resolving for remotes. ${file} should work with this change. However, for the relative variables a change is needed in the terminal command to allow a remote root uri here (@Tyriar )
Most helpful comment
Based on how we're filtering, it looks like this never worked. However, it seems like something that should work.