-
Notifications
You must be signed in to change notification settings - Fork 174
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
[Feature Request]: support for preLaunchTask #227
Comments
Use depending on the complexity, you can use a 'variable' to run a shell command prior to starting debugging, such as this: {
"configurations": {
"test": {
"variables":
{
"MAKE_IGNORED": { "shell": "make -C ${workspaceRoot} ${fileBasenameNoExtension}" }
},
....
}
} I'm not going to implement a whole task system as that's way out of scope for this plugin. You can do that with other things such as custom function, custom commands, mappings etc., or just a exit_cb on a job: |
Completely agree I forgot about the pipe in vim to run commands. For anyone using you also have to set the My build task looks like this. [configure_release]
command=cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
cwd=$(VIM_ROOT)/build
save=2
[ninja]
command=ninja -C build
cwd=$(VIM_ROOT)
save=2
[sync-ninja]
command=ninja -C build
cwd=$(VIM_ROOT)
mode=vim
save=2 and I run the debugger with this |
Vscode has the
preLaunchTask
option in the json for launch configurations.If we could have this option that would be perfect.
I realize that it would require a whole task system and dependency resolution which would be outside the scope of this project.
There does not seem to be a plugin that replicates the task system of vscode.
I'm currently using AsyncTasks even if there is no task dependency system and they don't plan on adding it.
An integration with this plugin or the ability to run a vim command specified in the
preLaunchTask
would be great.The common use case is to build before running. If you have any other way to fix this please let me know.
The text was updated successfully, but these errors were encountered: