From 7c8a164902cfa23c033c9c799dd2737dea3490a7 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 14 Jun 2018 12:05:39 +0200 Subject: [PATCH] product.portableTemp --- src/cli.js | 2 +- src/main.js | 2 +- src/vs/platform/node/product.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli.js b/src/cli.js index 49f934d092a..6712d3ae003 100644 --- a/src/cli.js +++ b/src/cli.js @@ -24,7 +24,7 @@ function getPortableDataPath() { return path.join(path.dirname(getApplicationPath()), product.portable); } -if (product.portable) { +if (product.portable && product.portableTemp) { const portablePath = getPortableDataPath(); try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } } diff --git a/src/main.js b/src/main.js index 723f537b712..f4e5bc96a6b 100644 --- a/src/main.js +++ b/src/main.js @@ -31,7 +31,7 @@ function getPortableDataPath() { return path.join(path.dirname(getApplicationPath()), product.portable); } -if (product.portable) { +if (product.portable && product.portableTemp) { const portablePath = getPortableDataPath(); try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } } diff --git a/src/vs/platform/node/product.ts b/src/vs/platform/node/product.ts index 685ccc5d374..1d3edb1d5f7 100644 --- a/src/vs/platform/node/product.ts +++ b/src/vs/platform/node/product.ts @@ -74,6 +74,7 @@ export interface IProductConfiguration { }; logUploaderUrl: string; portable?: string; + portableTemp?: string; } export interface ISurveyData { -- GitLab