From 48ef2298a8985c5748680d66477ea31c841f8592 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Tue, 17 Aug 2021 19:53:32 +0200 Subject: [PATCH] Add support for VSCODE_SSHFS_PRODUCTION environment variable (#279) --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index d65467c..719fa5f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -29,7 +29,7 @@ interface CommandHandler { export function activate(context: vscode.ExtensionContext) { Logging.info(`Extension activated, version ${getVersion()}, mode ${context.extensionMode}`); - setDebug(context.extensionMode !== vscode.ExtensionMode.Production); + setDebug(context.extensionMode !== vscode.ExtensionMode.Production && !process.env.VSCODE_SSHFS_PRODUCTION); // Likely that we'll have a breaking change in the future that requires users to check // their configs, or at least reconfigure already existing workspaces with new URIs.