Skip to content

[Bug]: 为什么函数参数的 syntaxContextType 没有 column ? #379

Open
@defghy

Description

@defghy

Version

v4.0.2

Which SQL?

Hive

SQL content

SELECT concat(<cursor_pos>as c from tb -- 这里<cursor_pos>是游标位置;

SELECT concat(a, b) as c from tb -- 正常的语句

JavaScript/TypeScript code

No response

What happened?

这里我觉得 syntaxContextType 应该是 'function' 或者 'column',但是 getSuggestionAtCaretPosition 返回的结果没有column
image

这样我就没办法给用户提示出 tb 下的列名了

官方demo页面可以复现:https://dtstack.github.io/monaco-sql-languages/

Relevant log output

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions