Skip to content

Commit 7c8a164

Browse files
committed
product.portableTemp
1 parent bd79955 commit 7c8a164

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function getPortableDataPath() {
2424
return path.join(path.dirname(getApplicationPath()), product.portable);
2525
}
2626

27-
if (product.portable) {
27+
if (product.portable && product.portableTemp) {
2828
const portablePath = getPortableDataPath();
2929
try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } }
3030

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function getPortableDataPath() {
3131
return path.join(path.dirname(getApplicationPath()), product.portable);
3232
}
3333

34-
if (product.portable) {
34+
if (product.portable && product.portableTemp) {
3535
const portablePath = getPortableDataPath();
3636
try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } }
3737

src/vs/platform/node/product.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface IProductConfiguration {
7474
};
7575
logUploaderUrl: string;
7676
portable?: string;
77+
portableTemp?: string;
7778
}
7879

7980
export interface ISurveyData {

0 commit comments

Comments
 (0)