File tree Expand file tree Collapse file tree
apps/editor/src/commands/select-imported-files-command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,15 +153,17 @@ export const select_imported_files_command = (
153153 label : 'immediate' ,
154154 kind : vscode . QuickPickItemKind . Separator
155155 } )
156- quick_pick_items . push ( ...( await map_to_quick_pick ( valid_immediate ) ) )
156+ const immediate_items = await map_to_quick_pick ( valid_immediate )
157+ quick_pick_items . push ( ...immediate_items )
157158 }
158159
159160 if ( valid_recursive . length > 0 ) {
160161 quick_pick_items . push ( {
161162 label : 'recursive' ,
162163 kind : vscode . QuickPickItemKind . Separator
163164 } )
164- quick_pick_items . push ( ...( await map_to_quick_pick ( valid_recursive ) ) )
165+ const recursive_items = await map_to_quick_pick ( valid_recursive )
166+ quick_pick_items . push ( ...recursive_items )
165167 }
166168
167169 const quick_pick = vscode . window . createQuickPick < ImportQuickPickItem > ( )
Original file line number Diff line number Diff line change 11import * as vscode from 'vscode'
2- import { WorkspaceProvider } from '../../../../context/providers/workspace/workspace-provider'
32import { is_valid_uri } from './is-valid-uri'
3+ import { WorkspaceProvider } from '@/context/providers/workspace/workspace-provider'
44
55export const get_all_files = async (
66 uri : vscode . Uri ,
@@ -19,7 +19,8 @@ export const get_all_files = async (
1919 if ( type & vscode . FileType . File ) {
2020 results . push ( child_uri )
2121 } else if ( type & vscode . FileType . Directory ) {
22- results . push ( ...( await get_all_files ( child_uri , workspace_provider ) ) )
22+ const child_files = await get_all_files ( child_uri , workspace_provider )
23+ results . push ( ...child_files )
2324 }
2425 }
2526 return results
You can’t perform that action at this time.
0 commit comments