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

fix: fix incorrect parsing options when options with quote #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jas0ncn
Copy link

@jas0ncn jas0ncn commented Aug 11, 2022

Currently when I set jestRunIt.environmentVariables, Jest run it will parsing it and pass to VSCode. But in some case, such as environmentVariables has quotes, convertEnvVariablesToObj split environmentVariables with empty space ' ' simply will incorrect split two variables.

Incorrect Case

{
	"jestRunIt.environmentVariables": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\""
}

image

Causing start debug command failed:

image

Fixing Result

image

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.

1 participant