Open McfhHolmes0 opened 3 days ago
This issue has been resolved!
The Vscode settings file is divided into local user configuration and remote server configuration. The remote server(Linux) configuration is usually located in ~/.vscode-server/data/Machine/settings.json
.
The ~
here refers to your Linux home directory. For example, my linux username is bob, so my home directory is /home/bob
. Then the path above means: /home/bob/.vscode-server/data/Machine/settings.json
.
Note that if you are the root user, then your home directory is /root
.
So you only need to set the custom configuration file path in this file. For example, my configuration file path is:/home/bob/.vscode-server/custom-extensions-config/njpwerner.autodocstring-templates/google-custom.mustache
. I just need to set the path in the above mentioned remote server's setting.json file to add a line of configuration:
"autoDocstring.customTemplatePath": "/home/bob/.vscode-server/custom-extensions-config/njpwerner.autodocstring-templates/google-custom.mustache",
Then the template file on the remote server will be loaded correctly. Note that the home directory /home/bob
cannot be replaced by ~
here. Otherwise, the template path will not be recognized correctly!
Describe the bug
My daily development work is done by connecting to a remote server via Remote-ssh under Windows 10.
I defined a custom template and specified the path:
This is set up to develop under Windows without any problems, but when I'm connecting to a remote server("Ubuntu 22.04.5 LTS"), I'm unable to find this
.mustache
template file. The error is following:One solution would be to place the template files under the project folder and use relative paths, but then a copy of the template file would have to be stored under each project folder. Is there any solution that will make it easy for me to develop either under windows or through remote connection to the server.
Versions:
v0.6.1