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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1880809d
Commit
1880809d
authored
Nov 29, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added editor options to redcue EE conflicts
parent
d22bb039
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
app/assets/javascripts/repo/lib/editor.js
app/assets/javascripts/repo/lib/editor.js
+10
-0
app/assets/javascripts/repo/lib/editor_options.js
app/assets/javascripts/repo/lib/editor_options.js
+2
-0
spec/javascripts/repo/lib/editor_options_spec.js
spec/javascripts/repo/lib/editor_options_spec.js
+7
-0
No files found.
app/assets/javascripts/repo/lib/editor.js
View file @
1880809d
...
...
@@ -2,6 +2,7 @@ import DecorationsController from './decorations/controller';
import
DirtyDiffController
from
'
./diff/controller
'
;
import
Disposable
from
'
./common/disposable
'
;
import
ModelManager
from
'
./common/model_manager
'
;
import
editorOptions
from
'
./editor_options
'
;
export
default
class
Editor
{
static
create
(
monaco
)
{
...
...
@@ -49,6 +50,15 @@ export default class Editor {
this
.
currentModel
=
model
;
this
.
instance
.
updateOptions
(
editorOptions
.
reduce
((
acc
,
obj
)
=>
{
Object
.
keys
(
obj
).
forEach
((
key
)
=>
{
Object
.
assign
(
acc
,
{
[
key
]:
obj
[
key
](
model
),
});
});
return
acc
;
},
{}));
this
.
dirtyDiffController
.
reDecorate
(
model
);
}
...
...
app/assets/javascripts/repo/lib/editor_options.js
0 → 100644
View file @
1880809d
export
default
[{
}];
spec/javascripts/repo/lib/editor_options_spec.js
0 → 100644
View file @
1880809d
import
editorOptions
from
'
~/repo/lib/editor_options
'
;
describe
(
'
Multi-file editor library editor options
'
,
()
=>
{
it
(
'
returns an array
'
,
()
=>
{
expect
(
editorOptions
).
toEqual
(
jasmine
.
any
(
Array
));
});
});
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