Skip to content

Commit

Permalink
fix command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbilu committed Dec 5, 2023
1 parent b6aeff4 commit bf04414
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/enterprise/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ import {
SELF_HOSTED_IGNORE_PROXY_CONFIGURATION,
SELF_HOSTED_SERVER_CONFIGURATION,
TABNINE_HOST_CONFIGURATION,
EXTENSION_ID,
OPEN_SETTINGS_COMMAND,
} from "./consts";
import TabnineAuthenticationProvider from "../authentication/TabnineAuthenticationProvider";
import {
BRAND_NAME,
CONFIG_COMMAND,
ENTERPRISE_BRAND_NAME,
IS_SELF_HOSTED_CONTEXT_KEY,
} from "../globals/consts";
Expand Down Expand Up @@ -62,6 +65,11 @@ export async function activate(
context.subscriptions.push(new WorkspaceUpdater());
context.subscriptions.push(BINARY_STATE);
context.subscriptions.push(activeTextEditorState);
context.subscriptions.push(
commands.registerCommand(CONFIG_COMMAND, () => {
commands.executeCommand(OPEN_SETTINGS_COMMAND, `@ext:${EXTENSION_ID}`);

Check failure on line 70 in src/enterprise/extension.ts

View workflow job for this annotation

GitHub Actions / Build & Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
})
);

initReporter(new LogReporter());
const statusBar = new StatusBar(context);
Expand Down

0 comments on commit bf04414

Please sign in to comment.