From b6aeff4e79086fec75c9cfe316fef8d29436e584 Mon Sep 17 00:00:00 2001 From: Amir Bilu Date: Tue, 5 Dec 2023 15:14:26 +0200 Subject: [PATCH] fix command not found --- package.json | 4 ++++ src/commandsHandler.ts | 2 +- src/globals/consts.ts | 2 ++ src/globals/proposedAPI.ts | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3e811016cd..8ea8686142 100644 --- a/package.json +++ b/package.json @@ -365,6 +365,10 @@ { "command": "TabNine::assistantToggle", "when": "tabnine-assistant:capability" + }, + { + "command": "TabNine::configExternal", + "when": "!tabnine.enterprise" } ], "comments/commentThread/title": [ diff --git a/src/commandsHandler.ts b/src/commandsHandler.ts index 502a42cc8b..a354d708a9 100644 --- a/src/commandsHandler.ts +++ b/src/commandsHandler.ts @@ -4,8 +4,8 @@ import { Capability, isCapabilityEnabled } from "./capabilities/capabilities"; import { StateType, STATUS_BAR_FIRST_TIME_CLICKED } from "./globals/consts"; import openHub, { openHubExternal } from "./hub/openHub"; import { showStatusBarNotificationOptions } from "./statusBar/statusBarNotificationOptions"; +import { CONFIG_COMMAND } from "./globals/consts"; -const CONFIG_COMMAND = "TabNine::config"; const CONFIG_EXTERNAL_COMMAND = "TabNine::configExternal"; export const STATUS_BAR_COMMAND = "TabNine.statusBar"; export const SIGN_IN_AUTH_TOKEN_COMMAND = "tabnine.signInUsingAuthToken"; diff --git a/src/globals/consts.ts b/src/globals/consts.ts index 11fbceeb07..eb3db23ec5 100644 --- a/src/globals/consts.ts +++ b/src/globals/consts.ts @@ -179,3 +179,5 @@ export enum SuggestionTrigger { export const TLS_CONFIG_MIN_SUPPORTED_VERSION = "4.22.0"; export const IS_SELF_HOSTED_CONTEXT_KEY = "tabnine.isSelfHosted"; +export const CONFIG_COMMAND = "TabNine::config"; +export const EXTENSION_ID = "TabNine.tabnine-vscode"; diff --git a/src/globals/proposedAPI.ts b/src/globals/proposedAPI.ts index 6c42d54715..a767356e02 100644 --- a/src/globals/proposedAPI.ts +++ b/src/globals/proposedAPI.ts @@ -4,8 +4,8 @@ import * as path from "path"; import * as os from "os"; import showMessage from "../preRelease/messages"; import { Logger } from "../utils/logger"; +import { EXTENSION_ID } from "./consts"; -const EXTENSION_ID = "TabNine.tabnine-vscode"; const ARGV_FILE_NAME = "argv.json"; const PRODUCT_FILE_NAME = "product.json"; const PRODUCT_FILE_PATH = path.join(vscode.env.appRoot, PRODUCT_FILE_NAME);