File tree Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,6 @@ package actor SourceKitLSPServer {
84
84
/// Initialization can be awaited using `waitUntilInitialized`.
85
85
private var initialized : Bool = false
86
86
87
- /// Set to `true` after the user has opened a project that doesn't support background indexing while having background
88
- /// indexing enabled.
89
- ///
90
- /// This ensures that we only inform the user about background indexing not being supported for these projects once.
91
- private var didSendBackgroundIndexingNotSupportedNotification = false
92
-
93
87
var options : SourceKitLSPOptions
94
88
95
89
let testHooks : TestHooks
@@ -841,20 +835,6 @@ extension SourceKitLSPServer {
841
835
testHooks: testHooks,
842
836
indexTaskScheduler: indexTaskScheduler
843
837
)
844
- if options. backgroundIndexingOrDefault, workspace. semanticIndexManager == nil ,
845
- !self . didSendBackgroundIndexingNotSupportedNotification
846
- {
847
- self . sendNotificationToClient (
848
- ShowMessageNotification (
849
- type: . info,
850
- message: """
851
- Background indexing is currently only supported for SwiftPM projects. \
852
- For all other project types, please run a build to update the index.
853
- """
854
- )
855
- )
856
- self . didSendBackgroundIndexingNotSupportedNotification = true
857
- }
858
838
return workspace
859
839
}
860
840
Original file line number Diff line number Diff line change @@ -885,17 +885,6 @@ final class BackgroundIndexingTests: XCTestCase {
885
885
)
886
886
}
887
887
888
- func testShowMessageWhenOpeningAProjectThatDoesntSupportBackgroundIndexing( ) async throws {
889
- let project = try await MultiFileTestProject (
890
- files: [
891
- " compile_commands.json " : " "
892
- ] ,
893
- enableBackgroundIndexing: true
894
- )
895
- let message = try await project. testClient. nextNotification ( ofType: ShowMessageNotification . self)
896
- XCTAssert ( message. message. contains ( " Background indexing " ) , " Received unexpected message: \( message. message) " )
897
- }
898
-
899
888
func testNoPreparationStatusIfTargetIsUpToDate( ) async throws {
900
889
let project = try await SwiftPMTestProject (
901
890
files: [
You can’t perform that action at this time.
0 commit comments