fix(codemirror): optimize the autocompletion performance R8S-294 (#650)

Co-authored-by: andres-portainer <andres-portainer@users.noreply.github.com>
pull/6081/merge
andres-portainer 2025-04-15 21:27:30 -03:00 committed by GitHub
parent bfa55f8c67
commit 66dee6fd06
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ function schemaValidationExtensions(schema: JSONSchema7) {
if (Array.isArray(completions)) {
return null;
}
completions.validFor = /^\w*$/;
return completions;
},
],