scopeCompletionSource

Create a completion source that provides property completions from a scope map. The map represents a global scope object where keys are property names and values are either nested maps (for object properties) or null (for leaf names).

Example:

val globals = mapOf(
"console" to mapOf("log" to null, "error" to null),
"Math" to mapOf("PI" to null, "sqrt" to null)
)
val source = scopeCompletionSource(globals)