coder / coder/code-server

Expand `~` from config

未關閉
#7,051 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
79.3k
分支
6.8k
平均合併
2 天 6 小時
30 天內合併 PR
41

描述

### Is there an existing issue for this?

- [x] I have searched the existing issues

### OS/Web Information

- Web Browser: Vivaldi
- Local OS: Ubuntu 24.10
- Remote OS: Ubuntu 24.10
- Remote Architecture: amd64
- `code-server --version`: 4.93.1 69df01185ce2f80e99c9e4f8c8de1907cc7a9bc5 with Code 1.93.1

### Steps to Reproduce

1. add this `user-data-dir: ~/.config/code-server-data` to config.yaml
2. run command `code-server`

### Expected

```
~/.config/code-server-data
```

### Actual
But in the web browser, it will be:
```
~/~/.config/code-server-data
```
### 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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。