Skip to content

Commit

Permalink
Add support for VSCODE_SSHFS_PRODUCTION environment variable (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoofsKelvin committed Aug 17, 2021
1 parent 73f890e commit 48ef229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 48ef229

Please sign in to comment.