浏览代码

only cache context when using compilation server

Rudy Ges 1 年之前
父节点
当前提交
9eeb5cf1ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/compiler/server.ml

+ 1 - 1
src/compiler/server.ml

@@ -590,7 +590,7 @@ let after_target_init sctx ctx =
 		()
 
 let after_save sctx ctx =
-	if not (has_error ctx) then
+	if ctx.comm.is_server && not (has_error ctx) then
 		maybe_cache_context sctx ctx.com
 
 let after_compilation sctx ctx =