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

escape backslash in args #37

Closed
wants to merge 1 commit into from

Conversation

ousttrue
Copy link

@ousttrue ousttrue commented Aug 4, 2021

Hello.

Backslash in args require escape.

// launch.json.
            "args": [
                "C:\\GLtfSampleModles\\2.0\\Cube\\glTF\\Cube.gltf",
            ],

This pull request escape backslash.

src.replace(/\\/g, "\\\\");

Thank you.

@ousttrue ousttrue changed the title escape_backslash escape backslash in args Aug 4, 2021
@tomblind
Copy link
Owner

tomblind commented Aug 5, 2021

Thanks for submitting this! Your fix worked in windows but didn't resolve the issue in linux, so I pushed an alternative solution that works in both: 567607b

I'll try to submit a new version to vscode soon which will contain this fix.

@tomblind tomblind closed this Aug 5, 2021
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.

None yet

2 participants