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
9c72cea3
Unverified
Commit
9c72cea3
authored
Jan 21, 2021
by
bunsenstraat
Committed by
GitHub
Jan 21, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #763 from ethereum/bunsenstraat-patch-1
Update fileManager.js
parents
6f0fd77b
bb23300c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+3
-4
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
9c72cea3
...
@@ -424,15 +424,14 @@ class FileManager extends Plugin {
...
@@ -424,15 +424,14 @@ class FileManager extends Plugin {
}
}
fileRemovedEvent
(
path
)
{
fileRemovedEvent
(
path
)
{
// TODO: Only keep `this.emit` (issue#2210)
this
.
emit
(
'fileRemoved'
,
path
)
this
.
events
.
emit
(
'fileRemoved'
,
path
)
if
(
!
this
.
openedFiles
[
path
])
return
if
(
path
===
this
.
_deps
.
config
.
get
(
'currentFile'
))
{
if
(
path
===
this
.
_deps
.
config
.
get
(
'currentFile'
))
{
this
.
_deps
.
config
.
set
(
'currentFile'
,
''
)
this
.
_deps
.
config
.
set
(
'currentFile'
,
''
)
}
}
this
.
editor
.
discard
(
path
)
this
.
editor
.
discard
(
path
)
delete
this
.
openedFiles
[
path
]
delete
this
.
openedFiles
[
path
]
// TODO: Only keep `this.emit` (issue#2210)
this
.
emit
(
'fileRemoved'
,
path
)
this
.
events
.
emit
(
'fileRemoved'
,
path
)
this
.
openFile
()
this
.
openFile
()
}
}
...
...
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