Skip to content

Commit b50a421

Browse files
committed
Use vscode session ID instead
1 parent 0abc316 commit b50a421

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/tools/lldb-dap/src-ts/logging.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as os from 'os';
21
import * as path from "path";
32
import * as vscode from "vscode";
43

@@ -45,7 +44,7 @@ export class LogFilePathProvider {
4544
const logFolder = this.logFolder || this.context.logUri.fsPath;
4645
switch(type) {
4746
case LogType.DEBUG_SESSION:
48-
return path.join(logFolder, `lldb-dap-session-${os.userInfo().username}-${formatDate(new Date())}.log`);
47+
return path.join(logFolder, `lldb-dap-session-${formatDate(new Date())}-vscode-${vscode.env.sessionId}.log`);
4948
break;
5049
}
5150
}

0 commit comments

Comments
 (0)