fix source highlight

pull/2122/head
yann300 3 years ago
parent 92ce47364f
commit 0a318a6746
  1. 1
      apps/remix-ide/src/app.js
  2. 5
      libs/remix-ui/editor/src/lib/remix-ui-editor.css
  3. 2
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -338,6 +338,7 @@ class AppComponent {
await this.appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'contextualListener', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport', 'gistHandler']) await this.appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'contextualListener', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport', 'gistHandler'])
await this.appManager.activatePlugin(['settings']) await this.appManager.activatePlugin(['settings'])
await this.appManager.activatePlugin(['walkthrough','storage', 'search']) await this.appManager.activatePlugin(['walkthrough','storage', 'search'])
await this.appManager.activatePlugin(['scriptRunner'])
this.appManager.on( this.appManager.on(
'filePanel', 'filePanel',

@ -18,4 +18,9 @@
.contextview { .contextview {
opacity: 1; opacity: 1;
position: absolute; position: absolute;
}
.inline-class {
background: var(--primary) !important;
color: var(--text) !important;
} }

@ -263,7 +263,7 @@ export const EditorUI = (props: EditorUIProps) => {
range: new monacoRef.current.Range(decoration.position.start.line + 1, decoration.position.start.column + 1, decoration.position.end.line + 1, decoration.position.end.column + 1), range: new monacoRef.current.Range(decoration.position.start.line + 1, decoration.position.start.column + 1, decoration.position.end.line + 1, decoration.position.end.column + 1),
options: { options: {
isWholeLine, isWholeLine,
linesDecorationsClassName: `alert-info border-0 selectionHighlight highlightLine${decoration.position.start.line + 1}` inlineClassName: `inline-class border-0 selectionHighlight highlightLine${decoration.position.start.line + 1}`
} }
} }
} }

Loading…
Cancel
Save