fix: sql提示bug修复

This commit is contained in:
刘宗洋
2023-02-14 14:03:18 +08:00
parent 7e33e64659
commit 46e331783f

View File

@@ -267,7 +267,7 @@ const registerSqlCompletionItemProvider = () => {
let str = lastToken.substring(0, lastToken.lastIndexOf('.'))
// 库.表名联想
if (dbs.filter((a:any)=>a.name.indexOf(str)> -1)?.length > 0) {
if (dbs.filter((a:any)=>a.name === str)?.length > 0) {
let tables = await dbInst.loadTables(str)
let suggestions: languages.CompletionItem[] = []
for (let item of tables) {