fix(editor): refresh context actions on first right-click

Closes #6811
This commit is contained in:
t8y2 committed 2026-08-20 14:38:00 +00:00
1 parent 5767a0fd59
commit 90a18a7b23
2 files changed
+105 -1

No files matched your search

@@ -1853,6 +1853,10 @@ const contextMenuItems = computed<ContextMenuItem[]>(() => {
];
});
function currentContextMenuItems(): ContextMenuItem[] {
return contextMenuItems.value;
}
function handleSqlIntentionActions(currentView: EditorViewType): boolean {
if (props.readOnly) return false;
try {
@@ -5838,7 +5842,7 @@ defineExpose({
<template>
<div class="h-full w-full overflow-hidden relative" @gesturestart="onEditorGestureStart" @gesturechange="onEditorGestureChange" @gestureend="onEditorGestureEnd">
<CustomContextMenu :items="contextMenuItems" @close="contextMenuOpen = false" v-slot="{ onContextMenu }">
<CustomContextMenu :items="currentContextMenuItems" @close="contextMenuOpen = false" v-slot="{ onContextMenu }">
<div
ref="editorRef"
data-query-editor-root