atishay / vscode-allautocomplete

Autocomplete from open files for VSCode
MIT License
105 stars 25 forks source link

[Feature Request] Disable all-autocomplete for specific languages or files #48

Closed jvilk-stripe closed 4 years ago

jvilk-stripe commented 4 years ago

excludeFiles excludes certain files from being indexed, but would it be possible to exclude files from receiving autocomplete results this extension?

The context is a repository containing files in multiple programming languages. Some have great autocomplete provided via language servers, others don't. We'd like to use this extension for the latter category of programming languages without it activating on the former category of programming languages, as it clutters the autocomplete results.

Could you add this feature, or would you accept it in a pull request? Thanks!

jvilk-stripe commented 4 years ago

e.g.:

AllAutocomplete.disabledFiles: "**/*.js"

or

AllAutocomplete.disabledLanguages: ["javascript"]
atishay commented 4 years ago

There is already support for AllAutocomplete.excludeFiles for glob of files to be excluded. I will add nonContributingLanguages that do not contribute autocomplete words but can absorb them.

jvilk-stripe commented 4 years ago

There is already support for AllAutocomplete.excludeFiles for glob of files to be excluded.

But this excludes files from being indexed. Those files still receive autocomplete results from other files, correct?

atishay commented 4 years ago

I have added support for AllAutocomplete.dontContributeToSelf, AllAutocomplete.nonContributingToSelfLanguages, andAllAutocomplete.nonContributingLanguages`. Please reopen if those options don't meet the requirements.

jvilk-stripe commented 4 years ago

Thank you for being so responsive! I'll let you know if we have any trouble with it.