fix(editor): restore quoted table keyword completion

This commit is contained in:
ekesaiting authored and GitHub committed 2026-08-01 02:19:10 +08:00
1 parent 61e149bb9f
commit 7cf5795666
3 files changed
+44 -5

No files matched your search

+6
View File
@@ -1329,6 +1329,12 @@ async function newQuery() {
databaseType: effectiveDatabaseTypeForConnection(conn),
});
const tabId = queryStore.createTab(conn.id, target.database, undefined, "query", target.schema, initialSql, target.catalog);
if (initialSql) {
const prefilledTab = queryStore.tabs.find((t) => t.id === tabId);
if (prefilledTab) {
prefilledTab.editorSelection = { anchor: initialSql.length, head: initialSql.length };
}
}
try {
await connectionStore.ensureConnected(target.connectionId);
if (target.shouldRefreshDefaultDatabase) {