@lvce-editor/main-process 2.23.0 → 2.24.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.
@@ -4842,8 +4842,16 @@ const handleSecondInstance = async (event, commandLine, workingDirectory, additi
4842
4842
  await handleReady(parsedArgs, workingDirectory);
4843
4843
  };
4844
4844
 
4845
+ const normalizePath = fullPath => {
4846
+ if (fullPath.startsWith('file://')) {
4847
+ return fileURLToPath(fullPath);
4848
+ }
4849
+ return fullPath;
4850
+ };
4851
+
4845
4852
  const showItemInFolder = fullPath => {
4846
- shell.showItemInFolder(fullPath);
4853
+ const normalized = normalizePath(fullPath);
4854
+ shell.showItemInFolder(normalized);
4847
4855
  };
4848
4856
  const openPath = async path => {
4849
4857
  // TODO handle error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "electron"