mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(codemirror): optimize the autocompletion performance R8S-294 (#650)
Co-authored-by: andres-portainer <andres-portainer@users.noreply.github.com>
This commit is contained in:
parent
bfa55f8c67
commit
66dee6fd06
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ function schemaValidationExtensions(schema: JSONSchema7) {
|
||||||
if (Array.isArray(completions)) {
|
if (Array.isArray(completions)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
completions.validFor = /^\w*$/;
|
||||||
|
|
||||||
return completions;
|
return completions;
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue