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
14a33711
Commit
14a33711
authored
Mar 15, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linting
parent
d7cdc694
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
tab-proxy.js
apps/remix-ide/src/app/panels/tab-proxy.js
+15
-15
No files found.
apps/remix-ide/src/app/panels/tab-proxy.js
View file @
14a33711
...
@@ -72,16 +72,16 @@ export class TabProxy extends Plugin {
...
@@ -72,16 +72,16 @@ export class TabProxy extends Plugin {
if
(
this
.
_handlers
[
path
])
{
if
(
this
.
_handlers
[
path
])
{
this
.
_view
.
filetabs
.
activateTab
(
path
)
this
.
_view
.
filetabs
.
activateTab
(
path
)
return
return
}
}
this
.
addTab
(
path
,
''
,
()
=>
{
this
.
addTab
(
path
,
''
,
()
=>
{
this
.
fileManager
.
open
(
file
)
this
.
fileManager
.
open
(
file
)
this
.
event
.
emit
(
'openFile'
,
file
)
this
.
event
.
emit
(
'openFile'
,
file
)
},
},
()
=>
{
()
=>
{
this
.
fileManager
.
closeFile
(
file
)
this
.
fileManager
.
closeFile
(
file
)
this
.
event
.
emit
(
'closeFile'
,
file
)
this
.
event
.
emit
(
'closeFile'
,
file
)
})
})
}
}
})
})
...
@@ -89,8 +89,8 @@ export class TabProxy extends Plugin {
...
@@ -89,8 +89,8 @@ export class TabProxy extends Plugin {
const
workspace
=
this
.
fileManager
.
getCurrentWorkspace
()
const
workspace
=
this
.
fileManager
.
getCurrentWorkspace
()
if
(
workspace
)
{
if
(
workspace
)
{
if
(
isFolder
)
{
if
(
isFolder
)
{
for
(
const
tab
of
this
.
loadedTabs
)
{
for
(
const
tab
of
this
.
loadedTabs
)
{
if
(
tab
.
name
.
indexOf
(
workspace
+
'/'
+
oldName
+
'/'
)
===
0
)
{
if
(
tab
.
name
.
indexOf
(
workspace
+
'/'
+
oldName
+
'/'
)
===
0
)
{
const
newTabName
=
workspace
+
'/'
+
newName
+
tab
.
name
.
slice
(
workspace
+
'/'
+
oldName
.
length
,
tab
.
name
.
length
)
const
newTabName
=
workspace
+
'/'
+
newName
+
tab
.
name
.
slice
(
workspace
+
'/'
+
oldName
.
length
,
tab
.
name
.
length
)
this
.
renameTab
(
tab
.
name
,
newTabName
)
this
.
renameTab
(
tab
.
name
,
newTabName
)
...
@@ -105,12 +105,12 @@ export class TabProxy extends Plugin {
...
@@ -105,12 +105,12 @@ export class TabProxy extends Plugin {
for
(
const
tab
of
this
.
loadedTabs
)
{
for
(
const
tab
of
this
.
loadedTabs
)
{
if
(
tab
.
name
.
indexOf
(
this
.
fileManager
.
mode
+
'/'
+
oldName
+
'/'
)
===
0
)
{
if
(
tab
.
name
.
indexOf
(
this
.
fileManager
.
mode
+
'/'
+
oldName
+
'/'
)
===
0
)
{
const
newTabName
=
this
.
fileManager
.
mode
+
'/'
+
newName
+
tab
.
name
.
slice
(
this
.
fileManager
.
mode
+
'/'
+
oldName
.
length
,
tab
.
name
.
length
)
const
newTabName
=
this
.
fileManager
.
mode
+
'/'
+
newName
+
tab
.
name
.
slice
(
this
.
fileManager
.
mode
+
'/'
+
oldName
.
length
,
tab
.
name
.
length
)
this
.
renameTab
(
tab
.
name
,
newTabName
)
this
.
renameTab
(
tab
.
name
,
newTabName
)
}
}
}
return
}
}
return
// should change the tab title too
}
// should change the tab title too
this
.
renameTab
(
this
.
fileManager
.
mode
+
'/'
+
oldName
,
workspace
+
'/'
+
newName
)
this
.
renameTab
(
this
.
fileManager
.
mode
+
'/'
+
oldName
,
workspace
+
'/'
+
newName
)
}
}
})
})
...
...
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