Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make "args": "${command:pickArgs}" as default debug configuration#548

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eleanorjboyd merged 2 commits intomicrosoft:mainfromTCPsoftware:main
Feb 14, 2025

Conversation

TCPsoftware
Copy link
Contributor

This PR is related to these issues:
microsoft/vscode#225834
microsoft/vscode#232560
#233
#465
#497

I searchedrepo:microsoft/vscode-python-debugger command:pickArgs filtered by code, and find four snippet in thee files.

request:'launch',
program:'${file}',
console:'integratedTerminal',
args:['${command:pickArgs}'],
};
sendTelemetryEvent(EventName.DEBUGGER_CONFIGURATION_PROMPTS,undefined,{
configurationType:DebugConfigurationType.launchFileWithArgs,

request:'launch',
program:'${file}',
console:'integratedTerminal',
args:['${command:pickArgs}'],
};
expect(state.config).to.be.deep.equal(config);

"args": {
"default": [],
"description":"Command line arguments passed to the program. For string type arguments, it will pass through the shell as is, and therefore all shell variable expansions will apply. But for the array type, the values will be shell-escaped.",
"items": {
"type":"string"
},
"anyOf": [
{
"default":"${command:pickArgs}",
"enum": [
"${command:pickArgs}"
]
},
{
"type": [
"array",
"string"
]
}
]
},

In lines 286 to 306 ofpackage.json, it shows three usages of theargs parameter. The first is that the value of theargs parameter is "${command:pickArgs}", the second is to provide an array, and the third is to provide a string.

In thevscode documentation, it is also mentioned:

Note: There is a difference in how"${command:pickArgs}" and["${command:pickArgs}"] are parsed, with specific notice to the usage of[]. As an array, all arguments are passed as a single string, without brackets each argument is passed as its own string.

Therefore, I think the two filesfileLaunchWithArgs.ts andfileLaunchWithArgs.unit.test.ts are the key factors affecting this problem. Then I delete the [ ] in these two code snippets.


When I wrote this PR, I checked the file modification history and found that the modification in PR#385 added [ ], but this was completely wrong (refer to the discussion of issue#497), and was not the correct way to solve issue#233 (PR#499 solved the problem), and led to a series of issues listed at the beginning.

Just consider this PR to have coincidentally performed a "revert" operation.

josmithua and PRO-2684 reacted with thumbs up emoji
@TCPsoftware
Copy link
ContributorAuthor

@microsoft-github-policy-service agree

@karthiknadigkarthiknadig added the bugIssue identified by VS Code Team member as probable bug labelJan 16, 2025
@vs-code-engineeringvs-code-engineeringbot added this to theJanuary 2025 milestoneJan 16, 2025
@eleanorjboydeleanorjboyd merged commit4d27e65 intomicrosoft:mainFeb 14, 2025
16 checks passed
eleanorjboyd added a commit to eleanorjboyd/vscode-python-debugger that referenced this pull requestFeb 14, 2025
…crosoft#548)Co-authored-by: Eleanor Boyd <26030610+eleanorjboyd@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@karthiknadigkarthiknadigkarthiknadig approved these changes

@eleanorjboydeleanorjboydeleanorjboyd approved these changes

Assignees

@eleanorjboydeleanorjboyd

Labels
bugIssue identified by VS Code Team member as probable bug
Projects
None yet
Milestone
February 2025
Development

Successfully merging this pull request may close these issues.

3 participants
@TCPsoftware@karthiknadig@eleanorjboyd

[8]ページ先頭

©2009-2025 Movatter.jp