File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/server/src/complete Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,12 @@ export class Identifier {
46
46
const idx = this . lastToken . lastIndexOf ( '.' )
47
47
const label = this . identifier . substring ( idx + 1 )
48
48
let kindName : string
49
- let tableAlias = ''
50
49
if ( this . kind === ICONS . TABLE ) {
51
50
let tableName = label
52
51
const i = tableName . lastIndexOf ( '.' )
53
52
if ( i > 0 ) {
54
53
tableName = label . substring ( i + 1 )
55
54
}
56
- tableAlias = this . onClause === 'FROM' ? makeTableAlias ( tableName ) : ''
57
55
kindName = 'table'
58
56
} else {
59
57
kindName = 'column'
@@ -66,11 +64,7 @@ export class Identifier {
66
64
}
67
65
68
66
if ( this . kind === ICONS . TABLE ) {
69
- if ( tableAlias ) {
70
- item . insertText = `${ label } AS ${ tableAlias } `
71
- } else {
72
- item . insertText = label
73
- }
67
+ item . insertText = label
74
68
}
75
69
return item
76
70
}
You can’t perform that action at this time.
0 commit comments