How can i use autocomplete codemirror v6 ?

I’m doing some tests and would like to understand with an example, how I could do intellisense, identify the values ​​of variables using @codemirror/lang-javascript

Let’s say I have an object:
let obj = {name:“test”}

How would I identify the properties, or even the variable methods by pressing ctrl+space ?

1 Like

Finding out the methods of an expression requires running some kind of type inference on the code, the way TypeScript does. It’s not something that CodeMirror does for you.

1 Like

Thank you very much for the answer <3 I didn’t expect to receive one =(
Do you have any idea of ​​a library that could help me or give me some direction on this?