From 30050219c6843f537500d99b7ab72abc3f037e5d Mon Sep 17 00:00:00 2001 From: he1pa <18012015693@163.com> Date: Tue, 28 Nov 2023 19:03:28 +0800 Subject: [PATCH] fix: fix lsp completion ut Signed-off-by: he1pa <18012015693@163.com> --- kclvm/tools/src/LSP/src/completion.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kclvm/tools/src/LSP/src/completion.rs b/kclvm/tools/src/LSP/src/completion.rs index 6d8f74ae4..7bd6d4a72 100644 --- a/kclvm/tools/src/LSP/src/completion.rs +++ b/kclvm/tools/src/LSP/src/completion.rs @@ -1086,7 +1086,7 @@ mod tests { line: 5, column: Some(4), }; - let got = completion(Some('\n'), &program, &pos, &prog_scope, &gs).unwrap(); + let got = completion(Some('\n'), &program, &pos, &gs).unwrap(); match got { CompletionResponse::Array(arr) => { assert!(arr.is_empty()) @@ -1191,7 +1191,7 @@ mod tests { #[test] fn schema_ty_attr_complete() { - let (file, program, prog_scope, _, gs) = + let (file, program, _, _, gs) = compile_test_file("src/test_data/completion_test/dot/schema_ty_attr/schema_ty_attr.k"); let pos = KCLPos { @@ -1200,7 +1200,7 @@ mod tests { column: Some(2), }; - let got = completion(Some('.'), &program, &pos, &prog_scope, &gs).unwrap(); + let got = completion(Some('.'), &program, &pos, &gs).unwrap(); match got { CompletionResponse::Array(arr) => { assert_eq!(