@@ -27,7 +27,7 @@ use lsp_types::{
2727 InlayHint , InlayHintLabel , InlayHintParams , PartialResultParams , Position , Range ,
2828 RenameFilesParams , TextDocumentItem , TextDocumentPositionParams , WorkDoneProgressParams ,
2929} ;
30- use rust_analyzer:: lsp:: ext:: { OnEnter , Runnables , RunnablesParams , UnindexedProject } ;
30+ use rust_analyzer:: lsp:: ext:: { OnEnter , Runnables , RunnablesParams } ;
3131use serde_json:: json;
3232use stdx:: format_to_acc;
3333
@@ -811,66 +811,6 @@ fn main() {{}}
811811 ) ;
812812}
813813
814- #[ test]
815- fn test_opening_a_file_outside_of_indexed_workspace ( ) {
816- if skip_slow_tests ( ) {
817- return ;
818- }
819-
820- let tmp_dir = TestDir :: new ( ) ;
821- let path = tmp_dir. path ( ) ;
822-
823- let project = json ! ( {
824- "roots" : [ path] ,
825- "crates" : [ {
826- "root_module" : path. join( "src/crate_one/lib.rs" ) ,
827- "deps" : [ ] ,
828- "edition" : "2015" ,
829- "cfg" : [ "cfg_atom_1" , "feature=\" cfg_1\" " ] ,
830- } ]
831- } ) ;
832-
833- let code = format ! (
834- r#"
835- //- /rust-project.json
836- {project}
837-
838- //- /src/crate_one/lib.rs
839- mod bar;
840-
841- fn main() {{}}
842- "# ,
843- ) ;
844-
845- let server = Project :: with_fixture ( & code)
846- . tmp_dir ( tmp_dir)
847- . with_config ( serde_json:: json!( {
848- "notifications" : {
849- "unindexedProject" : true
850- } ,
851- } ) )
852- . server ( )
853- . wait_until_workspace_is_loaded ( ) ;
854-
855- let uri = server. doc_id ( "src/crate_two/lib.rs" ) . uri ;
856- server. notification :: < DidOpenTextDocument > ( DidOpenTextDocumentParams {
857- text_document : TextDocumentItem {
858- uri : uri. clone ( ) ,
859- language_id : "rust" . to_owned ( ) ,
860- version : 0 ,
861- text : "/// Docs\n fn foo() {}" . to_owned ( ) ,
862- } ,
863- } ) ;
864- let expected = json ! ( {
865- "textDocuments" : [
866- {
867- "uri" : uri
868- }
869- ]
870- } ) ;
871- server. expect_notification :: < UnindexedProject > ( expected) ;
872- }
873-
874814#[ test]
875815fn diagnostics_dont_block_typing ( ) {
876816 if skip_slow_tests ( ) {
0 commit comments