Skip to content

Ignore files in .gitignore for Code Suggestions

Problem

We currently base whether we ask for code-suggestions solely on the language/file-extension of a file. However, there might be files with a valid extension (e.g. yml), where the contents are supposed to be secret (e.g. apikeys etc.). In most cases these files will be ignored from version control as well trough the usage of .gitignore We should make sure we prevent such files from being sent to Code-Suggestions instead of the user having to disable code suggestions manually for these files.

Desired Outcome

Extensions do not request code suggestions for files which are removed from version control through .gitignore.