File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
crates/ark/src/lsp/completions Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -117,20 +117,14 @@ fn skip_namespace_operator(node: Node) -> Node {
117
117
mod tests {
118
118
use tower_lsp:: lsp_types:: CompletionItem ;
119
119
use tower_lsp:: lsp_types:: InsertTextFormat ;
120
- use tree_sitter:: Point ;
121
120
121
+ use crate :: fixtures:: point_from_cursor;
122
122
use crate :: lsp:: completions:: provide_completions;
123
123
use crate :: lsp:: document_context:: DocumentContext ;
124
124
use crate :: lsp:: documents:: Document ;
125
125
use crate :: lsp:: state:: WorldState ;
126
126
use crate :: r_task;
127
127
128
- fn point_from_cursor ( text : & str ) -> ( String , Point ) {
129
- let cursor_pos = text. find ( '@' ) . unwrap ( ) ;
130
- let text = text. replace ( '@' , "" ) ;
131
- ( text, Point :: new ( 0 , cursor_pos) )
132
- }
133
-
134
128
fn find_completion ( completions : & [ CompletionItem ] , label : & str ) -> CompletionItem {
135
129
completions
136
130
. iter ( )
You can’t perform that action at this time.
0 commit comments