@lvce-editor/extension-host-worker 5.5.0 → 5.6.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.
|
@@ -1006,6 +1006,14 @@ const readDirWithFileTypesExternal = async path => {
|
|
|
1006
1006
|
const content = await invoke$2('FileSystem.readDirWithFileTypes', path);
|
|
1007
1007
|
return content;
|
|
1008
1008
|
};
|
|
1009
|
+
const rename$1 = async (protocol, oldUri, newUri) => {
|
|
1010
|
+
try {
|
|
1011
|
+
const provider = get$9(protocol);
|
|
1012
|
+
return await provider.rename(oldUri, newUri);
|
|
1013
|
+
} catch (error) {
|
|
1014
|
+
throw new VError(error, 'Failed to execute file system provider');
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1009
1017
|
const writeFile$2 = async (protocol, uri, content) => {
|
|
1010
1018
|
try {
|
|
1011
1019
|
const provider = get$9(protocol);
|
|
@@ -3997,12 +4005,14 @@ const ClosingTagExecuteClosingTagProvider = 'ExtensionHostClosingTag.executeClos
|
|
|
3997
4005
|
const CommandExecute = 'ExtensionHostCommand.executeCommand';
|
|
3998
4006
|
const CompletionExecute = 'ExtensionHostCompletion.execute';
|
|
3999
4007
|
const CompletionResolveExecute = 'ExtensionHostCompletion.executeResolve';
|
|
4008
|
+
const ConfigurationSetConfiguration = 'ExtensionHostConfiguration.setConfiguration';
|
|
4000
4009
|
const DefinitionExecuteDefinitionProvider = 'ExtensionHostDefinition.executeDefinitionProvider';
|
|
4001
4010
|
const DiagnosticExecuteDiagnosticProvider = 'ExtensionHost.executeDiagnosticProvider';
|
|
4002
4011
|
const ExtensionActivate = 'ExtensionHostExtension.activate';
|
|
4003
4012
|
const FileSystemGetPathSeparator = 'ExtensionHostFileSystem.getPathSeparator';
|
|
4004
4013
|
const FileSystemReadDirWithFileTypes = 'ExtensionHostFileSystem.readDirWithFileTypes';
|
|
4005
4014
|
const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
|
|
4015
|
+
const FileSystemRename = 'ExtensionHostFileSystem.rename';
|
|
4006
4016
|
const FileSystemWriteFile = 'ExtensionHostFileSystem.writeFile';
|
|
4007
4017
|
const FormattingExecuteFormmattingProvider = 'ExtensionHostFormatting.executeFormattingProvider';
|
|
4008
4018
|
const HoverExecute = 'ExtensionHostHover.execute';
|
|
@@ -4012,6 +4022,7 @@ const MockRpc = 'ExtensionHostMockRpc.mockRpc';
|
|
|
4012
4022
|
const OrganizeImportsExecute = 'ExtensionHostOrganizeImports.execute';
|
|
4013
4023
|
const ReferenceExecuteFileReferenceProvider = 'ExtensionHostReference.executeFileReferenceProvider';
|
|
4014
4024
|
const ReferenceExecuteReferenceProvider = 'ExtensionHostReference.executeReferenceProvider';
|
|
4025
|
+
const SelectionExecuteSelectionProvider = 'ExtensionHostSelection.executeSelectionProvider';
|
|
4015
4026
|
const SourceControlAcceptInput = 'ExtensionHostSourceControl.acceptInput';
|
|
4016
4027
|
const SourceControlAdd = 'ExtensionHostSourceControl.add';
|
|
4017
4028
|
const SourceControlDiscard = 'ExtensionHostSourceControl.discard';
|
|
@@ -4028,8 +4039,6 @@ const TextDocumentSyncIncremental = 'ExtensionHostTextDocument.syncIncremental';
|
|
|
4028
4039
|
const TextSearchExecuteTextSearchProvider = 'ExtensionHostTextSearch.executeTextSearchProvider';
|
|
4029
4040
|
const TypeDefinitionExecuteTypeDefinitionProvider = 'ExtensionHostTypeDefinition.executeTypeDefinitionProvider';
|
|
4030
4041
|
const WorkspaceSetPath = 'Workspace.setWorkspacePath';
|
|
4031
|
-
const SelectionExecuteSelectionProvider = 'ExtensionHostSelection.executeSelectionProvider';
|
|
4032
|
-
const ConfigurationSetConfiguration = 'ExtensionHostConfiguration.setConfiguration';
|
|
4033
4042
|
|
|
4034
4043
|
const create = () => {
|
|
4035
4044
|
return {
|
|
@@ -5646,6 +5655,7 @@ const commandMap = {
|
|
|
5646
5655
|
[FileSystemGetPathSeparator]: getPathSeparator,
|
|
5647
5656
|
[FileSystemReadDirWithFileTypes]: readDirWithFileTypes$2,
|
|
5648
5657
|
[FileSystemReadFile]: readFile$2,
|
|
5658
|
+
[FileSystemRename]: rename$1,
|
|
5649
5659
|
[FileSystemWriteFile]: writeFile$2,
|
|
5650
5660
|
[FormattingExecuteFormmattingProvider]: executeFormattingProvider,
|
|
5651
5661
|
[HoverExecute]: executeHoverProvider,
|