File tree 1 file changed +4
-16
lines changed
Core/Sources/SuggestionWidget/SuggestionPanelContent
1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -74,21 +74,15 @@ struct CodeBlockSuggestionPanel: View {
74
74
. monospacedDigit ( )
75
75
76
76
Button ( action: {
77
- Task {
78
- await commandHandler. presentNextSuggestion ( )
79
- NSWorkspace . activatePreviousActiveXcode ( )
80
- }
77
+ Task { await commandHandler. presentNextSuggestion ( ) }
81
78
} ) {
82
79
Image ( systemName: " chevron.right " )
83
80
} . buttonStyle ( . plain)
84
81
85
82
Spacer ( )
86
83
87
84
Button ( action: {
88
- Task {
89
- await commandHandler. dismissSuggestion ( )
90
- NSWorkspace . activatePreviousActiveXcode ( )
91
- }
85
+ Task { await commandHandler. dismissSuggestion ( ) }
92
86
} ) {
93
87
Text ( " Dismiss " ) . foregroundStyle ( . tertiary) . padding ( . trailing, 4 )
94
88
} . buttonStyle ( . plain)
@@ -126,10 +120,7 @@ struct CodeBlockSuggestionPanel: View {
126
120
WithPerceptionTracking {
127
121
HStack {
128
122
Button ( action: {
129
- Task {
130
- await commandHandler. presentPreviousSuggestion ( )
131
- NSWorkspace . activatePreviousActiveXcode ( )
132
- }
123
+ Task { await commandHandler. presentPreviousSuggestion ( ) }
133
124
} ) {
134
125
Image ( systemName: " chevron.left " )
135
126
} . buttonStyle ( . plain)
@@ -140,10 +131,7 @@ struct CodeBlockSuggestionPanel: View {
140
131
. monospacedDigit ( )
141
132
142
133
Button ( action: {
143
- Task {
144
- await commandHandler. presentNextSuggestion ( )
145
- NSWorkspace . activatePreviousActiveXcode ( )
146
- }
134
+ Task { await commandHandler. presentNextSuggestion ( ) }
147
135
} ) {
148
136
Image ( systemName: " chevron.right " )
149
137
} . buttonStyle ( . plain)
You can’t perform that action at this time.
0 commit comments