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

实现代码自动补全 #758

Open
BojunZhong opened this issue Jun 2, 2022 · 3 comments
Open

实现代码自动补全 #758

BojunZhong opened this issue Jun 2, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@BojunZhong
Copy link

Question

如何实现代码自动补全功能,https://dtstack.github.io/molecule/zh-CN/docs/advanced/customize-workbench
并没有讲解有什么办法去实现,有什么案例或者可以方法去实现吗

@BojunZhong BojunZhong added the help wanted Extra attention is needed label Jun 2, 2022
@wewoor
Copy link
Collaborator

wewoor commented Jun 2, 2022

Question

如何实现代码自动补全功能,https://dtstack.github.io/molecule/zh-CN/docs/advanced/customize-workbench 并没有讲解有什么办法去实现,有什么案例或者可以方法去实现吗

这个都是基于 monaco-editor 提供的 langauge API 来实现的,可以参考下这个项目:

https://github.com/DTStack/dt-react-monaco-editor/blob/master/src/components/editor/languages/dt-python/simpleComplete.ts

另外,这个目录下的 language 都有实现自动提示方面的示例:

https://github.com/microsoft/monaco-editor/tree/main/src/language

@BojunZhong
Copy link
Author

BojunZhong commented Jun 2, 2022

ppppp
I have already written the method of automatic code completion in Python. How can I import it? This direct import will report an error
dsads

@wewoor
Copy link
Collaborator

wewoor commented Jun 2, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants