Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
3e0c62ae
Commit
3e0c62ae
authored
May 12, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use provider name in callback
parent
9fb30ce7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
solidityImport.spec.ts
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
+1
-1
file-panel.js
apps/remix-ide/src/app/panels/file-panel.js
+1
-1
fileSystem.ts
libs/remix-ui/file-explorer/src/lib/actions/fileSystem.ts
+5
-4
No files found.
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
View file @
3e0c62ae
...
...
@@ -26,7 +26,7 @@ module.exports = {
'Test Failed Import'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
addFile
(
'Untitled3.sol'
,
sources
[
2
][
'Untitled3.sol'
])
.
clickLaunchIcon
(
'solidity'
)
.
assert
.
containsText
(
'#compileTabView .error pre'
,
'not found
default_workspace/
Untitled11.sol'
)
.
assert
.
containsText
(
'#compileTabView .error pre'
,
'not found Untitled11.sol'
)
},
'Test Github Import - from master branch'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
apps/remix-ide/src/app/panels/file-panel.js
View file @
3e0c62ae
...
...
@@ -218,7 +218,7 @@ module.exports = class Filepanel extends ViewPlugin {
}
catch
(
error
)
{
console
.
error
(
error
)
}
},
20
0
)
},
1
0
)
}
}
}
...
...
libs/remix-ui/file-explorer/src/lib/actions/fileSystem.ts
View file @
3e0c62ae
...
...
@@ -183,7 +183,7 @@ export const init = (provider, workspaceName: string, plugin, registry) => (disp
if
(
provider
)
{
provider
.
event
.
register
(
'fileAdded'
,
async
(
filePath
)
=>
{
if
(
extractParentFromKey
(
filePath
)
===
'/.workspaces'
)
return
const
path
=
extractParentFromKey
(
filePath
)
||
workspaceName
const
path
=
extractParentFromKey
(
filePath
)
||
provider
.
workspace
||
provider
.
type
||
''
const
data
=
await
fetchDirectoryContent
(
provider
,
path
)
dispatch
(
fileAddedSuccess
(
path
,
data
))
...
...
@@ -193,18 +193,18 @@ export const init = (provider, workspaceName: string, plugin, registry) => (disp
})
provider
.
event
.
register
(
'folderAdded'
,
async
(
folderPath
)
=>
{
if
(
extractParentFromKey
(
folderPath
)
===
'/.workspaces'
)
return
const
path
=
extractParentFromKey
(
folderPath
)
||
workspaceName
const
path
=
extractParentFromKey
(
folderPath
)
||
provider
.
workspace
||
provider
.
type
||
''
const
data
=
await
fetchDirectoryContent
(
provider
,
path
)
dispatch
(
folderAddedSuccess
(
path
,
data
))
})
provider
.
event
.
register
(
'fileRemoved'
,
async
(
removePath
)
=>
{
const
path
=
extractParentFromKey
(
removePath
)
||
workspaceName
const
path
=
extractParentFromKey
(
removePath
)
||
provider
.
workspace
||
provider
.
type
||
''
dispatch
(
fileRemovedSuccess
(
path
,
removePath
))
})
provider
.
event
.
register
(
'fileRenamed'
,
async
(
oldPath
)
=>
{
const
path
=
extractParentFromKey
(
oldPath
)
||
workspaceName
const
path
=
extractParentFromKey
(
oldPath
)
||
provider
.
workspace
||
provider
.
type
||
''
const
data
=
await
fetchDirectoryContent
(
provider
,
path
)
dispatch
(
fileRenamedSuccess
(
path
,
oldPath
,
data
))
...
...
@@ -229,6 +229,7 @@ export const init = (provider, workspaceName: string, plugin, registry) => (disp
dispatch
(
displayNotification
(
'File Renamed Failed'
,
''
,
'Ok'
,
'Cancel'
))
})
provider
.
event
.
register
(
'rootFolderChanged'
,
async
()
=>
{
workspaceName
=
provider
.
workspace
||
provider
.
type
||
''
fetchDirectory
(
provider
,
workspaceName
)(
dispatch
)
})
dispatch
(
fetchProviderSuccess
(
provider
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment