Load default file and stop overwriting main.kcl
This commit is contained in:
@ -234,12 +234,17 @@ const getDefaultKclFileForDir = async (projectDir, file) => {
|
|||||||
return getDefaultKclFileForDir(entry.path, entry)
|
return getDefaultKclFileForDir(entry.path, entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If we didn't find a kcl file, create one.
|
||||||
|
await window.electron.writeFile(defaultFilePath, '')
|
||||||
|
return defaultFilePath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we didn't find a kcl file, create one.
|
if (!file.children) {
|
||||||
await window.electron.writeFile(defaultFilePath, '')
|
return file.name
|
||||||
|
}
|
||||||
|
|
||||||
return defaultFilePath
|
return defaultFilePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user