Skip to content

[Enhancement or Issue ??] Error when using command "powerquery.extractDataflowDocument" on file already extracted #242

@RockCroc

Description

@RockCroc

Not sure where that one sits. Enhancement or Issue? I'll let you decide.

We'd like to automate this command in a git pre-commit hook but the issue is that it throws an error when the JSON file has already been extracted as a .pq in the same folder.

Image

It would be nice to be able to change settings to force the command to overwrite existing files.

I would probably be able to implement some sort of error handling in our pre-commit hook but I think the command should at least ask to overwrite or cancel the command.
Another option would be to extend the setting "Powerquery > Editor: Transform Target" to this command as well but that may screw up the JSON format and make it impossible for other JSON pre-commit hooks to process the file correctly.
A setting to enable or disable automatic overwrite of .pq files when using this command could also be a viable option.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions