diff --git a/apps/remix-ide/src/app/editor/contextView.js b/apps/remix-ide/src/app/editor/contextView.js index 4746082729..b94ec15245 100644 --- a/apps/remix-ide/src/app/editor/contextView.js +++ b/apps/remix-ide/src/app/editor/contextView.js @@ -28,7 +28,7 @@ class ContextView { this._view = null this._nodes = null this._current = null - this.sourceMappingDecoder = new SourceMappingDecoder() + this.sourceMappingDecoder = SourceMappingDecoder this.previousElement = null this.contextualListener.event.register('contextChanged', nodes => { this.show() diff --git a/apps/remix-ide/src/app/editor/contextualListener.js b/apps/remix-ide/src/app/editor/contextualListener.js index 26ebdd5a88..8d4957bdcb 100644 --- a/apps/remix-ide/src/app/editor/contextualListener.js +++ b/apps/remix-ide/src/app/editor/contextualListener.js @@ -39,7 +39,7 @@ class ContextualListener extends Plugin { this._activeHighlights = [] this.editor.event.register('contentChanged', () => { this._stopHighlighting() }) - this.sourceMappingDecoder = new SourceMappingDecoder() + this.sourceMappingDecoder = SourceMappingDecoder this.astWalker = new AstWalker() } diff --git a/apps/remix-ide/src/lib/offsetToLineColumnConverter.js b/apps/remix-ide/src/lib/offsetToLineColumnConverter.js index 8f13e76a90..edd2ec38ed 100644 --- a/apps/remix-ide/src/lib/offsetToLineColumnConverter.js +++ b/apps/remix-ide/src/lib/offsetToLineColumnConverter.js @@ -14,7 +14,7 @@ export class OffsetToLineColumnConverter extends Plugin { constructor () { super(profile) this.lineBreakPositionsByContent = {} - this.sourceMappingDecoder = new SourceMappingDecoder() + this.sourceMappingDecoder = SourceMappingDecoder } /**