Skip to content

Commit

Permalink
chore: fix typo (kcl-lang#814)
Browse files Browse the repository at this point in the history
Signed-off-by: xiarui.xr <[email protected]>
  • Loading branch information
amyXia1994 authored Oct 30, 2023
1 parent bb36913 commit f5a2bc2
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 @@ -162,7 +162,7 @@ fn completion_dot(
match program.pos_to_stmt(pos) {
Some(node) => match node.node {
Stmt::Import(stmt) => completion_for_import(&stmt, pos, prog_scope, program),
_ => Some(into_completion_items(&get_doc_completion(node, pos, prog_scope)).into()),
_ => Some(into_completion_items(&get_dot_completion(node, pos, prog_scope)).into()),
},
None => None,
}
Expand Down Expand Up @@ -474,7 +474,7 @@ pub(crate) fn get_schema_attr_value_completion(
}

/// Get completion items for trigger '.'
pub(crate) fn get_doc_completion(
pub(crate) fn get_dot_completion(
stmt: Node<Stmt>,
pos: &KCLPos,
prog_scope: &ProgramScope,
Expand Down Expand Up @@ -604,7 +604,7 @@ pub(crate) fn get_doc_completion(
}
Expr::Selector(select_expr) => {
let res =
get_doc_completion(stmt, &select_expr.value.get_end_pos(), prog_scope);
get_dot_completion(stmt, &select_expr.value.get_end_pos(), prog_scope);
items.extend(res);
}
Expr::StringLit(_) => {
Expand Down

0 comments on commit f5a2bc2

Please sign in to comment.