Open ForteDexe opened 4 weeks ago
~
is normally expanded by the shell, so it would not get expanded in a YAML config. But, it would be nice if we manually expand it when we read the config.
If run as the services, using ~
it recognizes the user-data folder well
But other stuff might not, ie:
[error] Unable to read file '/~/.config/code-server-user-data/extensions/extensions.json' (Error: Unable to resolve nonexistent file '/~/.config/code-server-user-data/extensions/extensions.json'): Error: Unable to read file '/~/.config/code-server-user-data/extensions/extensions.json' (Error: Unable to resolve nonexistent file '/~/.config/code-server-user-data/extensions/extensions.json')
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.93.1 69df01185ce2f80e99c9e4f8c8de1907cc7a9bc5 with Code 1.93.1Steps to Reproduce
user-data-dir: ~/.config/code-server-data
to config.yamlcode-server
Expected
Actual
But in the web browser, it will be:
Note
I get it now, depends on where the current directory in the terminal is, code-server will use the current directory plus user-data-dir