Roles
All checks were successful
Build and Deploy iLSP / test (push) Successful in 23s
Build and Deploy iLSP / build-and-deploy (push) Successful in 3m13s

This commit is contained in:
Henrik Jess Nielsen
2026-05-19 10:28:22 +02:00
parent fc40157a77
commit aa37c259ad
3 changed files with 179 additions and 3 deletions

View File

@@ -142,6 +142,18 @@ class _ProxySession:
"has_open_quote": bool(value_m.group(2)),
}
# Check if cursor is inside an array value for a param
# e.g. "roles: ['KEY_VAULT_" or "roles: [ '"
array_m = re.search(r"^\s*(\w+):\s*\[[^\]]*?('?)([^',\]]*)$", current)
if array_m and array_m.group(1) not in {"params", "name", "module", "resource"}:
return {
"type": "param_value",
"module": mod_name,
"version": mod_ver,
"param": array_m.group(1),
"has_open_quote": bool(array_m.group(2)),
}
return {
"type": "param",
"module": mod_name,