Skip to content

Commit cb26625

Browse files
committed
[sourcekitd] Send a notification when semantic functionality is enabled again
1 parent 509ffb3 commit cb26625

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/SourceKit/tools/sourcekitd/lib/API/Requests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,13 @@ static bool isSemanticEditorDisabled() {
31063106
NSEC_PER_SEC * Seconds);
31073107
dispatch_after(When, dispatch_get_main_queue(), ^{
31083108
Toggle = SemaInfoToggle::Enable;
3109+
3110+
static UIdent SemaEnabledNotificationUID(
3111+
"source.notification.sema_enabled");
3112+
ResponseBuilder RespBuilder;
3113+
auto Dict = RespBuilder.getDictionary();
3114+
Dict.set(KeyNotification, SemaEnabledNotificationUID);
3115+
sourcekitd::postNotification(RespBuilder.createResponse());
31093116
});
31103117
});
31113118
}

0 commit comments

Comments
 (0)