Skip to content

Commit c335cbe

Browse files
committed
Fix that the GitHub Copilot auth service is not restarted After changing node path
1 parent 8714702 commit c335cbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/Sources/HostApp/AccountSettings/CopilotView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ struct CopilotView: View {
113113
}.onAppear {
114114
if isPreview { return }
115115
checkStatus()
116+
}.onChange(of: settings.runNodeWith) { _ in
117+
Self.copilotAuthService = nil
118+
}.onChange(of: settings.nodePath) { _ in
119+
Self.copilotAuthService = nil
116120
}
117121
}
118122

0 commit comments

Comments
 (0)