Skip to content

Commit

Permalink
Disable vscode logs if global log disable enabled (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Dec 13, 2020
1 parent 77619d5 commit 2239bd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ func main() {
}

os.Setenv("VSCODE_APPDATA", utl.PathJoin(app.DataPath, "appdata"))
os.Setenv("VSCODE_LOGS", utl.PathJoin(app.DataPath, "logs"))
if !app.Config().Common.DisableLog {
os.Setenv("VSCODE_LOGS", utl.PathJoin(app.DataPath, "logs"))
}
os.Setenv("VSCODE_EXTENSIONS", utl.PathJoin(app.DataPath, "extensions"))

defer app.Close()
Expand Down

0 comments on commit 2239bd3

Please sign in to comment.