@lvce-editor/main-area-worker 9.17.0 → 9.18.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.
|
@@ -4334,6 +4334,11 @@ const handleWorkspaceChange = state => {
|
|
|
4334
4334
|
};
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
|
+
const hasActiveTextEditor = state => {
|
|
4338
|
+
const activeTab = getActiveTab(state);
|
|
4339
|
+
return activeTab?.tab.editorInput?.type === 'editor';
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4337
4342
|
const id = 7201;
|
|
4338
4343
|
const sendMessagePortToExtensionHostWorker = async port => {
|
|
4339
4344
|
await sendMessagePortToExtensionHostWorker$1(port, id);
|
|
@@ -4402,6 +4407,9 @@ const tryRestoreLayout = savedState => {
|
|
|
4402
4407
|
if (typeof savedState !== 'object') {
|
|
4403
4408
|
return undefined;
|
|
4404
4409
|
}
|
|
4410
|
+
if (savedState.restore === false) {
|
|
4411
|
+
return undefined;
|
|
4412
|
+
}
|
|
4405
4413
|
const {
|
|
4406
4414
|
layout
|
|
4407
4415
|
} = savedState;
|
|
@@ -6130,6 +6138,7 @@ const commandMap = {
|
|
|
6130
6138
|
'Main.focusPreviousTab': wrapCommand(focusPreviousTab),
|
|
6131
6139
|
'Main.handleModifiedStatusChange': wrapCommand(handleModifiedStatusChange),
|
|
6132
6140
|
'Main.handleTabContextMenu': wrapCommand(handleTabContextMenu),
|
|
6141
|
+
'Main.hasActiveTextEditor': wrapGetter(hasActiveTextEditor),
|
|
6133
6142
|
'Main.openInput': wrapCommand(openInput),
|
|
6134
6143
|
'Main.openUri': wrapCommand(openUri),
|
|
6135
6144
|
'Main.openUris': wrapCommand(openUris),
|