@lvce-editor/extension-management-worker 4.81.1 → 4.81.3
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.
|
@@ -3994,6 +3994,9 @@ const executeFileSystemProviderReadDirWithFileTypes = (extensionsState, provider
|
|
|
3994
3994
|
const executeFileSystemProviderReadFile = (extensionsState, providerId, uri) => {
|
|
3995
3995
|
return executeFileSystemProviderMethod(extensionsState, 'ExtensionApi.executeFileSystemProviderReadFile', providerId, uri);
|
|
3996
3996
|
};
|
|
3997
|
+
const executeFileSystemProviderGetOpenExternalPath = (extensionsState, providerId, uri) => {
|
|
3998
|
+
return executeFileSystemProviderMethod(extensionsState, 'ExtensionApi.executeFileSystemProviderGetOpenExternalPath', providerId, uri);
|
|
3999
|
+
};
|
|
3997
4000
|
const executeFileSystemProviderStat = (extensionsState, providerId, uri) => {
|
|
3998
4001
|
return executeFileSystemProviderMethod(extensionsState, 'ExtensionApi.executeFileSystemProviderStat', providerId, uri);
|
|
3999
4002
|
};
|
|
@@ -4931,6 +4934,9 @@ const createViewInstance = async (viewId, uid, context, assetDir, platform, appl
|
|
|
4931
4934
|
} = await getViewMetadata(rpc, viewId);
|
|
4932
4935
|
const result = await rpc.invoke('ExtensionApi.createViewInstance', viewId, uid, context);
|
|
4933
4936
|
set$1(uid, {
|
|
4937
|
+
...(applicationId && {
|
|
4938
|
+
applicationId
|
|
4939
|
+
}),
|
|
4934
4940
|
context,
|
|
4935
4941
|
disposeWorkerWhenLastViewCloses,
|
|
4936
4942
|
extensionId,
|
|
@@ -5010,7 +5016,11 @@ const setViewInstanceActive = async (viewId, uid, active, assetDir, platform) =>
|
|
|
5010
5016
|
throw error;
|
|
5011
5017
|
}
|
|
5012
5018
|
};
|
|
5013
|
-
const requestViewRerender = async uid => {
|
|
5019
|
+
const requestViewRerender = async (uid, applicationId) => {
|
|
5020
|
+
const instance = get$1(uid);
|
|
5021
|
+
if (applicationId !== undefined && (instance?.status !== 'ready' || instance.applicationId !== applicationId)) {
|
|
5022
|
+
throw new Error(`view instance ${uid} does not belong to application ${applicationId}`);
|
|
5023
|
+
}
|
|
5014
5024
|
await invoke$4('Viewlet.executeViewletCommand', uid, 'rerender');
|
|
5015
5025
|
};
|
|
5016
5026
|
const showViewContextMenu = async (uid, viewId, menuId, x, y) => {
|
|
@@ -6239,6 +6249,8 @@ const invokeForApplication = async (applicationId, method, ...args) => {
|
|
|
6239
6249
|
}
|
|
6240
6250
|
case 'Extensions.handleFileChanges':
|
|
6241
6251
|
return handleFileChanges(args[0], applicationId);
|
|
6252
|
+
case 'Extensions.requestViewRerender':
|
|
6253
|
+
return requestViewRerender(args[0], applicationId);
|
|
6242
6254
|
case 'Extensions.sendMessagePortToFileSystemWorker':
|
|
6243
6255
|
return createFileSystemPort(application, args[0]);
|
|
6244
6256
|
case 'Extensions.showNotification':
|
|
@@ -6294,6 +6306,7 @@ const commandMap = {
|
|
|
6294
6306
|
'Extensions.executeCompletionProvider': wrapCommand(executeCompletionProvider),
|
|
6295
6307
|
'Extensions.executeDiagnosticProvider': wrapCommand(executeDiagnosticProvider),
|
|
6296
6308
|
'Extensions.executeExtensionCommand': wrapCommand(executeExtensionCommand),
|
|
6309
|
+
'Extensions.executeFileSystemProviderGetOpenExternalPath': wrapCommand(executeFileSystemProviderGetOpenExternalPath),
|
|
6297
6310
|
'Extensions.executeFileSystemProviderIsReadonly': wrapCommand(executeFileSystemProviderIsReadonly),
|
|
6298
6311
|
'Extensions.executeFileSystemProviderMkdir': wrapCommand(executeFileSystemProviderMkdir),
|
|
6299
6312
|
'Extensions.executeFileSystemProviderReadDirWithFileTypes': wrapCommand(executeFileSystemProviderReadDirWithFileTypes),
|