Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ public extension Notification.Name {

/// Holds a gallery request until the progressively mounted Custom Sidebars
/// section is ready to present it.
// lint:allow namespace-type — one-shot, main-actor handoff from a host menu to the lazily mounted Custom Sidebars section (#15931); candidate to become an injected SettingsRuntime value.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This plain // comment between the enum's /// doc block and the declaration detaches the doc comment: Swift associates a doc comment only with the declaration it immediately precedes, so CustomSidebarTemplateGalleryRequest loses "Holds a gallery request until the progressively mounted Custom Sidebars section…" in Xcode quick help / DocC. Convert the line to a /// doc line so it stays part of the doc block; the namespace scanner matches the marker against raw text regardless, so the suppression still works (verified: the rule fires without the marker and is silenced with it).

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Environment/SettingsHostActions.swift, line 13:

<comment>This plain `//` comment between the enum's `///` doc block and the declaration detaches the doc comment: Swift associates a doc comment only with the declaration it immediately precedes, so `CustomSidebarTemplateGalleryRequest` loses "Holds a gallery request until the progressively mounted Custom Sidebars section…" in Xcode quick help / DocC. Convert the line to a `///` doc line so it stays part of the doc block; the namespace scanner matches the marker against raw text regardless, so the suppression still works (verified: the rule fires without the marker and is silenced with it).</comment>

<file context>
@@ -10,6 +10,7 @@ public extension Notification.Name {
 
 /// Holds a gallery request until the progressively mounted Custom Sidebars
 /// section is ready to present it.
+// lint:allow namespace-type — one-shot, main-actor handoff from a host menu to the lazily mounted Custom Sidebars section (#15931); candidate to become an injected SettingsRuntime value.
 @MainActor
 public enum CustomSidebarTemplateGalleryRequest {
</file context>
Suggested change
// lint:allow namespace-type — one-shot, main-actor handoff from a host menu to the lazily mounted Custom Sidebars section (#15931); candidate to become an injected SettingsRuntime value.
/// lint:allow namespace-type — one-shot, main-actor handoff from a host menu to the lazily mounted Custom Sidebars section (#15931); candidate to become an injected SettingsRuntime value.

@MainActor
public enum CustomSidebarTemplateGalleryRequest {
private static var pending = false

public static func request() {
pending = true
NotificationCenter.default.post(name: .customSidebarTemplateGalleryRequested)
NotificationCenter.default.post(name: .customSidebarTemplateGalleryRequested, object: nil)
}

public static func consume() -> Bool {
Expand Down
1 change: 0 additions & 1 deletion Sources/Update/UpdateTitlebarAccessory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,6 @@ private struct TitlebarNotificationBadge: View {
@Environment(\.cmuxAccentColor) private var cmuxAccent
let unreadModel: SidebarUnreadModel
let config: TitlebarControlsStyleConfig
@Environment(\.cmuxAccentColor) private var cmuxAccent
@Environment(\.cmuxGlobalFontMagnificationPercent) private var globalFontPercent

var body: some View {
Expand Down
2 changes: 1 addition & 1 deletion vendor/bonsplit
Loading