Skip to content

Commit

Permalink
- Update _template completion to work even when the index does not exist
Browse files Browse the repository at this point in the history
- Update _template body completions
  • Loading branch information
jloleysens committed Nov 25, 2019
1 parent 59affba commit c47dbe2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ListComponent } from './list_component';

export class TemplateAutocompleteComponent extends ListComponent {
constructor(name, parent) {
super(name, mappings.getTemplates, parent);
super(name, mappings.getTemplates, parent, true, true);
}
getContextKey() {
return 'template';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"indices.put_template": {
"data_autocomplete_rules": {
"template": "index*",
"warmers": { "__scope_link": "_warmer" },
"index_patterns": [],
"mappings": { "__scope_link": "put_mapping" },
"settings": { "__scope_link": "put_settings" }
"settings": { "__scope_link": "put_settings" },
"version": 0,
"order": 0,
"aliases": {
"__template": {
"NAME": {}
}
}
},
"patterns": [
"_template/{template}"
Expand Down

0 comments on commit c47dbe2

Please sign in to comment.