'Unable to use `code` in integrated terminal during remote session

I'm trying to be able to run code while in a remote session using the integrated terminal. This works just fine when running VSCode locally.

Using the "Shell command: install code command on PATH" does not seem to work inside a remote session.

None of the suggested solutions I can find elsewhere on StackOverflow seem to work. I've already tried the suggested solutions here and here. I realize this question has been asked and answered before, but I don't know where else to look. I don't know if this is specific to the machine that I have ssh'd into, or if I have missed a step with my installation, or something else.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source