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
dd978686
Commit
dd978686
authored
Oct 19, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix highlight
parent
3d146aa3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
9 deletions
+7
-9
debugger-api.ts
apps/debugger/src/app/debugger-api.ts
+1
-3
contextualListener.js
apps/remix-ide/src/app/editor/contextualListener.js
+1
-1
editor.js
apps/remix-ide/src/app/editor/editor.js
+3
-1
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+1
-1
ErrorRenderer.tsx
libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
+1
-3
No files found.
apps/debugger/src/app/debugger-api.ts
View file @
dd978686
...
...
@@ -44,9 +44,7 @@ export const DebuggerApiMixin = (Base) => class extends Base {
}
async
highlight
(
lineColumnPos
,
path
)
{
await
this
.
call
(
'fileManager'
,
'open'
,
path
)
await
this
.
call
(
'editor'
,
'gotoLine'
,
lineColumnPos
.
start
.
line
,
lineColumnPos
.
start
.
column
)
await
this
.
call
(
'editor'
,
'highlight'
,
lineColumnPos
,
path
)
await
this
.
call
(
'editor'
,
'highlight'
,
lineColumnPos
,
path
,
''
,
{
focus
:
true
})
}
async
getFile
(
path
)
{
...
...
apps/remix-ide/src/app/editor/contextualListener.js
View file @
dd978686
...
...
@@ -141,7 +141,7 @@ class ContextualListener extends Plugin {
}
const
fileName
=
lastCompilationResult
.
getSourceName
(
position
.
file
)
if
(
fileName
)
{
return
this
.
call
(
'editor'
,
'highlight'
,
lineColumn
,
fileName
)
return
this
.
call
(
'editor'
,
'highlight'
,
lineColumn
,
fileName
,
''
,
{
focus
:
false
}
)
}
}
return
null
...
...
apps/remix-ide/src/app/editor/editor.js
View file @
dd978686
...
...
@@ -466,10 +466,12 @@ class Editor extends Plugin {
await
this
.
addDecoration
(
annotation
,
filePath
,
'sourceAnnotationsPerFile'
)
}
async
highlight
(
position
,
filePath
)
{
async
highlight
(
position
,
filePath
,
highlightColor
,
opt
=
{
focus
:
true
}
)
{
filePath
=
filePath
||
this
.
currentFile
if
(
opt
.
focus
)
{
await
this
.
call
(
'fileManager'
,
'open'
,
filePath
)
this
.
gotoLine
(
position
.
start
.
line
,
position
.
start
.
column
)
}
await
this
.
addDecoration
({
position
},
filePath
,
'markerPerFile'
)
}
...
...
apps/remix-ide/src/app/tabs/test-tab.js
View file @
dd978686
...
...
@@ -224,7 +224,7 @@ module.exports = class TestTab extends ViewPlugin {
runningTests
[
fileName
].
content
)
await
this
.
call
(
'editor'
,
'discardHighlight'
)
await
this
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
)
await
this
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
,
''
,
{
focus
:
true
}
)
}
}
...
...
libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
View file @
dd978686
...
...
@@ -27,9 +27,7 @@ const ErrorRenderer = ({ message, opt, editor }: ErrorRendererProps) => {
const
handlePointToErrorOnClick
=
async
(
location
,
fileName
)
=>
{
await
editor
.
call
(
'editor'
,
'discardHighlight'
)
await
editor
.
call
(
'fileManager'
,
'open'
,
fileName
)
await
editor
.
call
(
'editor'
,
'gotoLine'
,
location
.
start
.
line
,
location
.
start
.
column
)
await
editor
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
)
await
editor
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
,
''
,
{
focus
:
true
})
}
if
(
!
message
)
return
...
...
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