Skip to content

Commit

Permalink
fix: fix lsp completion ut
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa committed Nov 28, 2023
1 parent e226b9a commit 3005021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kclvm/tools/src/LSP/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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 {
Expand All @@ -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!(
Expand Down

0 comments on commit 3005021

Please sign in to comment.