Update authenticate command

This commit is contained in:
Elio Struyf
2022-08-04 20:58:45 +02:00
parent 2ef39cb2ed
commit 44f30f70d5
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { commands, ExtensionContext } from 'vscode';
import { CONTEXT } from '../constants';
import { COMMAND_NAME, CONTEXT } from '../constants';
import { Extension } from '../helpers';
import { Credentials } from "../services/Credentials";
import fetch from "node-fetch";
@@ -17,7 +17,7 @@ export class Backers {
Backers.tryUsernameCheck();
context.subscriptions.push(
commands.registerCommand('frontMatter.authenticate', async () => {
commands.registerCommand(COMMAND_NAME.authenticate, async () => {
Backers.tryUsernameCheck();
})
);
+3
View File
@@ -65,4 +65,7 @@ export const COMMAND_NAME = {
// Git
gitSync: getCommandName("git.sync"),
// Authenticate
authenticate: getCommandName("authenticate"),
};