We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03eaa25 commit fb8c815Copy full SHA for fb8c815
tools/SourceKit/tools/sourcekitd/lib/API/Requests.cpp
@@ -36,6 +36,7 @@
36
#include "llvm/ADT/STLExtras.h"
37
#include "llvm/Support/MemoryBuffer.h"
38
#include "llvm/Support/Path.h"
39
+#include "llvm/Support/PrettyStackTrace.h"
40
#include "llvm/Support/raw_ostream.h"
41
#include <mutex>
42
@@ -91,6 +92,7 @@ static void onDocumentUpdateNotification(StringRef DocumentName) {
91
92
static SourceKit::Context *GlobalCtx = nullptr;
93
94
void sourcekitd::initialize() {
95
+ llvm::EnablePrettyStackTrace();
96
GlobalCtx = new SourceKit::Context(sourcekitd::getRuntimeLibPath(),
97
SourceKit::createSwiftLangSupport);
98
GlobalCtx->getNotificationCenter().addDocumentUpdateNotificationReceiver(
0 commit comments