Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/src/setupPDEFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export function setupPDEFiles() {
}

async function OpenSketchFiles(folder: WorkspaceFolder) {
const config = workspace.getConfiguration('processing');
if (!config.get<boolean>('openSketchFilesOnLoad', true)) return;

// find all the .pde files in the folder
const files = await workspace.findFiles(new RelativePattern(folder, '*.{pde,java}'));

Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@
"type": "boolean",
"default": true,
"description": "Open sketches in a new window. If disabled, the current window will be reused."
},
"processing.openSketchFilesOnLoad": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Automatically open all sketch files (.pde, .java) when a workspace is loaded. Disable to prevent files from being opened on startup."
}
}
},
Expand Down