@@ -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;
@@ -729,66 +729,6 @@ fn main() {{}}
729729 ) ;
730730}
731731
732- #[ test]
733- fn test_opening_a_file_outside_of_indexed_workspace ( ) {
734- if skip_slow_tests ( ) {
735- return ;
736- }
737-
738- let tmp_dir = TestDir :: new ( ) ;
739- let path = tmp_dir. path ( ) ;
740-
741- let project = json ! ( {
742- "roots" : [ path] ,
743- "crates" : [ {
744- "root_module" : path. join( "src/crate_one/lib.rs" ) ,
745- "deps" : [ ] ,
746- "edition" : "2015" ,
747- "cfg" : [ "cfg_atom_1" , "feature=\" cfg_1\" " ] ,
748- } ]
749- } ) ;
750-
751- let code = format ! (
752- r#"
753- //- /rust-project.json
754- {project}
755-
756- //- /src/crate_one/lib.rs
757- mod bar;
758-
759- fn main() {{}}
760- "# ,
761- ) ;
762-
763- let server = Project :: with_fixture ( & code)
764- . tmp_dir ( tmp_dir)
765- . with_config ( serde_json:: json!( {
766- "notifications" : {
767- "unindexedProject" : true
768- } ,
769- } ) )
770- . server ( )
771- . wait_until_workspace_is_loaded ( ) ;
772-
773- let uri = server. doc_id ( "src/crate_two/lib.rs" ) . uri ;
774- server. notification :: < DidOpenTextDocument > ( DidOpenTextDocumentParams {
775- text_document : TextDocumentItem {
776- uri : uri. clone ( ) ,
777- language_id : "rust" . to_owned ( ) ,
778- version : 0 ,
779- text : "/// Docs\n fn foo() {}" . to_owned ( ) ,
780- } ,
781- } ) ;
782- let expected = json ! ( {
783- "textDocuments" : [
784- {
785- "uri" : uri
786- }
787- ]
788- } ) ;
789- server. expect_notification :: < UnindexedProject > ( expected) ;
790- }
791-
792732#[ test]
793733fn diagnostics_dont_block_typing ( ) {
794734 if skip_slow_tests ( ) {
0 commit comments