Skip to content

Commit 921d7ca

Browse files
authored
Log API-initiated tasks to a tmp directory (#5833)
1 parent d2b51c1 commit 921d7ca

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/late-rockets-talk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Log api-initiated tasks to a tmp directory

src/extension/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { EventEmitter } from "events"
22
import * as vscode from "vscode"
33
import fs from "fs/promises"
44
import * as path from "path"
5+
import * as os from "os"
56

67
import {
78
RooCodeAPI,
@@ -50,7 +51,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
5051
console.log(args)
5152
}
5253

53-
this.logfile = path.join(getWorkspacePath(), "roo-code-messages.log")
54+
this.logfile = path.join(os.tmpdir(), "roo-code-messages.log")
5455
} else {
5556
this.log = () => {}
5657
}

0 commit comments

Comments
 (0)