Closed
Description
monaco-editor version: 0.10.1
Browser: All
OS: All
Steps or JS usage snippet reproducing the issue:
Completions of fields with dot in their name is somewhat broken.
How to reproduce:
- You have the following object:
let x = { "foo.bar": "test" };
- Typing in
x["fo]
and pressing ctrl+space, and then selectingfoo.bar
generates the expected result - Typing in
x["foo.b
and pressing ctrl+space, and selectingfoo.bar
generatesx["foo.foo.bar
.
Basically if there is a dot in the field name the issue appears. It only happens in monaco editor. VScode does not have the same bug.
I would gladly fix this if you can point me in the right direction (monaco-typescript most likely, in the completions provider, but i don't really see what the issue is in the code).