Commit Graph
15 Commits
Author SHA1 Message Date
zipgandzipg ed1881e323 fix(editor): 右键粘贴含 CRLF 的剪贴板文本不再报选区越界 (#9576)
SQL 编辑器里选中一百多行后,右键“粘贴”从 Excel 复制的表格数据会报
“读取剪贴板失败:Selection points outside of document”,文档内容不变;
先删除文本再粘贴则正常。

右键粘贴按剪贴板原文长度计算光标位置,而 CodeMirror 会把插入文本中的
\r\n、\r 归一化为 \n,实际写入的文本比原文短,光标落到文档末尾之后,
dispatch 抛出 RangeError: Selection points outside of document。

- 新增 queryEditorClipboardPasteChange:先归一行尾再按实际插入长度计算光标
- QueryEditor 右键粘贴改用它,选区长度不再影响粘贴是否成功

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
2026-09-19 13:31:40 +08:00
t8y2 9ded32c4c1 fix(editor): navigate SQL hover search matches
Closes #9442
2026-09-17 21:02:41 +08:00
Mo-Moore 254b9baaff feat(editor): resolve table hover across schemas in current database 2026-09-17 14:32:45 +08:00
Abeautifulsnow 3f74195835 fix(editor): keep Cmd+H for macOS hide instead of replace 2026-09-15 12:09:04 +08:00
dienaso 16491cc3dd fix(editor): keep Enter and Tab with the IME during composition 2026-09-06 15:00:00 +08:00
t8y2 fe955da729 fix(editor): fold Elasticsearch REST requests individually
Closes #8065
2026-09-04 00:44:10 +08:00
Abeautifulsnow dd11e42748 fix(editor): anchor wrapped line numbers via inline style 2026-09-03 18:50:05 +08:00
jearhe f9ff9245ce feat(editor): search table structure hover with aligned offsets 2026-09-01 01:46:04 +08:00
二丫讲梵 038ff4e773 fix(editor): align wrapped line numbers 2026-08-28 17:19:40 +08:00
jearhe 4a478acf07 feat(editor): allow hiding query line numbers 2026-08-24 18:35:34 +08:00
zipg 4b75334164 fix(editor): avoid quadratic SQL folding scans 2026-08-21 18:13:55 +08:00
Melody Ruch f4f894d979 fix(editor): ignore SQL Server transaction BEGIN in folding 2026-08-19 15:15:20 +08:00
Melody Ruch de5c2cb26b fix(editor): preserve semantic whitespace in hover DDL copies 2026-08-13 02:12:09 +08:00
yanguibao1997 7be11f54c9 feat(metadata): persist and lazy-load table structure metadata 2026-07-31 16:27:37 +08:00
kcheng007 2cbbaaef4c feat(editor): show complete table DDL on hover 2026-07-29 01:29:20 +08:00