File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ use crate::commands::files::FilesArgs;
2424use crate :: commands:: files:: get_project_config_for_current_dir;
2525use crate :: commands:: util:: CommandExitStatus ;
2626use crate :: config:: error_kind:: ErrorKind ;
27- use crate :: state:: ide:: insert_import_edit_with_forced_import_format;
2827use crate :: state:: ide:: ImportEdit ;
28+ use crate :: state:: ide:: insert_import_edit_with_forced_import_format;
2929use crate :: state:: lsp:: AnnotationKind ;
3030use crate :: state:: lsp:: ParameterAnnotation ;
3131use crate :: state:: require:: Require ;
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ use pyrefly_python::symbol_kind::SymbolKind;
1414use pyrefly_util:: gas:: Gas ;
1515use ruff_python_ast:: Expr ;
1616use ruff_python_ast:: ModModule ;
17- use ruff_python_ast:: helpers:: is_docstring_stmt;
18- use ruff_python_ast:: name:: Name ;
1917use ruff_python_ast:: Stmt ;
2018use ruff_python_ast:: StmtImportFrom ;
19+ use ruff_python_ast:: helpers:: is_docstring_stmt;
20+ use ruff_python_ast:: name:: Name ;
2121use ruff_text_size:: Ranged ;
2222use ruff_text_size:: TextRange ;
2323use ruff_text_size:: TextSize ;
Original file line number Diff line number Diff line change @@ -1887,8 +1887,7 @@ impl<'a> Transaction<'a> {
18871887 import_format,
18881888 ) ;
18891889 let range = TextRange :: at ( import_edit. position , TextSize :: new ( 0 ) ) ;
1890- let title =
1891- format ! ( "Insert import: `{}`" , import_edit. display_text) ;
1890+ let title = format ! ( "Insert import: `{}`" , import_edit. display_text) ;
18921891 code_actions. push ( (
18931892 title,
18941893 module_info. dupe ( ) ,
@@ -2422,10 +2421,8 @@ impl<'a> Transaction<'a> {
24222421 import_format,
24232422 ) ;
24242423 let import_text_edit = TextEdit {
2425- range : module_info. to_lsp_range ( TextRange :: at (
2426- import_edit. position ,
2427- TextSize :: new ( 0 ) ,
2428- ) ) ,
2424+ range : module_info
2425+ . to_lsp_range ( TextRange :: at ( import_edit. position , TextSize :: new ( 0 ) ) ) ,
24292426 new_text : import_edit. insert_text . clone ( ) ,
24302427 } ;
24312428 ( insert_text, Some ( vec ! [ import_text_edit] ) , module_name)
You can’t perform that action at this time.
0 commit comments