File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,23 +134,13 @@ export const add_file_to_context_command = (
134134 label : f . label ,
135135 full_path : f . full_path
136136 } ) )
137- folder_quick_pick . buttons = [
138- vscode . QuickInputButtons . Back ,
139- {
140- iconPath : new vscode . ThemeIcon ( 'close' ) ,
141- tooltip : 'Close'
142- }
143- ]
137+ folder_quick_pick . buttons = [ vscode . QuickInputButtons . Back ]
144138
145139 let folder_accepted = false
146- let should_close_fully = false
147140
148141 folder_quick_pick . onDidTriggerButton ( ( button ) => {
149142 if ( button === vscode . QuickInputButtons . Back ) {
150143 folder_quick_pick . hide ( )
151- } else if ( button . tooltip == 'Close' ) {
152- should_close_fully = true
153- folder_quick_pick . hide ( )
154144 }
155145 } )
156146
@@ -186,11 +176,6 @@ export const add_file_to_context_command = (
186176 folder_quick_pick . dispose ( )
187177 is_showing_folder_quick_pick = false
188178
189- if ( should_close_fully ) {
190- quick_pick . dispose ( )
191- return
192- }
193-
194179 if ( ! folder_accepted ) {
195180 if ( file_items_cache . length > 0 ) {
196181 quick_pick . items = file_items_cache
Original file line number Diff line number Diff line change @@ -158,23 +158,13 @@ export const remove_file_from_context_command = (
158158 label : f . label ,
159159 full_path : f . full_path
160160 } ) )
161- folder_quick_pick . buttons = [
162- vscode . QuickInputButtons . Back ,
163- {
164- iconPath : new vscode . ThemeIcon ( 'close' ) ,
165- tooltip : 'Close'
166- }
167- ]
161+ folder_quick_pick . buttons = [ vscode . QuickInputButtons . Back ]
168162
169163 let folder_accepted = false
170- let should_close_fully = false
171164
172165 folder_quick_pick . onDidTriggerButton ( ( button ) => {
173166 if ( button === vscode . QuickInputButtons . Back ) {
174167 folder_quick_pick . hide ( )
175- } else if ( button . tooltip == 'Close' ) {
176- should_close_fully = true
177- folder_quick_pick . hide ( )
178168 }
179169 } )
180170
@@ -210,11 +200,6 @@ export const remove_file_from_context_command = (
210200 folder_quick_pick . dispose ( )
211201 is_showing_folder_quick_pick = false
212202
213- if ( should_close_fully ) {
214- quick_pick . dispose ( )
215- return
216- }
217-
218203 if ( ! folder_accepted ) {
219204 if ( file_items_cache . length > 0 ) {
220205 quick_pick . items = file_items_cache
You can’t perform that action at this time.
0 commit comments