Commit e3a08416 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch...

Merge branch '344503-spike-auto-complete-pinpoint-what-is-causing-the-difference-between-the-webide-and-the-2' into 'master'

Add quick suggestions to pipeline editor

See merge request gitlab-org/gitlab!79670
parents f968a83c 38f1fc7e
...@@ -5,6 +5,11 @@ import SourceEditor from '~/vue_shared/components/source_editor.vue'; ...@@ -5,6 +5,11 @@ import SourceEditor from '~/vue_shared/components/source_editor.vue';
import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default { export default {
editorOptions: {
// Quick suggestions is so that monaco can provide
// autocomplete for keywords
quickSuggestions: true,
},
components: { components: {
SourceEditor, SourceEditor,
}, },
...@@ -29,6 +34,7 @@ export default { ...@@ -29,6 +34,7 @@ export default {
<div class="gl-border-solid gl-border-gray-100 gl-border-1 gl-border-t-none!"> <div class="gl-border-solid gl-border-gray-100 gl-border-1 gl-border-t-none!">
<source-editor <source-editor
ref="editor" ref="editor"
:editor-options="$options.editorOptions"
:file-name="ciConfigPath" :file-name="ciConfigPath"
v-bind="$attrs" v-bind="$attrs"
@[$options.readyEvent]="registerCiSchema($event)" @[$options.readyEvent]="registerCiSchema($event)"
......
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