Skip to content

Commit

Permalink
cloud2 origin support (#871)
Browse files Browse the repository at this point in the history
* cloud2 origin support

* Add ANBU origin constant
  • Loading branch information
amircodota authored Jun 28, 2022
1 parent 2385fb9 commit 85ab0c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CompletionOrigin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
enum CompletionOrigin {
LOCAL = "LOCAL",
CLOUD = "CLOUD",
CLOUD2 = "CLOUD2",
VANILLA = "VANILLA",
VANILLA_KEYWORD = "VANILLA_KEYWORD",
LSP = "LSP",
UNKNOWN = "UNKNOWN",
ANBU = "ANBU",
}

export default CompletionOrigin;
2 changes: 1 addition & 1 deletion src/globals/consts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import isCloudEnv from "../cloudEnvs/isCloudEnv";

export const API_VERSION = "4.1.21";
export const API_VERSION = "4.4.51";
export const BINARY_UPDATE_URL = "https://update.tabnine.com/bundles";
export const BINARY_UPDATE_VERSION_FILE_URL = `${BINARY_UPDATE_URL}/version`;
export const ATTRIBUTION_BRAND = "⌬ ";
Expand Down
2 changes: 2 additions & 0 deletions src/selectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ function eventDataOf(
numOfDeepLocalSuggestions += 1;
break;
case CompletionOrigin.CLOUD:
case CompletionOrigin.CLOUD2:
case CompletionOrigin.ANBU:
numOfDeepCloudSuggestions += 1;
break;
case CompletionOrigin.LSP:
Expand Down

0 comments on commit 85ab0c1

Please sign in to comment.