microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

Sublime suggestions appear despite auto_complete_api_completions_only set to true #777

Open bs85 opened 3 years ago

bs85 commented 3 years ago

Since Sublime build 4073 (changelog includes "Reworked Auto Complete UI"), the setting auto_complete_api_completions_only doesn't do anything for me anymore, showing content-based completions along with TS ones regardless.

I have fiddled with the plugin code and it seems that sending sublime.INHIBIT_WORD_COMPLETIONS instead of sublime.INHIBIT_EXPLICIT_COMPLETIONS in typescript/listeners/completion.py fixes the problem.

Should INHIBIT_WORD_COMPLETIONS be used when auto_complete_api_completions_only is on?

cloudworkpro-dave commented 2 years ago

Thanks for this @bs85 I was also having this issue where all i wanted to show were the properties in Typescript completions and this did the trick. I also added "auto_complete_include_snippets": false