1
1
mirror of https://github.com/codota/TabNine.git synced 2024-08-16 05:20:40 +03:00

inverse the flag

This commit is contained in:
avner 2021-10-18 10:08:29 +03:00
parent bd76711107
commit bf1ef92a8b

View File

@ -19,11 +19,11 @@ project-root/
## .tabnine format ## .tabnine format
The `.tabnine` file is formatted using `JSON` containing the following fields: The `.tabnine` file is formatted using `JSON` containing the following fields:
### Fields
| field | type | default value (if not set) | description | notes | | field | type | default value (if not set) | description | notes |
|-----------------------|------------|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------| |-----------------------|------------|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
| `teamLearningEnabled` | `boolean` | `true` | relevant for users which are part of a team and want to disable team training on this project. `true` - team learning is enabled for this project `false` team learning is disabled for this project | | | `disableTeamLearning` | `boolean` | `false` | relevant for users which are part of a team and want to disable team training on this project. `true` - team learning is disabled for this project `false` team learning is enabled for this project | |
| `teamLearningIgnore` | `[string]` | `[]` | an `Array` of `String` file path masks to ignore for team learning | Entries are identical in format to those you would have as part of a `.gitignore` file | | `teamLearningIgnore` | `[string]` | `[]` | an `Array` of `String` file path masks to ignore for team learning | Entries are identical in format to those you would have as part of a `.gitignore` file |
| | | | | | | | | | | |
@ -31,12 +31,12 @@ The `.tabnine` file is formatted using `JSON` containing the following fields:
*ignore everything in my secrets and passwords files* *ignore everything in my secrets and passwords files*
``` ```
{ {
"teamLearningEnabled": true, "disableTeamLearning": false,
"teamLearningIgnore" : ["secrets.txt", "passwords.txt"] "teamLearningIgnore" : ["myFile.txt", "someOtherFile.abc"]
} }
``` ```
*ignore everything under tests folder* *ignore everything under tests folder*
(notice that `teamLearningEnabled` is implicitly `true` since field is omitted) (notice that `disableTeamLearning` is implicitly `false` since field is omitted)
``` ```
{ {
@ -47,13 +47,13 @@ The `.tabnine` file is formatted using `JSON` containing the following fields:
*don't collect data for this project* *don't collect data for this project*
``` ```
{ {
"teamLearningEnabled" : false "disableTeamLearning" : true
} }
``` ```
**equivalent to a catch all mask** **equivalent to a catch all mask**
``` ```
{ {
"teamLearningEnabled" : true, "disableTeamLearning" : false,
"teamLearningIgnore" : ["*"] "teamLearningIgnore" : ["*"]
} }