diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-08 00:34:50 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-08 07:36:37 +0300 |
commit | 2729205b391c22eb3a15408580261456cc030530 (patch) | |
tree | 41781c6f9f5d87df759ff859b630cfac9c4ab84a /app/assets/javascripts/ide/lib/diff | |
parent | fd400b3b4754f5104199834ecd3ae2bf72072635 (diff) |
remove monacoLoader and import monaco directly within Editor class
Diffstat (limited to 'app/assets/javascripts/ide/lib/diff')
-rw-r--r-- | app/assets/javascripts/ide/lib/diff/controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/lib/diff/controller.js b/app/assets/javascripts/ide/lib/diff/controller.js index f579424cf33..046e562ba2b 100644 --- a/app/assets/javascripts/ide/lib/diff/controller.js +++ b/app/assets/javascripts/ide/lib/diff/controller.js @@ -1,4 +1,4 @@ -/* global monaco */ +import { Range } from 'monaco-editor'; import { throttle } from 'underscore'; import DirtyDiffWorker from './diff_worker'; import Disposable from '../common/disposable'; @@ -16,7 +16,7 @@ export const getDiffChangeType = change => { }; export const getDecorator = change => ({ - range: new monaco.Range(change.lineNumber, 1, change.endLineNumber, 1), + range: new Range(change.lineNumber, 1, change.endLineNumber, 1), options: { isWholeLine: true, linesDecorationsClassName: `dirty-diff dirty-diff-${getDiffChangeType(change)}`, |