Skip to content

Commit df4af75

Browse files
committed
Update openSketch command to use globalStorageUri for temporary sketch path
1 parent ec150c8 commit df4af75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/setupCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function setupCommands(context: ExtensionContext) {
6666
return;
6767
}
6868
if (isReadOnly) {
69-
const path = join(tmpdir(), `processing-sketch-${new Date().getTime()}`, folder.split('/').pop() || 'sketch');
69+
const path = join(context.globalStorageUri.fsPath, `processing-sketch-${new Date().getTime()}`, folder.split('/').pop() || 'sketch');
7070
try {
7171
await workspace.fs.copy(Uri.file(folder), Uri.file(path), { overwrite: true });
7272
folder = path;

0 commit comments

Comments
 (0)