Skip to content

Commit

Permalink
DEV2-4433 move enterprise config
Browse files Browse the repository at this point in the history
  • Loading branch information
dimacodota committed Dec 5, 2023
1 parent adcd241 commit db13394
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/enterprise/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ export const SELF_HOSTED_IGNORE_PROXY_CONFIGURATION =
export const SELF_HOSTED_IGNORE_CERTIFICATE_ERRORS_CONFIGURATION =
"tabnineSelfHostedUpdater.ignoreCertificateErrors";

export const USE_PROXY_CONFIGURATION = "tabnine.useProxySupport";

export const CA_CERTS_CONFIGURATION = "tabnine.caCerts";

export const IGNORE_CERTIFICATE_ERRORS_CONFIGURATION =
"tabnine.ignoreCertificateErrors";

export const TABNINE_HOST_CONFIGURATION = `tabnine.cloudHost`;

export const INSTALL_COMMAND = "workbench.extensions.installExtension";
Expand Down
4 changes: 2 additions & 2 deletions src/enterprise/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import serverUrl from "./update/serverUrl";
import tabnineExtensionProperties from "../globals/tabnineExtensionProperties";
import { host } from "../utils/utils";
import {
IGNORE_CERTIFICATE_ERRORS_CONFIGURATION,
USE_PROXY_CONFIGURATION,
RELOAD_COMMAND,
SELF_HOSTED_IGNORE_CERTIFICATE_ERRORS_CONFIGURATION,
SELF_HOSTED_IGNORE_PROXY_CONFIGURATION,
Expand All @@ -38,6 +36,8 @@ import {
BRAND_NAME,
CONFIG_COMMAND,
ENTERPRISE_BRAND_NAME,
IGNORE_CERTIFICATE_ERRORS_CONFIGURATION,
USE_PROXY_CONFIGURATION,
} from "../globals/consts";
import { StatusBar } from "./statusBar";
import { isHealthyServer } from "./update/isHealthyServer";
Expand Down
4 changes: 4 additions & 0 deletions src/globals/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,7 @@ export enum SuggestionTrigger {
export const TLS_CONFIG_MIN_SUPPORTED_VERSION = "4.22.0";
export const CONFIG_COMMAND = "TabNine::config";
export const EXTENSION_ID = "TabNine.tabnine-vscode";
export const USE_PROXY_CONFIGURATION = "tabnine.useProxySupport";
export const IGNORE_CERTIFICATE_ERRORS_CONFIGURATION =
"tabnine.ignoreCertificateErrors";
export const CA_CERTS_CONFIGURATION = "tabnine.caCerts";
2 changes: 1 addition & 1 deletion src/globals/tabnineExtensionProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CA_CERTS_CONFIGURATION,
IGNORE_CERTIFICATE_ERRORS_CONFIGURATION,
USE_PROXY_CONFIGURATION,
} from "../enterprise/consts";
} from "./consts";

const TELEMETRY_CONFIG_ID = "telemetry";
const TELEMETRY_CONFIG_ENABLED_ID = "enableTelemetry";
Expand Down

0 comments on commit db13394

Please sign in to comment.