@lvce-editor/extension-host-worker 5.4.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);
|
|
@@ -3988,17 +3996,23 @@ const createWebViewWorkerRpc = async (rpcInfo, port) => {
|
|
|
3988
3996
|
});
|
|
3989
3997
|
};
|
|
3990
3998
|
|
|
3999
|
+
const executeExternalCommand = (method, ...params) => {
|
|
4000
|
+
return invoke$2(method, ...params);
|
|
4001
|
+
};
|
|
4002
|
+
|
|
3991
4003
|
const BraceCompletionExecuteBraceCompletionProvider = 'ExtensionHostBraceCompletion.executeBraceCompletionProvider';
|
|
3992
4004
|
const ClosingTagExecuteClosingTagProvider = 'ExtensionHostClosingTag.executeClosingTagProvider';
|
|
3993
4005
|
const CommandExecute = 'ExtensionHostCommand.executeCommand';
|
|
3994
4006
|
const CompletionExecute = 'ExtensionHostCompletion.execute';
|
|
3995
4007
|
const CompletionResolveExecute = 'ExtensionHostCompletion.executeResolve';
|
|
4008
|
+
const ConfigurationSetConfiguration = 'ExtensionHostConfiguration.setConfiguration';
|
|
3996
4009
|
const DefinitionExecuteDefinitionProvider = 'ExtensionHostDefinition.executeDefinitionProvider';
|
|
3997
4010
|
const DiagnosticExecuteDiagnosticProvider = 'ExtensionHost.executeDiagnosticProvider';
|
|
3998
4011
|
const ExtensionActivate = 'ExtensionHostExtension.activate';
|
|
3999
4012
|
const FileSystemGetPathSeparator = 'ExtensionHostFileSystem.getPathSeparator';
|
|
4000
4013
|
const FileSystemReadDirWithFileTypes = 'ExtensionHostFileSystem.readDirWithFileTypes';
|
|
4001
4014
|
const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
|
|
4015
|
+
const FileSystemRename = 'ExtensionHostFileSystem.rename';
|
|
4002
4016
|
const FileSystemWriteFile = 'ExtensionHostFileSystem.writeFile';
|
|
4003
4017
|
const FormattingExecuteFormmattingProvider = 'ExtensionHostFormatting.executeFormattingProvider';
|
|
4004
4018
|
const HoverExecute = 'ExtensionHostHover.execute';
|
|
@@ -4008,6 +4022,7 @@ const MockRpc = 'ExtensionHostMockRpc.mockRpc';
|
|
|
4008
4022
|
const OrganizeImportsExecute = 'ExtensionHostOrganizeImports.execute';
|
|
4009
4023
|
const ReferenceExecuteFileReferenceProvider = 'ExtensionHostReference.executeFileReferenceProvider';
|
|
4010
4024
|
const ReferenceExecuteReferenceProvider = 'ExtensionHostReference.executeReferenceProvider';
|
|
4025
|
+
const SelectionExecuteSelectionProvider = 'ExtensionHostSelection.executeSelectionProvider';
|
|
4011
4026
|
const SourceControlAcceptInput = 'ExtensionHostSourceControl.acceptInput';
|
|
4012
4027
|
const SourceControlAdd = 'ExtensionHostSourceControl.add';
|
|
4013
4028
|
const SourceControlDiscard = 'ExtensionHostSourceControl.discard';
|
|
@@ -4024,8 +4039,6 @@ const TextDocumentSyncIncremental = 'ExtensionHostTextDocument.syncIncremental';
|
|
|
4024
4039
|
const TextSearchExecuteTextSearchProvider = 'ExtensionHostTextSearch.executeTextSearchProvider';
|
|
4025
4040
|
const TypeDefinitionExecuteTypeDefinitionProvider = 'ExtensionHostTypeDefinition.executeTypeDefinitionProvider';
|
|
4026
4041
|
const WorkspaceSetPath = 'Workspace.setWorkspacePath';
|
|
4027
|
-
const SelectionExecuteSelectionProvider = 'ExtensionHostSelection.executeSelectionProvider';
|
|
4028
|
-
const ConfigurationSetConfiguration = 'ExtensionHostConfiguration.setConfiguration';
|
|
4029
4042
|
|
|
4030
4043
|
const create = () => {
|
|
4031
4044
|
return {
|
|
@@ -5562,6 +5575,7 @@ const commandMap = {
|
|
|
5562
5575
|
'ColorTheme.getColorThemeNames': getColorThemeNames,
|
|
5563
5576
|
'ColorTheme.hydrate': hydrate$1,
|
|
5564
5577
|
'ExtensionHost.launchIframeWorker': launchIframeWorker,
|
|
5578
|
+
'ExecuteExternalCommand.executeExternalCommand': executeExternalCommand,
|
|
5565
5579
|
'ExtensionHostDebug.evaluate': evaluate,
|
|
5566
5580
|
'ExtensionHostDebug.getProperties': getProperties,
|
|
5567
5581
|
'ExtensionHostDebug.listProcesses': listProcesses,
|
|
@@ -5641,6 +5655,7 @@ const commandMap = {
|
|
|
5641
5655
|
[FileSystemGetPathSeparator]: getPathSeparator,
|
|
5642
5656
|
[FileSystemReadDirWithFileTypes]: readDirWithFileTypes$2,
|
|
5643
5657
|
[FileSystemReadFile]: readFile$2,
|
|
5658
|
+
[FileSystemRename]: rename$1,
|
|
5644
5659
|
[FileSystemWriteFile]: writeFile$2,
|
|
5645
5660
|
[FormattingExecuteFormmattingProvider]: executeFormattingProvider,
|
|
5646
5661
|
[HoverExecute]: executeHoverProvider,
|