Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
He1pa committed Nov 28, 2023
1 parent 6a9b19d commit da580b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions kclvm/tools/src/LSP/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,11 @@ fn completion_dot(
) -> Option<lsp_types::CompletionResponse> {
let mut items: IndexSet<KCLCompletionItem> = IndexSet::new();
// get pre position of trigger character '.'
let pre_pos =
KCLPos {
filename: pos.filename.clone(),
line: pos.line,
column: pos.column.map(|c| c - 1),
};
let pre_pos = KCLPos {
filename: pos.filename.clone(),
line: pos.line,
column: pos.column.map(|c| c - 1),
};

if let Some(stmt) = program.pos_to_stmt(&pre_pos) {
match stmt.node {
Expand Down

0 comments on commit da580b9

Please sign in to comment.