Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom params #103

Merged
merged 3 commits into from
Mar 29, 2024
Merged

Conversation

liuxy0551
Copy link
Collaborator

@liuxy0551 liuxy0551 commented Feb 4, 2024

  1. setupLanguageFeatures 方法支持传入 preprocessCode 参数,用于预处理代码
  2. website 中使用 preprocessCode 参数,处理离线业务场景中的自定义参数语法
  3. 在语法检查和自动补全中使用了 preprocessCode 方法

Jietu20240205-144139-HD

预览地址:https://liuxy0551.github.io/monaco-sql-languages/
测试的 SQL:

SELECT ${aaad} from ${aaad};

SELECT @@{dddd} from ${aaa};

SELECT @@{dddd} from @@{dddd};

SELECT @@{dddd} from @@{dd.a.d_a.c-d} where @@{} = 1;

@mumiao
Copy link
Collaborator

mumiao commented Feb 5, 2024

+1

src/languageFeatures.ts Outdated Show resolved Hide resolved
src/languageFeatures.ts Outdated Show resolved Hide resolved
@HaydenOrz HaydenOrz marked this pull request as ready for review March 29, 2024 02:13
@HaydenOrz HaydenOrz merged commit 51777c6 into DTStack:main Mar 29, 2024
1 check passed
@liuxy0551
Copy link
Collaborator Author

liuxy0551 commented Mar 29, 2024

@liuxy0551 liuxy0551 deleted the feat_custom_params branch May 29, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants