diff --git a/src/commands/configureLaunchDarklyEnvironment.ts b/src/commands/configureLaunchDarklyEnvironment.ts index 5b76a4d4..b3150f08 100644 --- a/src/commands/configureLaunchDarklyEnvironment.ts +++ b/src/commands/configureLaunchDarklyEnvironment.ts @@ -1,5 +1,4 @@ import { commands, Disposable, window } from 'vscode'; -//import { sortNameCaseInsensitive } from '../api'; import { extensionReload } from '../generalUtils'; import { CMD_LD_CONFIG_ENV } from '../utils/commands'; import { ILDExtensionConfiguration } from '../models'; @@ -7,7 +6,6 @@ import { ILDExtensionConfiguration } from '../models'; export default async function configureEnvironmentCmd(config: ILDExtensionConfiguration): Promise { const configureEnvironmentCmd = commands.registerCommand(CMD_LD_CONFIG_ENV, async () => { try { - //const intConfig = config.getConfig(); const api = config.getApi(); if (!config.getConfig()) { return; @@ -17,7 +15,6 @@ export default async function configureEnvironmentCmd(config: ILDExtensionConfig window.showErrorMessage(`[LaunchDarkly] Please Configure LaunchDarkly Extension`); return; } - //const environments = project.environments.sort(sortNameCaseInsensitive); const environments = project.environments.items; const newEnvironment = await window.showQuickPick(environments.map((env) => env.key)); if (newEnvironment) { diff --git a/src/providers/authProvider.ts b/src/providers/authProvider.ts index 44176d9f..a533a948 100644 --- a/src/providers/authProvider.ts +++ b/src/providers/authProvider.ts @@ -23,8 +23,7 @@ import { CONST_CONFIG_LD } from '../utils/constants'; export const AUTH_TYPE = `launchdarkly`; const AUTH_NAME = `LaunchDarkly`; -const LAUNCHDARKLY_OAUTH_DOMAIN = `hello-world-restless-violet-9097.dobrien-nj.workers.dev`; // Adjust if necessary -//const LAUNCHDARKLY_OAUTH_DOMAIN = `ldprobotdevo.ngrok.io/vscode`; // Adjust if necessary +const LAUNCHDARKLY_OAUTH_DOMAIN = ``; // Adjust if necessary const SESSIONS_SECRET_KEY = `${AUTH_TYPE}.sessions`; class UriEventHandler extends EventEmitter implements UriHandler { @@ -311,7 +310,6 @@ export class LaunchDarklyAuthenticationProvider implements AuthenticationProvide Authorization: apiToken, }, }); - //const serviceTokenError = `reflexive member id 'me' is invalid when authenticated with a service token`; const res = await response; if (res.status == 404) {