Skip to content

Commit 18455e6

Browse files
authored
Merge pull request #29558 from ahoppen/sema-enabled-notificaiton
[sourcekitd] Send a notification when semantic functionality is enabled again
2 parents f3959de + cb26625 commit 18455e6

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
@@ -3107,6 +3107,13 @@ static bool isSemanticEditorDisabled() {
31073107
NSEC_PER_SEC * Seconds);
31083108
dispatch_after(When, dispatch_get_main_queue(), ^{
31093109
Toggle = SemaInfoToggle::Enable;
3110+
3111+
static UIdent SemaEnabledNotificationUID(
3112+
"source.notification.sema_enabled");
3113+
ResponseBuilder RespBuilder;
3114+
auto Dict = RespBuilder.getDictionary();
3115+
Dict.set(KeyNotification, SemaEnabledNotificationUID);
3116+
sourcekitd::postNotification(RespBuilder.createResponse());
31103117
});
31113118
});
31123119
}

0 commit comments

Comments
 (0)