This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,12 @@ impl ModDir {
73
73
candidate_files. push ( self . dir_path . join_attr ( attr_path, self . root_non_dir_owner ) )
74
74
}
75
75
None if file_id. is_include_macro ( db. upcast ( ) ) => {
76
+ let name = name. unescaped ( ) ;
76
77
candidate_files. push ( format ! ( "{}.rs" , name) ) ;
77
78
candidate_files. push ( format ! ( "{}/mod.rs" , name) ) ;
78
79
}
79
80
None => {
81
+ let name = name. unescaped ( ) ;
80
82
candidate_files. push ( format ! ( "{}{}.rs" , self . dir_path. 0 , name) ) ;
81
83
candidate_files. push ( format ! ( "{}{}/mod.rs" , self . dir_path. 0 , name) ) ;
82
84
}
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ pub struct Bar;
132
132
expect ! [ [ r#"
133
133
crate
134
134
Bar: t v
135
- async: t
135
+ r# async: t
136
136
137
- crate::async
137
+ crate::r# async
138
138
Bar: t v
139
139
"# ] ] ,
140
140
) ;
Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ fn render_resolution_simple_(
342
342
let ctx = ctx. import_to_add ( import_to_add) ;
343
343
let kind = res_to_kind ( resolution) ;
344
344
345
- let mut item = CompletionItem :: new ( kind, ctx. source_range ( ) , local_name. to_smol_str ( ) ) ;
345
+ let mut item =
346
+ CompletionItem :: new ( kind, ctx. source_range ( ) , local_name. unescaped ( ) . to_smol_str ( ) ) ;
346
347
item. set_relevance ( ctx. completion_relevance ( ) )
347
348
. set_documentation ( scope_def_docs ( db, resolution) )
348
349
. set_deprecated ( scope_def_is_deprecated ( & ctx, resolution) ) ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ fn render(
96
96
item. set_documentation ( ctx. docs ( func) )
97
97
. set_deprecated ( ctx. is_deprecated ( func) || ctx. is_deprecated_assoc_item ( func) )
98
98
. detail ( detail ( db, func) )
99
- . lookup_by ( name. to_smol_str ( ) ) ;
99
+ . lookup_by ( name. unescaped ( ) . to_smol_str ( ) ) ;
100
100
101
101
match ctx. completion . config . snippet_cap {
102
102
Some ( cap) => {
You can’t perform that action at this time.
0 commit comments