Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:wrench: Declare kernel build tags for VS Code CLI and gopls

Jeffrey Chenba5ca869c9cb
diff --git a/.gitignore b/.gitignore
index 7e83ae6873..dcba441a91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,7 +34,8 @@ electron/dist
# IDE
.idea/
-.vscode/
+.vscode/*
+!.vscode/settings.json
.zcode/
# Log
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000..3a7e5cb3d8
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+ // 内核依赖 fts5 与 sqlcipher 构建标签;缺失时 gopls 不会编译带这些标签的文件,
+ // 会把其中的引用视为不存在,从而误报「未使用」并漏掉真实错误。
+ // 该设置由 Go 扩展自动传播给 gopls(见 go.buildTags 说明),且会在 gopls.build.buildFlags
+ // 未指定时生效,因此无需用户另行配置。
+ "go.buildTags": "fts5 sqlcipher"
+}