mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 07:20:24 +08:00
fix: sql提示bug修复
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user