mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-02 12:41:34 +08:00
🐛 fix(sql-editor): 移除对象信息未命中误报提示
- 取消对象信息未命中时的提示弹窗 - 保留已识别对象的 hover 与超链接行为 - 补充未命中静默回归测试
This commit is contained in:
@@ -2820,13 +2820,7 @@ const QueryEditor: React.FC<{ tab: TabData; isActive?: boolean }> = ({ tab, isAc
|
||||
keybindings: showObjectInfoKeybinding,
|
||||
run: () => {
|
||||
const preferredPosition = lastHoverTargetPositionRef.current || editor.getPosition?.();
|
||||
const shown = showObjectInfoAtPosition(preferredPosition);
|
||||
if (!shown) {
|
||||
void message.info({
|
||||
key: 'gonavi-query-editor-object-info-miss',
|
||||
content: '当前光标未定位到可识别的表或字段。',
|
||||
});
|
||||
}
|
||||
showObjectInfoAtPosition(preferredPosition);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user