atom/ide-json

Pop-up with completions appears after comma is typed.

Opened this issue · 4 comments

Using ide-json 0.2.1, ide-ui 0.12.0

When entering a property and typing comma at end of line, the pop-up appears.
This breaks normal flow of typing: "entering a line", "comma", "enter".

rsese commented

I don't see it all the time but if I open package.json in this repo, I see it after typing a comma here for example:

ac-popup

Do you see it all the time?

I have json with schema defined (via that property "$schema"),
and I see it all the time where a property is expected, that is - when comma is typed after previous property is defined.

is there a way to fix this, because I have the same issue where I will be typing and every time I go to add a new property it auto-fills with "$schema":.
it really ruins my workflow as then I have to undo and then repeat while remembering to press escape to cancel the auto-fill.

Edit: I should point out that it only auto-fills at the lowest level, for example:
{ "propertyA": "value", "propertyB": { "propertyBA": "value", # Doesn't auto-complete here }, # Does auto-complete here }

In my case disabling the ide-json community package stopped it.
I initially disabled json-schema package but I didn't worked.