We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a8513 commit 65a01a2Copy full SHA for 65a01a2
arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-tree.ts
@@ -246,7 +246,10 @@ export class CloudSketchbookTree extends SketchbookTree {
246
});
247
248
if (!fileStat.children || !fileStat.isDirectory) {
249
- return [fileStat.resource];
+ // Do not push files bigger than 100KB
250
+ return fileStat.size && fileStat.size > 100 * 1024 /* 100 KB */
251
+ ? []
252
+ : [fileStat.resource];
253
}
254
255
let childrenUris: URI[] = [];
0 commit comments