diff --git a/en/clice/dev/test-and-debug.md b/en/clice/dev/test-and-debug.md index bf0f0301..beed7618 100644 --- a/en/clice/dev/test-and-debug.md +++ b/en/clice/dev/test-and-debug.md @@ -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 diff --git a/en/clice/features/code-action.md b/en/clice/features/code-action.md index 87f5c122..12678ec7 100644 --- a/en/clice/features/code-action.md +++ b/en/clice/features/code-action.md @@ -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 diff --git a/en/clice/features/diagnostics.md b/en/clice/features/diagnostics.md index 5612038f..a5882423 100644 --- a/en/clice/features/diagnostics.md +++ b/en/clice/features/diagnostics.md @@ -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)) diff --git a/en/clice/guide/configuration.md b/en/clice/guide/configuration.md index 36093de1..9df645c9 100644 --- a/en/clice/guide/configuration.md +++ b/en/clice/guide/configuration.md @@ -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. - ## Tracker diff --git a/zh/clice/dev/test-and-debug.md b/zh/clice/dev/test-and-debug.md index e5c3119b..483be793 100644 --- a/zh/clice/dev/test-and-debug.md +++ b/zh/clice/dev/test-and-debug.md @@ -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 ``` ### 集成测试 diff --git a/zh/clice/features/code-action.md b/zh/clice/features/code-action.md index d017b74f..42817b58 100644 --- a/zh/clice/features/code-action.md +++ b/zh/clice/features/code-action.md @@ -1,6 +1,6 @@ # 代码操作 -clice 已注册 `textDocument/codeAction` 支持,但目前始终返回空列表。本页记录预期范围。 +clice 尚未公布 `textDocument/codeAction` 支持。直接发送的请求目前会到达存根处理器并返回空列表。本页记录预期范围。 ## 快速修复 diff --git a/zh/clice/features/diagnostics.md b/zh/clice/features/diagnostics.md index d3c65535..40f029da 100644 --- a/zh/clice/features/diagnostics.md +++ b/zh/clice/features/diagnostics.md @@ -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)) diff --git a/zh/clice/guide/configuration.md b/zh/clice/guide/configuration.md index 42dd9212..61f18f73 100644 --- a/zh/clice/guide/configuration.md +++ b/zh/clice/guide/configuration.md @@ -24,11 +24,11 @@ clice 从工作区根目录的 `clice.toml` 中读取配置;若该文件不存 ### `project.cache_dir` -| 类型 | 默认值 | -| -------- | ------------------------------------------------------------------- | -| `string` | `$XDG_CACHE_HOME/clice/-` 或 `${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` @@ -94,14 +94,6 @@ clice 从工作区根目录的 `clice.toml` 中读取配置;若该文件不存 无状态工作进程动态扩容的上限。`0` 表示使用 CPU 核心数。 -### `project.worker_memory_limit` - -| 类型 | 默认值 | -| -------- | -------------------- | -| `uint64` | `4294967296`(4 GB) | - -每个工作进程的内存限制(字节)。**尚未强制执行**——该选项会被解析,但基于内存的淘汰/重启尚未实现。 - ## Tracker 文件追踪器轮询编辑器之外发生的变化(`git checkout`、重新生成的 `compile_commands.json`、代码生成器写出的头文件),使服务器无需重启即可感知。将间隔设为 `0` 可禁用对应的轮询循环。