Skip to content

Commit ec69b12

Browse files
committed
Rename methods
1 parent e27b1ab commit ec69b12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Core/Sources/SuggestionWidget/WidgetWindowsController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ actor WidgetWindowsController: NSObject {
5858

5959
xcodeInspector.$focusedEditor.sink { [weak self] editor in
6060
guard let editor else { return }
61-
Task { [weak self] in await self?.observe(to: editor) }
61+
Task { [weak self] in await self?.observe(toEditor: editor) }
6262
}.store(in: &cancellable)
6363

6464
xcodeInspector.$completionPanel.sink { [weak self] newValue in
@@ -278,10 +278,10 @@ private extension WidgetWindowsController {
278278
}
279279
guard currentApplicationProcessIdentifier != app.processIdentifier else { return }
280280
currentApplicationProcessIdentifier = app.processIdentifier
281-
observe(to: app)
281+
observe(toApp: app)
282282
}
283283

284-
func observe(to app: AppInstanceInspector) {
284+
func observe(toApp app: AppInstanceInspector) {
285285
guard let app = app as? XcodeAppInstanceInspector else { return }
286286
let notifications = app.axNotifications
287287
observeToAppTask?.cancel()
@@ -337,7 +337,7 @@ private extension WidgetWindowsController {
337337
}
338338
}
339339

340-
func observe(to editor: SourceEditor) {
340+
func observe(toEditor editor: SourceEditor) {
341341
observeToFocusedEditorTask?.cancel()
342342
observeToFocusedEditorTask = Task {
343343
let selectionRangeChange = await editor.axNotifications.notifications()

0 commit comments

Comments
 (0)