@lvce-editor/output-view 2.23.1 → 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.
@@ -2274,6 +2274,20 @@ const loadButtons = () => {
2274
2274
  }];
2275
2275
  };
2276
2276
 
2277
+ const getExtensionDetailOptions = async () => {
2278
+ const uri = 'memfs:///extension-detail-output.txt';
2279
+ try {
2280
+ await readFile(uri);
2281
+ return [{
2282
+ id: 'ExtensionDetail',
2283
+ label: 'Extension Detail',
2284
+ uri
2285
+ }];
2286
+ } catch {
2287
+ return [];
2288
+ }
2289
+ };
2290
+
2277
2291
  const error = error => {
2278
2292
  console.error(error);
2279
2293
  };
@@ -2327,8 +2341,9 @@ const getWindowLogUri = async logsFolderUri => {
2327
2341
 
2328
2342
  const loadOptions = async platform => {
2329
2343
  const extensionOptions = await getExtensionOptions();
2344
+ const detailOptions = await getExtensionDetailOptions();
2330
2345
  if (platform === Web) {
2331
- return extensionOptions;
2346
+ return [...detailOptions, ...extensionOptions];
2332
2347
  }
2333
2348
  const logsFolderUri = await getLogsDir();
2334
2349
  const windowLogUri = platform === Electron ? await getWindowLogUri(logsFolderUri) : `${logsFolderUri}/log-window.txt`;
@@ -2344,7 +2359,7 @@ const loadOptions = async platform => {
2344
2359
  id: Window,
2345
2360
  label: 'Window',
2346
2361
  uri: windowLogUri
2347
- }, ...extensionOptions];
2362
+ }, ...detailOptions, ...extensionOptions];
2348
2363
  };
2349
2364
 
2350
2365
  const getSavedFilterValue = savedState => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/output-view",
3
- "version": "2.23.1",
3
+ "version": "2.24.0",
4
4
  "description": "Output View Worker",
5
5
  "repository": {
6
6
  "type": "git",