From 453ca225593893fbdbf1f0026ae1148b02512361 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 16 Feb 2017 16:07:15 +0100 Subject: [PATCH] use constant app data when debugging --- test/electron/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/electron/index.js b/test/electron/index.js index 544ea55957a..2f7b9fc8242 100644 --- a/test/electron/index.js +++ b/test/electron/index.js @@ -10,12 +10,14 @@ const { join } = require('path'); const optimist = require('optimist') .describe('grep', 'only run tests matching ').string('grep').alias('grep', 'g').string('g') .describe('run', 'only run tests from ').string('run') - .describe('debug', 'open dev tools, keep window open').string('debug'); + .describe('debug', 'open dev tools, keep window open, reuse app data').string('debug'); const argv = optimist.argv; const { debug, grep, run } = argv; -app.setPath('userData', join(tmpdir(), `vscode-tests-${Date.now()}`)); +if (!debug) { + app.setPath('userData', join(tmpdir(), `vscode-tests-${Date.now()}`)); +} app.on('ready', () => {