@lvce-editor/extension-management-worker 4.75.0 → 4.75.2

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.
@@ -2229,7 +2229,8 @@ const getExtensionAbsolutePath = (id, isWeb, isBuiltin, path, relativePath, orig
2229
2229
  return path + '/' + relativePath;
2230
2230
  }
2231
2231
  if (isBuiltin) {
2232
- return `${assetDir}/extensions/${id}/${relativePath}`;
2232
+ const folderName = path.split(/[/\\]/).findLast(Boolean) || id;
2233
+ return `${assetDir}/extensions/${folderName}/${relativePath}`;
2233
2234
  }
2234
2235
  return new URL('/remote' + path + '/' + relativePath, origin).href;
2235
2236
  };
@@ -3521,7 +3522,8 @@ const disposeLanguageServers = async (extensionIds, disposeAll) => {
3521
3522
  };
3522
3523
  const getRetainedExtensionIds = async getExtensions => {
3523
3524
  try {
3524
- const extensions = await getExtensions('', 0);
3525
+ const platform = await invoke$4('Layout.getPlatform');
3526
+ const extensions = await getExtensions('', platform);
3525
3527
  return new Set(extensions.filter(extension => extension.preserveRuntimeOnWorkspaceChange === true).map(extension => extension.id).filter(id => typeof id === 'string'));
3526
3528
  } catch {
3527
3529
  return new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.75.0",
3
+ "version": "4.75.2",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"