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
d7204faf
Commit
d7204faf
authored
Oct 29, 2020
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force discard all highlights when plugin is deactivated
parent
95c48637
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
side-panel.js
apps/remix-ide/src/app/components/side-panel.js
+1
-0
SourceHighlighters.js
apps/remix-ide/src/app/editor/SourceHighlighters.js
+0
-1
editor.js
apps/remix-ide/src/app/editor/editor.js
+2
-0
No files found.
apps/remix-ide/src/app/components/side-panel.js
View file @
d7204faf
...
...
@@ -97,6 +97,7 @@ export class SidePanel extends AbstractPanel {
removeView
(
profile
)
{
super
.
removeView
(
profile
)
this
.
emit
(
'pluginDisabled'
,
profile
.
name
)
this
.
verticalIcons
.
unlinkContent
(
profile
)
}
...
...
apps/remix-ide/src/app/editor/SourceHighlighters.js
View file @
d7204faf
...
...
@@ -42,7 +42,6 @@ class SourceHighlighters {
}
}
discardHighlight
(
from
)
{
if
(
this
.
highlighters
[
from
])
{
for
(
const
index
in
this
.
highlighters
[
from
])
this
.
highlighters
[
from
][
index
].
currentSourceLocation
(
null
)
...
...
apps/remix-ide/src/app/editor/editor.js
View file @
d7204faf
...
...
@@ -198,10 +198,12 @@ class Editor extends Plugin {
onActivation
()
{
this
.
on
(
'sidePanel'
,
'focusChanged'
,
(
name
)
=>
this
.
sourceHighlighters
.
hideHighlightsExcept
(
name
))
this
.
on
(
'sidePanel'
,
'pluginDisabled'
,
(
name
)
=>
this
.
sourceHighlighters
.
discardHighlight
(
name
))
}
onDeactivation
()
{
this
.
off
(
'sidePanel'
,
'focusChanged'
)
this
.
off
(
'sidePanel'
,
'pluginDisabled'
)
}
highlight
(
position
,
filePath
,
hexColor
)
{
...
...
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