дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
feat(database): add grid range editing and SQL filters
Add rectangular database cell selection and TSV copy/paste, plus schema-aware SQL completion and highlighting in WHERE and ORDER BY fields. Preserve whitespace in highlighted SQL and match the input caret scroll width so the overlay remains aligned. Co-authored-by: zzxzz12345 <[email protected]>
Цей коміт міститься в:
1 джерело
06d78cf524
коміт
75b1704f78
11 files changed
+522
-19
No files matched your search
@@ -47,6 +47,12 @@ export interface SqlCandidate {
|
||||
doc?: string;
|
||||
}
|
||||
|
||||
/** Match the console's automatic trigger: a word or a qualifier followed by a dot. */
|
||||
export function shouldAutoCompleteSql(analysis: Analysis): boolean {
|
||||
const typed = analysis.prefix.text;
|
||||
return analysis.context.kind !== "none" && (!!typed || !!analysis.qualifier) && !/^\d/.test(typed);
|
||||
}
|
||||
|
||||
const MAX_ALL_COLUMNS = 3000;
|
||||
|
||||
const eq = (a: string | null | undefined, b: string | null | undefined) =>
|
||||
|
||||
Reference in new issue
Заблокувати користувача