Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Aug 7, 2024
1 parent 7759191 commit 0a32f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions language_service/src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ use rustc_hash::FxHashSet;
use std::rc::Rc;
use std::sync::Arc;

type SortPriority = u32;

#[derive(Debug)]
/// Used to represent pre-existing imports in the completion context
struct ImportItem {
path: Vec<Rc<str>>,
alias: Option<Rc<str>>,
Expand Down Expand Up @@ -89,8 +92,7 @@ pub(crate) fn get_completions(
// Starting context is top-level (i.e. outside a namespace block)
Context::TopLevel
},
// TODO(alex) below line
start_of_namespace: Default::default(), // todo!("set this to after the first comment"),
start_of_namespace: None,
current_namespace_name: None,
imports: vec![],
};
Expand Down Expand Up @@ -714,8 +716,6 @@ impl Visitor<'_> for ContextFinder {
}
}

type SortPriority = u32;

fn package_item_to_completion_item(
i: qsc::hir::Item,
package: qsc::hir::Package,
Expand Down
1 change: 0 additions & 1 deletion language_service/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ pub struct CompletionList {

#[derive(Debug)]
pub struct CompletionItem {
/// This label is used to render the completion item.
pub label: String,
pub kind: CompletionItemKind,
pub sort_text: Option<String>,
Expand Down

0 comments on commit 0a32f63

Please sign in to comment.