소스 검색

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 =