From 19df744331d4019809bca59d6d61e22035bf1a88 Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Thu, 11 Apr 2019 14:10:05 +0200 Subject: [PATCH] Update SourceHightlighters --- src/app/editor/SourceHighlighters.js | 4 +++- src/app/tabs/compile-tab.js | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/editor/SourceHighlighters.js b/src/app/editor/SourceHighlighters.js index fc8e119839..e7378ec7d2 100644 --- a/src/app/editor/SourceHighlighters.js +++ b/src/app/editor/SourceHighlighters.js @@ -6,10 +6,12 @@ import { EditorApi } from 'remix-plugin' const profile = { displayName: 'source highlighters', name: 'sourceHighlighters', - methods: ['highlight', 'discardHighlight'], description: 'service - highlight source code' } +// EditorApi: +// - methods: ['highlight', 'discardHighlight'], + class SourceHighlighters extends EditorApi { constructor () { diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 8e1fb9672c..d9970b6cff 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -28,6 +28,10 @@ const profile = { permission: true } +// EditorApi: +// - events: ['compilationFinished'], +// - methods: ['getCompilationResult'] + class CompileTab extends CompilerApi { constructor (editor, config, renderer, swarmfileProvider, fileManager, fileProviders, pluginManager) {