fix(sql-completion): improve MongoDB editor suggestions

This commit is contained in:
zipg authored and GitHub committed 2026-08-02 09:00:00 +08:00
1 parent b65962d46f
commit 9c8daa2bd4
6 files changed
+234 -50

No files matched your search

@@ -2005,7 +2005,7 @@ export function executableStatementRanges(sql: string, databaseType?: DatabaseTy
export function currentExecutableStatementRange(sql: string, cursorPos: number, databaseType?: DatabaseType, parameterOptions?: SqlParameterOptions): SqlTextRange | null {
if (databaseType === "redis") return redisCommandRangeAtCursor(sql, cursorPos);
if (databaseType === "mongodb") return null;
if (databaseType === "mongodb") return mongoCommandRangeAtCursor(sql, cursorPos);
return statementRangeAtCursor(sql, cursorPos, databaseType, parameterOptions);
}