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

Improvement: add parameter to enter file directory before running the command #18

Open
jfthuong opened this issue Aug 2, 2018 · 2 comments

Comments

@jfthuong
Copy link

jfthuong commented Aug 2, 2018

Hi,

I believe it would be useful to have a command property with boolean values (like silent) that would force to enter the directory of the file (i.e. doing a "chdir") before running the command specified in cmd.

That would be useful, especially for large projects.

A possible name for this parameter could be chdir.

@SiebrenW
Copy link

SiebrenW commented Apr 28, 2020

Why don't you just do the chdir in the command?
Example:

{
  "saveAndRun.commands": [{
    "match": "\\.cpp$",
    "cmd": "cd ${workspaceFolder}/build && ninja",
    "useShortcut": false,
    "silent": false
  }]
}

@jfthuong
Copy link
Author

jfthuong commented May 2, 2020

Good point :)

But it could be nice to have a parameter to do that

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

No branches or pull requests

2 participants