@@ -659,15 +659,15 @@ export function Workspace() {
659
659
660
660
const uploadFile = ( target ) => {
661
661
const parentFolder = getFocusedFolder ( )
662
- const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] ) ]
662
+ const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] . filter ( path => ! path . includes ( '.deps' ) ) ) ]
663
663
664
664
global . dispatchHandleExpandPath ( expandPath )
665
665
global . dispatchUploadFile ( target , parentFolder )
666
666
}
667
667
668
668
const uploadFolder = ( target ) => {
669
669
const parentFolder = getFocusedFolder ( )
670
- const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] ) ]
670
+ const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] . filter ( path => ! path . includes ( '.deps' ) ) ) ]
671
671
672
672
global . dispatchHandleExpandPath ( expandPath )
673
673
global . dispatchUploadFolder ( target , parentFolder )
@@ -810,7 +810,7 @@ export function Workspace() {
810
810
811
811
const handleNewFileInput = async ( parentFolder ?: string ) => {
812
812
if ( ! parentFolder ) parentFolder = getFocusedFolder ( )
813
- const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] ) ]
813
+ const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] . filter ( path => ! path . includes ( '.deps' ) ) ) ]
814
814
815
815
await global . dispatchAddInputField ( parentFolder , 'file' )
816
816
global . dispatchHandleExpandPath ( expandPath )
@@ -820,7 +820,7 @@ export function Workspace() {
820
820
const handleNewFolderInput = async ( parentFolder ?: string ) => {
821
821
if ( ! parentFolder ) parentFolder = getFocusedFolder ( )
822
822
else if ( parentFolder . indexOf ( '.sol' ) !== - 1 || parentFolder . indexOf ( '.js' ) !== - 1 ) parentFolder = extractParentFromKey ( parentFolder )
823
- const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] ) ]
823
+ const expandPath = [ ...new Set ( [ ...global . fs . browser . expandPath , parentFolder ] . filter ( path => ! path . includes ( '.deps' ) ) ) ]
824
824
825
825
await global . dispatchAddInputField ( parentFolder , 'folder' )
826
826
global . dispatchHandleExpandPath ( expandPath )
0 commit comments