File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -430,20 +430,6 @@ extension SwiftLanguageService {
430
430
}
431
431
432
432
let buildSettings = await self . buildSettings ( for: snapshot. uri)
433
- if buildSettings == nil || buildSettings!. isFallback, let fileUrl = notification. textDocument. uri. fileURL {
434
- // Do not show this notification for non-file URIs to make sure we don't see this notificaiton for newly created
435
- // files (which get opened as with a `untitled:Unitled-1` URI by VS Code.
436
- sourceKitLSPServer? . sendNotificationToClient (
437
- ShowMessageNotification (
438
- type: . warning,
439
- message: """
440
- Failed to get compiler arguments for \( fileUrl. lastPathComponent) .
441
- Ensure the source file is part of a Swift package or has compiler arguments in compile_commands.json.
442
- Functionality will be limited.
443
- """
444
- )
445
- )
446
- }
447
433
448
434
let req = openDocumentSourcekitdRequest ( snapshot: snapshot, compileCommand: buildSettings)
449
435
_ = try ? await self . sourcekitd. send ( req, fileContents: snapshot. text)
Original file line number Diff line number Diff line change @@ -287,7 +287,6 @@ final class BuildSystemTests: XCTestCase {
287
287
let documentManager = await self . testClient. server. documentManager
288
288
289
289
testClient. openDocument ( text, uri: doc)
290
- _ = try await testClient. nextNotification ( ofType: ShowMessageNotification . self)
291
290
let openDiags = try await testClient. nextDiagnosticsNotification ( )
292
291
XCTAssertEqual ( openDiags. diagnostics. count, 1 )
293
292
XCTAssertEqual ( text, try documentManager. latestSnapshot ( doc) . text)
You can’t perform that action at this time.
0 commit comments