mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, requests would fail silently by returning an empty struct in the response. With this change, responses will properly report fail with the internal error.
14 lines
664 B
Swift
14 lines
664 B
Swift
// RUN: not %sourcekitd-test -req=track-compiles == -req=cursor %s -offset=0 -- %s 2>&1 | %FileCheck %s -check-prefix=COMPILE_1 -dump-input-on-failure
|
|
// COMPILE_1: error response (Request Failed): Unable to resolve cursor info.
|
|
// COMPILE_1: {
|
|
// COMPILE_1: key.notification: source.notification.compile-will-start,
|
|
// COMPILE_1: key.filepath: "SOURCE_DIR{{.*}}cursor-info.swift",
|
|
// COMPILE_1: key.compileid: [[CID1:".*"]]
|
|
// COMPILE_1: }
|
|
// COMPILE_1: {
|
|
// COMPILE_1: key.notification: source.notification.compile-did-finish,
|
|
// COMPILE_1: key.compileid: [[CID1]]
|
|
// COMPILE_1: }
|
|
// COMPILE_1-NOT: compile-will-start
|
|
// COMPILE_1-NOT: compile-did-finish
|