Commit 38f1fc7e authored by Frédéric Caplette's avatar Frédéric Caplette

Add quickSuggestions to Pipeline Editor

We enable quick suggestions for the pipeline editor
which allow the user to see suggestions on keywords
as they type.

Changelog: changed
parent ab695c19
...@@ -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