mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-08 01:48:32 +00:00
[ATL-1454] Refactor pull/push to edit files in place (#464)
* improve push/pull process * improved diff tree performance generation * skip some files to be synced Co-authored-by: Francesco Stasi <f.stasi@me.com>
This commit is contained in:
committed by
GitHub
parent
57b9eb95bb
commit
65152731f9
@@ -22,6 +22,14 @@ export class SketchCache {
|
||||
return this.fileStats[path] || null;
|
||||
}
|
||||
|
||||
purgeByPath(path: string): void {
|
||||
for (const itemPath in this.fileStats) {
|
||||
if (itemPath.indexOf(path) === 0) {
|
||||
delete this.fileStats[itemPath];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
addSketch(sketch: Create.Sketch): void {
|
||||
const { path } = sketch;
|
||||
const posixPath = toPosixPath(path);
|
||||
|
||||
Reference in New Issue
Block a user