@lvce-editor/extension-host-worker 5.31.0 → 5.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2191,6 +2191,12 @@ const readFileExternal = async path => {
|
|
|
2191
2191
|
const existsExternal = async uri => {
|
|
2192
2192
|
return await invoke$1('FileSystem.exists', uri);
|
|
2193
2193
|
};
|
|
2194
|
+
const mkdirExternal = async uri => {
|
|
2195
|
+
return await invoke$1('FileSystem.mkdir', uri);
|
|
2196
|
+
};
|
|
2197
|
+
const writeFileExternal = async (uri, content) => {
|
|
2198
|
+
return await invoke$1('FileSystem.writeFIle', uri, content);
|
|
2199
|
+
};
|
|
2194
2200
|
const readDirWithFileTypesExternal = async path => {
|
|
2195
2201
|
// TODO when file is local,
|
|
2196
2202
|
// don't ask renderer worker
|
|
@@ -3370,6 +3376,8 @@ const api = {
|
|
|
3370
3376
|
readFile: readFileExternal,
|
|
3371
3377
|
readDirWithFileTypes: readDirWithFileTypesExternal,
|
|
3372
3378
|
exists: existsExternal,
|
|
3379
|
+
mkdir: mkdirExternal,
|
|
3380
|
+
writeFile: writeFileExternal,
|
|
3373
3381
|
// Formatting
|
|
3374
3382
|
registerFormattingProvider: registerFormattingProvider,
|
|
3375
3383
|
executeFormattingProvider: executeFormattingProvider,
|