Commit 000a67f4 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'mg-upgrade-webpack' into 'master'

Upgrade webpack and monaco-editor to latest

See merge request gitlab-org/gitlab-ce!24646
parents 47e6675c ef6311d6
......@@ -13,12 +13,12 @@ export default class Model {
(this.originalModel = monacoEditor.createModel(
head ? head.content : this.file.raw,
undefined,
new Uri(false, false, `original/${this.path}`),
new Uri('gitlab', false, `original/${this.path}`),
)),
(this.model = monacoEditor.createModel(
this.content,
undefined,
new Uri(false, false, this.path),
new Uri('gitlab', false, this.path),
)),
);
if (this.file.mrChange) {
......@@ -26,7 +26,7 @@ export default class Model {
(this.baseModel = monacoEditor.createModel(
this.file.baseRaw,
undefined,
new Uri(false, false, `target/${this.path}`),
new Uri('gitlab', false, `target/${this.path}`),
)),
);
}
......
......@@ -56,7 +56,7 @@ describe('Multi-file editor library decorations controller', () => {
controller.addDecorations(model, 'key', [{ decoration: 'decorationValue' }]);
expect(controller.decorations.size).toBe(1);
expect(controller.decorations.keys().next().value).toBe('path--path');
expect(controller.decorations.keys().next().value).toBe('gitlab:path--path');
});
it('calls decorate method', () => {
......@@ -90,7 +90,7 @@ describe('Multi-file editor library decorations controller', () => {
controller.decorate(model);
expect(controller.editorDecorations.keys().next().value).toBe('path--path');
expect(controller.editorDecorations.keys().next().value).toBe('gitlab:path--path');
});
});
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment