Browse Source

only cache context when using compilation server

Rudy Ges 1 năm trước cách đây
mục cha
commit
9eeb5cf1ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 =
 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
 		maybe_cache_context sctx ctx.com
 
 
 let after_compilation sctx ctx =
 let after_compilation sctx ctx =