fix(editor): reduce SQL editor typing latency

This commit is contained in:
t8y2 committed 2026-09-09 11:19:48 +08:00
1 parent 6d1eb026cd
commit b80135dbbd
2 files changed
+60 -4

No files matched your search

@@ -22,4 +22,10 @@ describe("QueryEditor semantic highlighting while scrolling", () => {
expect(queryEditorSource).toContain("MAX_SQL_SEMANTIC_HIGHLIGHT_WINDOWS = 32");
expect(queryEditorSource).toContain("this.cachedWindows.splice(0, this.cachedWindows.length - MAX_SQL_SEMANTIC_HIGHLIGHT_WINDOWS)");
});
it("defers semantic highlighting while the document is changing", () => {
expect(queryEditorSource).toContain("SQL_SEMANTIC_HIGHLIGHT_DEBOUNCE_MS = 100");
expect(queryEditorSource).toContain("this.decorations = this.decorations.map(update.changes)");
expect(queryEditorSource).toContain("refreshSqlSemanticHighlightEffect.of(null)");
});
});