mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
fix: sql提示bug修复
This commit is contained in:
@@ -267,7 +267,7 @@ const registerSqlCompletionItemProvider = () => {
|
|||||||
let str = lastToken.substring(0, lastToken.lastIndexOf('.'))
|
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 tables = await dbInst.loadTables(str)
|
||||||
let suggestions: languages.CompletionItem[] = []
|
let suggestions: languages.CompletionItem[] = []
|
||||||
for (let item of tables) {
|
for (let item of tables) {
|
||||||
|
|||||||
Reference in New Issue
Block a user