Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
eeafa8ac
Commit
eeafa8ac
authored
Jun 08, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eslint violation
parent
1edf0a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/ide/lib/common/model.js
app/assets/javascripts/ide/lib/common/model.js
+4
-4
No files found.
app/assets/javascripts/ide/lib/common/model.js
View file @
eeafa8ac
import
{
editor
as
monacoEditor
,
Uri
as
monacoUri
}
from
'
monaco-editor
'
;
import
{
editor
as
monacoEditor
,
Uri
}
from
'
monaco-editor
'
;
import
Disposable
from
'
./disposable
'
;
import
eventHub
from
'
../../eventhub
'
;
...
...
@@ -13,12 +13,12 @@ export default class Model {
(
this
.
originalModel
=
monacoEditor
.
createModel
(
head
?
head
.
content
:
this
.
file
.
raw
,
undefined
,
new
monaco
Uri
(
false
,
false
,
`original/
${
this
.
path
}
`
),
new
Uri
(
false
,
false
,
`original/
${
this
.
path
}
`
),
)),
(
this
.
model
=
monacoEditor
.
createModel
(
this
.
content
,
undefined
,
new
monaco
Uri
(
false
,
false
,
this
.
path
),
new
Uri
(
false
,
false
,
this
.
path
),
)),
);
if
(
this
.
file
.
mrChange
)
{
...
...
@@ -26,7 +26,7 @@ export default class Model {
(
this
.
baseModel
=
monacoEditor
.
createModel
(
this
.
file
.
baseRaw
,
undefined
,
new
monaco
Uri
(
false
,
false
,
`target/
${
this
.
path
}
`
),
new
Uri
(
false
,
false
,
`target/
${
this
.
path
}
`
),
)),
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment