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
5fd69f99
Commit
5fd69f99
authored
May 19, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed async/await
parent
81109c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sourceHighlighter.js
apps/remix-ide/src/app/editor/sourceHighlighter.js
+2
-2
No files found.
apps/remix-ide/src/app/editor/sourceHighlighter.js
View file @
5fd69f99
...
@@ -31,7 +31,7 @@ class SourceHighlighter {
...
@@ -31,7 +31,7 @@ class SourceHighlighter {
}
}
}
}
async
currentSourceLocationFromfileName
(
lineColumnPos
,
filePath
,
style
)
{
currentSourceLocationFromfileName
(
lineColumnPos
,
filePath
,
style
)
{
if
(
this
.
statementMarker
)
this
.
_deps
.
editor
.
removeMarker
(
this
.
statementMarker
,
this
.
source
)
if
(
this
.
statementMarker
)
this
.
_deps
.
editor
.
removeMarker
(
this
.
statementMarker
,
this
.
source
)
if
(
this
.
fullLineMarker
)
this
.
_deps
.
editor
.
removeMarker
(
this
.
fullLineMarker
,
this
.
source
)
if
(
this
.
fullLineMarker
)
this
.
_deps
.
editor
.
removeMarker
(
this
.
fullLineMarker
,
this
.
source
)
this
.
statementMarker
=
null
this
.
statementMarker
=
null
...
@@ -40,7 +40,7 @@ class SourceHighlighter {
...
@@ -40,7 +40,7 @@ class SourceHighlighter {
if
(
lineColumnPos
)
{
if
(
lineColumnPos
)
{
this
.
source
=
filePath
this
.
source
=
filePath
if
(
this
.
_deps
.
config
.
get
(
'currentFile'
)
!==
this
.
source
)
{
if
(
this
.
_deps
.
config
.
get
(
'currentFile'
)
!==
this
.
source
)
{
await
this
.
_deps
.
fileManager
.
switchFile
(
this
.
source
)
this
.
_deps
.
fileManager
.
switchFile
(
this
.
source
)
}
}
const
css
=
csjs
`
const
css
=
csjs
`
...
...
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