@lvce-editor/extension-host-worker 5.26.0 → 5.27.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.
|
@@ -1108,6 +1108,14 @@ const readDirWithFileTypesExternal = async path => {
|
|
|
1108
1108
|
const content = await invoke$2('FileSystem.readDirWithFileTypes', path);
|
|
1109
1109
|
return content;
|
|
1110
1110
|
};
|
|
1111
|
+
const remove$4 = async (protocol, path) => {
|
|
1112
|
+
try {
|
|
1113
|
+
const provider = get$a(protocol);
|
|
1114
|
+
return await provider.remove(path);
|
|
1115
|
+
} catch (error) {
|
|
1116
|
+
throw new VError(error, 'Failed to execute file system provider');
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1111
1119
|
const rename$1 = async (protocol, oldUri, newUri) => {
|
|
1112
1120
|
try {
|
|
1113
1121
|
const provider = get$a(protocol);
|
|
@@ -4821,6 +4829,7 @@ const FileSystemReadDirWithFileTypes = 'ExtensionHostFileSystem.readDirWithFileT
|
|
|
4821
4829
|
const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
|
|
4822
4830
|
const FileSystemRename = 'ExtensionHostFileSystem.rename';
|
|
4823
4831
|
const FileSystemWriteFile = 'ExtensionHostFileSystem.writeFile';
|
|
4832
|
+
const FileSystemRemove = 'ExtensionHostFileSystem.remove';
|
|
4824
4833
|
const FormattingExecuteFormmattingProvider = 'ExtensionHostFormatting.executeFormattingProvider';
|
|
4825
4834
|
const HoverExecute = 'ExtensionHostHover.execute';
|
|
4826
4835
|
const ImplementationExecuteImplementationProvider = 'ExtensionHostImplementation.executeImplementationProvider';
|
|
@@ -6103,6 +6112,7 @@ const commandMap = {
|
|
|
6103
6112
|
[FileSystemReadFile]: readFile$2,
|
|
6104
6113
|
[FileSystemRename]: rename$1,
|
|
6105
6114
|
[FileSystemWriteFile]: writeFile$3,
|
|
6115
|
+
[FileSystemRemove]: remove$4,
|
|
6106
6116
|
[FormattingExecuteFormmattingProvider]: executeFormattingProvider,
|
|
6107
6117
|
[HoverExecute]: executeHoverProvider,
|
|
6108
6118
|
[ImplementationExecuteImplementationProvider]: executeImplementationProvider,
|