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

增加task provider功能 #275

Open
ZZH-Finalize opened this issue Sep 24, 2024 · 7 comments
Open

增加task provider功能 #275

ZZH-Finalize opened this issue Sep 24, 2024 · 7 comments

Comments

@ZZH-Finalize
Copy link

Is your feature request related to a problem? Please describe.

vscode有内置的task, 使用者可以把编译任务包装成task, 然后使用快捷键调用task, 或者task之间相互调用, 目前xmake没有提供"xmake"的task类型, 也不能根据xmake.lua生成task配置

Describe the solution you'd like

使用vscode的task provider机制实现, 就像cmake、meson、node等插件所做的那样

Describe alternatives you've considered

No response

Additional context

No response

@waruqi
Copy link
Member

waruqi commented Sep 24, 2024

这里不也是 task 么。

const task = new vscode.Task(kind, vscode.TaskScope.Workspace, "xmake: " + name, "xmake", execution, undefined);

@ZZH-Finalize
Copy link
Author

ZZH-Finalize commented Sep 24, 2024

所以要怎么用呢? meson、cmake的扩展在工作区没有配置task的情况下, 直接运行默认构建任务可以弹出列表来选你要生成哪个target的task, 选了之后task.json里面就会新增内容, xmake的插件这样操作没有反应

这个列表里就是meson插件根据meson.build生成的task, 我现在工作区里meson和xmake都有, 但这个列表里只有meson提供的task

image

@ZZH-Finalize
Copy link
Author

找到了, task provider功能还暂时没有开发, 相关的代码只是return undefined, 我现在讲的东西就是这一块的功能

image

@waruqi
Copy link
Member

waruqi commented Sep 24, 2024

你可以提 pr 过来

@ZZH-Finalize
Copy link
Author

就是因为不会写才提的feature request啊

@waruqi
Copy link
Member

waruqi commented Sep 24, 2024

那就先放着,我暂时没空

@ZZH-Finalize
Copy link
Author

好呢, 大佬愿意做这个我就很满足了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants