atom / ide-json

MIT License
24 stars 15 forks source link

Pop-up with completions appears after comma is typed. #8

Open qwiglydee opened 6 years ago

qwiglydee commented 6 years ago

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 6 years ago

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:

https://github.com/atom/ide-json/blob/3a480323d9eb28b3a1a2a3c6c059b93e505c88e7/package.json#L52

ac-popup

Do you see it all the time?

qwiglydee commented 6 years ago

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.

FFGFlash commented 4 years ago

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 }

Francoois commented 4 years ago

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