@@ -30,7 +30,7 @@ use lsp_types::{
3030 InlayHint , InlayHintLabel , InlayHintParams , PartialResultParams , Position , Range ,
3131 RenameFilesParams , TextDocumentItem , TextDocumentPositionParams , WorkDoneProgressParams ,
3232} ;
33- use rust_analyzer:: lsp:: ext:: { OnEnter , Runnables , RunnablesParams , UnindexedProject } ;
33+ use rust_analyzer:: lsp:: ext:: { OnEnter , Runnables , RunnablesParams } ;
3434use serde_json:: json;
3535use stdx:: format_to_acc;
3636use test_utils:: skip_slow_tests;
@@ -822,66 +822,6 @@ fn main() {{}}
822822 ) ;
823823}
824824
825- #[ test]
826- fn test_opening_a_file_outside_of_indexed_workspace ( ) {
827- if skip_slow_tests ( ) {
828- return ;
829- }
830-
831- let tmp_dir = TestDir :: new ( ) ;
832- let path = tmp_dir. path ( ) ;
833-
834- let project = json ! ( {
835- "roots" : [ path] ,
836- "crates" : [ {
837- "root_module" : path. join( "src/crate_one/lib.rs" ) ,
838- "deps" : [ ] ,
839- "edition" : "2015" ,
840- "cfg" : [ "cfg_atom_1" , "feature=\" cfg_1\" " ] ,
841- } ]
842- } ) ;
843-
844- let code = format ! (
845- r#"
846- //- /rust-project.json
847- {project}
848-
849- //- /src/crate_one/lib.rs
850- mod bar;
851-
852- fn main() {{}}
853- "# ,
854- ) ;
855-
856- let server = Project :: with_fixture ( & code)
857- . tmp_dir ( tmp_dir)
858- . with_config ( serde_json:: json!( {
859- "notifications" : {
860- "unindexedProject" : true
861- } ,
862- } ) )
863- . server ( )
864- . wait_until_workspace_is_loaded ( ) ;
865-
866- let uri = server. doc_id ( "src/crate_two/lib.rs" ) . uri ;
867- server. notification :: < DidOpenTextDocument > ( DidOpenTextDocumentParams {
868- text_document : TextDocumentItem {
869- uri : uri. clone ( ) ,
870- language_id : "rust" . to_owned ( ) ,
871- version : 0 ,
872- text : "/// Docs\n fn foo() {}" . to_owned ( ) ,
873- } ,
874- } ) ;
875- let expected = json ! ( {
876- "textDocuments" : [
877- {
878- "uri" : uri
879- }
880- ]
881- } ) ;
882- server. expect_notification :: < UnindexedProject > ( expected) ;
883- }
884-
885825#[ test]
886826fn diagnostics_dont_block_typing ( ) {
887827 if skip_slow_tests ( ) {
0 commit comments