We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9438bb commit 40aed75Copy full SHA for 40aed75
1 file changed
src/main.js
@@ -32,6 +32,14 @@ const args = parseCLIArgs();
32
const userDataPath = getUserDataPath(args);
33
app.setPath('userData', userDataPath);
34
35
+// Set logs path before app 'ready' event if running portable
36
+// to ensure that no 'logs' folder is created on disk at a
37
+// location outside of the portable directory
38
+// (https://github.com/microsoft/vscode/issues/56651)
39
+if (portable.isPortable) {
40
+ app.setAppLogsPath(path.join(userDataPath, 'logs'));
41
+}
42
+
43
// Update cwd based on environment and platform
44
setCurrentWorkingDirectory();
45
0 commit comments