TypeStrong / atom-typescript

The only TypeScript package you will ever need
https://atom.io/packages/atom-typescript
MIT License
1.13k stars 205 forks source link

It breaks one-key autocomplete #1590

Closed artyompal closed 2 years ago

artyompal commented 3 years ago

I use Autocomplete-plus plugin, which has an option of automatically confirming a single possible suggestion. Let's say, I have an identifier my_long_function_name somewhere in my code, so I start typing my_long_f and press autocomplete key, and since there is only one possible option, it just finishes the word without displaying any menus. This plugin breaks this behaviour. The menu with function prototype is shown instead. Would it be possible to make this behaviour optional please? I cann't seem to find a setting to disable prototype tooltips. Thanks!

artyompal commented 3 years ago

Also it seems to change autocomplete settings to enable fuzzy autocomplete, like on_ev not only matches on_event_happened, but also on_some_evaluation. Can we have a setting to control this behaviour?

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

lierdakil commented 2 years ago

Terribly sorry, I was preoccupied by the day job (still am). The autocompletion in this project uses some hacks, so it's not entirely surprising that some corner cases don't exactly work. I'll see what I can do about this later this week.

lierdakil commented 2 years ago

Released v14.4.0 that adds a few setting toggles to configure autocomplete suggestion filtering behaviour.

So your first gripe should be solved by enabling the following setting: image

The second one should be covered by disabling image

Also, a couple toggles below that allow you to control how filtering is done exactly. This is obviously somewhat experimental, but it worked surprisingly well in my limited testing.