Repository navigation
Commit dd09bb4
authored
refactor(platform): 平台规则改为数据,平台专属测试移到 lithe-platform-tests (#48)
- 新增 lithe-platform crate:Platform { Unix, Windows } 与 Platform::HOST,
路径包含判断、斜杠路径、Windows 保留设备名、owner-only 权限、可执行位、
隐藏控制台窗口、batch 参数转义统一成按平台参数计算的函数
- LSP 进程在所有平台都放进 ProcessTree:macOS/Linux 终止或释放语言服务器时
一并结束它启动的子进程(旧代码下子进程会存活);Unix 语言服务器进入独立
进程组,终端 Ctrl-C 不再直接传给它
- Git 路径校验统一使用同一份保留名规则,新增拒绝 CONIN$/CONOUT$
- 补丁指纹无条件计入文件模式,Windows 打开远程 Unix 工作区时结果一致
- SSH Connection::close 调整关闭顺序,Unix 下不再固定等满 2 秒
- 新增 lithe-platform-tests 包:fixture 程序代替 shell 命令,迁入
git-host/tests/process.rs,并新增 LSP 进程树、Windows batch 参数、权限、
Git 可执行文件解析的真实系统测试
- 顺手修复 shared/plugins/sdk/e2e 中原有的 clippy needless-borrow 报错1 parent a58e07e commit dd09bb4
46 files changed
Lines changed: 1721 additions & 747 deletions
File tree
- rust
- crates
- diagnostics
- src
- git-host
- src
- tests
- git
- src
- ide-host
- src
- lsp-transport
- src
- platform-tests
- src
- bin
- tests/platform
- platform
- src
- project-generators
- src
- project
- src
- files
- workspace
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 134 | + | |
140 | 135 | | |
141 | 136 | | |
142 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 23 | + | |
| 24 | + | |
34 | 25 | | |
35 | | - | |
| 26 | + | |
36 | 27 | | |
37 | 28 | | |
38 | 29 | | |
39 | 30 | | |
40 | 31 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
46 | 38 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 39 | + | |
58 | 40 | | |
59 | 41 | | |
60 | 42 | | |
| |||
158 | 140 | | |
159 | 141 | | |
160 | 142 | | |
161 | | - | |
| 143 | + | |
| 144 | + | |
162 | 145 | | |
163 | | - | |
164 | | - | |
| 146 | + | |
| 147 | + | |
165 | 148 | | |
166 | 149 | | |
167 | | - | |
168 | | - | |
| 150 | + | |
| 151 | + | |
169 | 152 | | |
170 | 153 | | |
171 | | - | |
| 154 | + | |
172 | 155 | | |
173 | 156 | | |
174 | 157 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 158 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
190 | 162 | | |
191 | 163 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 358 | + | |
364 | 359 | | |
365 | 360 | | |
366 | 361 | | |
| |||
0 commit comments