[Feat]: Delegate to upstream remote-cli script
- Ngôn ngữ chính
- TypeScript
- Star
- 79.3k
- Fork
- 6.8k
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 41
Mô tả
## What is your suggestion?
Right now we use the script in lib/vscode/bin/remote-cli inside the integrated terminal but we should use it from our own script as well because it provides more than our implementation.
## Why do you want this feature?
So things we have not implemented like `--wait` work even outside code-server and so we can remove our incomplete implementation.
## Are there any workarounds to get this functionality today?
Use an absolute path to run it. Or put it in your PATH but then you could not run the server since that script only allows interacting with existing instances of code-server.
## Are you interested in submitting a PR for this?
Yeah, will probably take this on.
## Implementation notes
Probably easiest to keep the existing logic but then instead of talking to the Code socket ourselves spawn the remote-cli script.
**Edit**: need to make sure it supports stdin as well, see https://github.com/coder/code-server/issues/5693
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh logic CLI từ xa hiện có với lib/vscode/bin/remote-cli và theo dõi cách triển khai hiện tại giao tiếp với socket của Code. Xác minh rằng tập lệnh được ủy quyền hỗ trợ --wait và stdin, đồng thời việc triển khai cục bộ chưa hoàn chỉnh có thể được xóa mà không làm mất hành vi hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100