@lvce-editor/extension-host-worker 6.0.0 → 6.1.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.
|
@@ -2188,6 +2188,14 @@ const readFile$2 = async (protocol, path) => {
|
|
|
2188
2188
|
throw new VError(error, 'Failed to execute file system provider');
|
|
2189
2189
|
}
|
|
2190
2190
|
};
|
|
2191
|
+
const mkdir$2 = async (protocol, path) => {
|
|
2192
|
+
try {
|
|
2193
|
+
const provider = get$9(protocol);
|
|
2194
|
+
return await provider.mkdir(path);
|
|
2195
|
+
} catch (error) {
|
|
2196
|
+
throw new VError(error, 'Failed to execute file system provider');
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2191
2199
|
const readFileExternal = async path => {
|
|
2192
2200
|
// TODO when file is local,
|
|
2193
2201
|
// don't ask renderer worker
|
|
@@ -2198,6 +2206,10 @@ const readFileExternal = async path => {
|
|
|
2198
2206
|
const content = await invoke$1('FileSystem.readFile', path);
|
|
2199
2207
|
return content;
|
|
2200
2208
|
};
|
|
2209
|
+
const removeExternal = async path => {
|
|
2210
|
+
const content = await invoke$1('FileSystem.remove', path);
|
|
2211
|
+
return content;
|
|
2212
|
+
};
|
|
2201
2213
|
const existsExternal = async uri => {
|
|
2202
2214
|
return await invoke$1('FileSystem.exists', uri);
|
|
2203
2215
|
};
|
|
@@ -3408,6 +3420,7 @@ const api = {
|
|
|
3408
3420
|
readDirWithFileTypes: readDirWithFileTypesExternal,
|
|
3409
3421
|
exists: existsExternal,
|
|
3410
3422
|
mkdir: mkdirExternal,
|
|
3423
|
+
remove: removeExternal,
|
|
3411
3424
|
writeFile: writeFileExternal,
|
|
3412
3425
|
stat: statExternal,
|
|
3413
3426
|
// Formatting
|
|
@@ -4938,6 +4951,7 @@ const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
|
|
|
4938
4951
|
const FileSystemRename = 'ExtensionHostFileSystem.rename';
|
|
4939
4952
|
const FileSystemWriteFile = 'ExtensionHostFileSystem.writeFile';
|
|
4940
4953
|
const FileSystemRemove = 'ExtensionHostFileSystem.remove';
|
|
4954
|
+
const FileSystemMkdir = 'ExtensionHostFileSystem.mkdir';
|
|
4941
4955
|
const FormattingExecuteFormmattingProvider = 'ExtensionHostFormatting.executeFormattingProvider';
|
|
4942
4956
|
const HoverExecute = 'ExtensionHostHover.execute';
|
|
4943
4957
|
const ImplementationExecuteImplementationProvider = 'ExtensionHostImplementation.executeImplementationProvider';
|
|
@@ -6266,6 +6280,7 @@ const commandMap = {
|
|
|
6266
6280
|
[FileSystemRename]: rename$1,
|
|
6267
6281
|
[FileSystemWriteFile]: writeFile$3,
|
|
6268
6282
|
[FileSystemRemove]: remove$3,
|
|
6283
|
+
[FileSystemMkdir]: mkdir$2,
|
|
6269
6284
|
[FormattingExecuteFormmattingProvider]: executeFormattingProvider,
|
|
6270
6285
|
[HoverExecute]: executeHoverProvider,
|
|
6271
6286
|
[ImplementationExecuteImplementationProvider]: executeImplementationProvider,
|