Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions en/clice/dev/test-and-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ pixi run unit-test Debug # debug build
Equivalent to:

```bash
./build/RelWithDebInfo/bin/unit_tests \
--test-dir="./tests/data" \
--verbose
./build/RelWithDebInfo/bin/unit_tests --verbose
```

### Integration Tests
Expand Down
2 changes: 1 addition & 1 deletion en/clice/features/code-action.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Code Action

clice advertises `textDocument/codeAction` support but currently returns an empty list. This page tracks the intended scope.
clice does not advertise `textDocument/codeAction` support yet. Direct requests currently reach the stub handler and return an empty list. This page tracks the intended scope.

## Quick Fixes

Expand Down
4 changes: 2 additions & 2 deletions en/clice/features/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@

- [x] Push diagnostics on compilation completion
- [x] Clear diagnostics on file close
- [x] Per-file diagnostic grouping (interested file + headers)
- [x] Per-file diagnostic grouping (main file + headers)
- [x] Diagnostic `code` field with Clang error codes
- [ ] `codeDescription` with links to Clang documentation
- [ ] Diagnostic `source` field distinguishing clang vs clang-tidy
- [x] Diagnostic `source` field distinguishing clang vs clang-tidy
- [ ] Configurable debounce delay before computing diagnostics ([clangd#1471](https://github.com/clangd/clangd/issues/1471))
- [ ] Recompute diagnostics in open files when background indexing completes ([clangd#2604](https://github.com/clangd/clangd/issues/2604))

Expand Down
8 changes: 0 additions & 8 deletions en/clice/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ Lower bound for dynamic stateless-worker scaling; `0` is invalid and falls back

Upper bound for dynamic stateless-worker scaling; `0` means the machine's parallelism, which is also the default.

### `project.worker_memory_limit`

| Type | Default |
| -------- | ------------ |
| `uint64` | `4294967296` |

Per-stateful-worker memory limit in bytes; `0` is invalid and falls back to the default. Not yet enforced: parsed, but memory-based eviction is not implemented.

<!-- END GENERATED CONFIG -->

## Tracker
Expand Down
4 changes: 1 addition & 3 deletions zh/clice/dev/test-and-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ pixi run unit-test Debug # debug 构建
等价于:

```bash
./build/RelWithDebInfo/bin/unit_tests \
--test-dir="./tests/data" \
--verbose
./build/RelWithDebInfo/bin/unit_tests --verbose
```

### 集成测试
Expand Down
2 changes: 1 addition & 1 deletion zh/clice/features/code-action.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 代码操作

clice 已注册 `textDocument/codeAction` 支持,但目前始终返回空列表。本页记录预期范围。
clice 尚未公布 `textDocument/codeAction` 支持。直接发送的请求目前会到达存根处理器并返回空列表。本页记录预期范围。

## 快速修复

Expand Down
4 changes: 2 additions & 2 deletions zh/clice/features/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@

- [x] 编译完成时推送诊断
- [x] 文件关闭时清除诊断
- [x] 按文件分组诊断(关注的文件 + 头文件)
- [x] 按文件分组诊断(主文件 + 头文件)
- [x] 诊断 `code` 字段包含 Clang 错误代码
- [ ] `codeDescription` 链接到 Clang 文档
- [ ] 诊断 `source` 字段区分 clang 与 clang-tidy
- [x] 诊断 `source` 字段区分 clang 与 clang-tidy
- [ ] 可配置的诊断计算防抖延迟([clangd#1471](https://github.com/clangd/clangd/issues/1471))
- [ ] 后台索引完成后重新计算已打开文件的诊断([clangd#2604](https://github.com/clangd/clangd/issues/2604))

Expand Down
16 changes: 4 additions & 12 deletions zh/clice/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ clice 从工作区根目录的 `clice.toml` 中读取配置;若该文件不存

### `project.cache_dir`

| 类型 | 默认值 |
| -------- | ------------------------------------------------------------------- |
| `string` | `$XDG_CACHE_HOME/clice/<workspace>-<hash>` 或 `${workspace}/.clice` |
| 类型 | 默认值 |
| -------- | ------ |
| `string` | `""` |

统一磁盘缓存的存储目录(PCH、PCM 与索引产物都在这里)。默认使用 XDG_CACHE_HOME(或 `~/.cache`)下以工作区目录名加短哈希命名的子目录,例如 `~/.cache/clice/myproject-1a2b3c4d`。如果 XDG 目录无法创建,则回退到 `${workspace}/.clice`。实际解析出的路径会在启动时的有效配置日志中打印(可在编辑器的 clice 输出面板查看)
统一磁盘缓存的存储目录(PCH、PCM 与索引产物都在这里)。空值默认使用 `${workspace}/.clice`;clice 会生成 `.gitignore` 和 `CACHEDIR.TAG`,使缓存不进入版本控制并允许备份工具忽略它(`.clice/config.toml` 仍对 Git 可见)。显式配置的目录不会添加这些标记。实际解析出的路径会在启动时打印

### `project.logging_dir`

Expand Down Expand Up @@ -94,14 +94,6 @@ clice 从工作区根目录的 `clice.toml` 中读取配置;若该文件不存

无状态工作进程动态扩容的上限。`0` 表示使用 CPU 核心数。

### `project.worker_memory_limit`

| 类型 | 默认值 |
| -------- | -------------------- |
| `uint64` | `4294967296`(4 GB) |

每个工作进程的内存限制(字节)。**尚未强制执行**——该选项会被解析,但基于内存的淘汰/重启尚未实现。

## Tracker

文件追踪器轮询编辑器之外发生的变化(`git checkout`、重新生成的 `compile_commands.json`、代码生成器写出的头文件),使服务器无需重启即可感知。将间隔设为 `0` 可禁用对应的轮询循环。
Expand Down
Loading