@lvce-editor/extension-management-worker 4.30.0 → 4.30.1
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.
|
@@ -1944,8 +1944,8 @@ const withWorkspaceDisabledState = (extensions, disabledIds) => {
|
|
|
1944
1944
|
};
|
|
1945
1945
|
});
|
|
1946
1946
|
};
|
|
1947
|
-
const getExtensionsWithWorkspaceState = async extensions => {
|
|
1948
|
-
if (extensions.length === 0) {
|
|
1947
|
+
const getExtensionsWithWorkspaceState = async (extensions, platform) => {
|
|
1948
|
+
if (extensions.length === 0 || platform === Test) {
|
|
1949
1949
|
return extensions;
|
|
1950
1950
|
}
|
|
1951
1951
|
const workspaceDisabledIds = await readDisabledExtensionIdsSafe();
|
|
@@ -1962,10 +1962,10 @@ const getAllExtensionsWithState = async (extensionsState, assetDir, platform) =>
|
|
|
1962
1962
|
if (resolvedPlatform === Web) {
|
|
1963
1963
|
const webExtensions = await getWebExtensions(resolvedAssetDir);
|
|
1964
1964
|
const compatibleExtensions = [...webExtensions, ...meta].filter(extension => isExtensionCompatible(extension, resolvedPlatform));
|
|
1965
|
-
return getExtensionsWithWorkspaceState(compatibleExtensions);
|
|
1965
|
+
return getExtensionsWithWorkspaceState(compatibleExtensions, resolvedPlatform);
|
|
1966
1966
|
}
|
|
1967
1967
|
const local = await invoke$1('ExtensionManagement.getAllExtensions');
|
|
1968
|
-
return getExtensionsWithWorkspaceState([...local, ...meta]);
|
|
1968
|
+
return getExtensionsWithWorkspaceState([...local, ...meta], resolvedPlatform);
|
|
1969
1969
|
};
|
|
1970
1970
|
|
|
1971
1971
|
const getAllExtensions = async (assetDir, platform) => {
|