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

Inferring input.json location for debug workspace launcher #262

Conversation

johanfylling
Copy link
Collaborator

And enabling 'stopOnEntry' by default.

And enabling 'stopOnEntry' by default.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
// Only add the inputPath if the file exists
var inputPath = getInputPath();
if (!existsSync(inputPath)) {
inputPath = "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this handled as no input path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I'll change this to be undefined if no file is found instead, as that feels a bit more idiomatic.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
@johanfylling johanfylling merged commit 08f9310 into open-policy-agent:main Sep 12, 2024
7 checks passed
@johanfylling johanfylling deleted the debug/default_launch_infer_input_path branch September 12, 2024 09:45
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.

2 participants