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
8b445237
Commit
8b445237
authored
Mar 15, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function from getCurrentWorkspace to currentWorkspace in fileManager
parent
a9bc4c1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+1
-1
tab-proxy.js
apps/remix-ide/src/app/panels/tab-proxy.js
+4
-4
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
8b445237
...
@@ -611,7 +611,7 @@ class FileManager extends Plugin {
...
@@ -611,7 +611,7 @@ class FileManager extends Plugin {
})
})
}
}
getC
urrentWorkspace
()
{
c
urrentWorkspace
()
{
const
file
=
this
.
currentFile
()
||
''
const
file
=
this
.
currentFile
()
||
''
const
provider
=
this
.
fileProviderOf
(
file
)
const
provider
=
this
.
fileProviderOf
(
file
)
...
...
apps/remix-ide/src/app/panels/tab-proxy.js
View file @
8b445237
...
@@ -38,19 +38,19 @@ export class TabProxy extends Plugin {
...
@@ -38,19 +38,19 @@ export class TabProxy extends Plugin {
})
})
fileManager
.
events
.
on
(
'fileRemoved'
,
(
name
)
=>
{
fileManager
.
events
.
on
(
'fileRemoved'
,
(
name
)
=>
{
const
workspace
=
this
.
fileManager
.
getC
urrentWorkspace
()
const
workspace
=
this
.
fileManager
.
c
urrentWorkspace
()
workspace
?
this
.
removeTab
(
workspace
+
'/'
+
name
)
:
this
.
removeTab
(
this
.
fileManager
.
mode
+
'/'
+
name
)
workspace
?
this
.
removeTab
(
workspace
+
'/'
+
name
)
:
this
.
removeTab
(
this
.
fileManager
.
mode
+
'/'
+
name
)
})
})
fileManager
.
events
.
on
(
'fileClosed'
,
(
name
)
=>
{
fileManager
.
events
.
on
(
'fileClosed'
,
(
name
)
=>
{
const
workspace
=
this
.
fileManager
.
getC
urrentWorkspace
()
const
workspace
=
this
.
fileManager
.
c
urrentWorkspace
()
workspace
?
this
.
removeTab
(
workspace
+
'/'
+
name
)
:
this
.
removeTab
(
this
.
fileManager
.
mode
+
'/'
+
name
)
workspace
?
this
.
removeTab
(
workspace
+
'/'
+
name
)
:
this
.
removeTab
(
this
.
fileManager
.
mode
+
'/'
+
name
)
})
})
fileManager
.
events
.
on
(
'currentFileChanged'
,
(
file
)
=>
{
fileManager
.
events
.
on
(
'currentFileChanged'
,
(
file
)
=>
{
const
workspace
=
this
.
fileManager
.
getC
urrentWorkspace
()
const
workspace
=
this
.
fileManager
.
c
urrentWorkspace
()
if
(
workspace
)
{
if
(
workspace
)
{
const
workspacePath
=
workspace
+
'/'
+
file
const
workspacePath
=
workspace
+
'/'
+
file
...
@@ -86,7 +86,7 @@ export class TabProxy extends Plugin {
...
@@ -86,7 +86,7 @@ export class TabProxy extends Plugin {
})
})
fileManager
.
events
.
on
(
'fileRenamed'
,
(
oldName
,
newName
,
isFolder
)
=>
{
fileManager
.
events
.
on
(
'fileRenamed'
,
(
oldName
,
newName
,
isFolder
)
=>
{
const
workspace
=
this
.
fileManager
.
getC
urrentWorkspace
()
const
workspace
=
this
.
fileManager
.
c
urrentWorkspace
()
if
(
workspace
)
{
if
(
workspace
)
{
if
(
isFolder
)
{
if
(
isFolder
)
{
...
...
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