@lvce-editor/main-area-worker 9.74.2 → 9.74.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.
@@ -8203,6 +8203,10 @@ const hasDirtyTabs = state => {
8203
8203
  return getDirtyTabs(state).length > 0;
8204
8204
  };
8205
8205
 
8206
+ const hasOpenTextEditor = state => {
8207
+ return state.layout.groups.some(group => group.tabs.some(tab => !tab.terminal && tab.editorInput?.type === 'editor'));
8208
+ };
8209
+
8206
8210
  const initialize$1 = async () => {
8207
8211
  // Kept as a compatibility command for existing renderer startup code.
8208
8212
  };
@@ -9640,6 +9644,7 @@ const commandMap = {
9640
9644
  'MainArea.handleWorkspaceRefresh': wrapAsyncCommand(handleWorkspaceRefreshWithContext),
9641
9645
  'MainArea.hasActiveTextEditor': wrapGetter(hasActiveTextEditor),
9642
9646
  'MainArea.hasDirtyTabs': wrapGetter(hasDirtyTabs),
9647
+ 'MainArea.hasOpenTextEditor': wrapGetter(hasOpenTextEditor),
9643
9648
  'MainArea.initialize': initialize$1,
9644
9649
  'MainArea.loadContent': loadContentTracked,
9645
9650
  'MainArea.loadContentLater': wrapAsyncCommand(loadContentLater),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.74.2",
3
+ "version": "9.74.3",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",