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

Add shortTitle to execSelectionInTerminal command#25007

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

Conversation

dineshcsdev
Copy link

hi iam a begineer from tamilnadu if i do anything wrong please let me know
thankyou!
Add shortTitle to execSelectionInTerminal command

@vs-code-engineeringvs-code-engineeringbot added this to theApril 2025 milestoneApr 23, 2025
@karthiknadig
Copy link
Member

@Dinesh-0813 Can you remove the package.lock. it might be using the wrong version of npm.

connor4312
connor4312 previously requested changesApr 23, 2025
Copy link
Member

@connor4312connor4312 left a comment

Choose a reason for hiding this comment

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

package bump / package-lock.json changes should not be committed this way

package.json Outdated
@@ -1567,7 +1569,7 @@
"cross-env": "^7.0.3",
"cross-spawn": "^6.0.5",
"del": "^6.0.0",
"download": "^8.0.0",
"download": "^3.3.0",
Copy link
Member

Choose a reason for hiding this comment

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

undo this version change, and revert thepackage-lock.json

@dineshcsdev
Copy link
Author

@microsoft-github-policy-service agree

@dineshcsdev
Copy link
Author

Hi, I've reverted the package-lock.json and package.json changes as requested. Please review again. Thank you!

@connor4312
Copy link
Member

You will still want to keep the title addition in package.json, just without the module version bump

@dineshcsdev
Copy link
Author

Hi, I’ve added the title field back to package.json as %shortTitle% without modifying the version. Let me know if anything else is needed. Thanks!

package.json Outdated
@@ -2,6 +2,7 @@
"name": "python",
"displayName": "Python",
"description": "Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.",
"title": "%shortTitle%",
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right

Copy link
Member

Choose a reason for hiding this comment

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

It should really be on the command not the extension.

@dineshcsdev
Copy link
Author

Thanks for the feedback! I've moved the shortTitle to the command as suggested.

Copy link
Author

@dineshcsdevdineshcsdev left a comment

Choose a reason for hiding this comment

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

"Hi@connor4312@karthiknadig, I have fixed the missing shortTitle in package.nls.json as suggested. Kindly review. Thanks!"

package.json Outdated
@@ -325,7 +325,8 @@
{
"category": "Python",
"command": "python.execSelectionInTerminal",
"title": "%python.command.python.execSelectionInTerminal.title%"
"title": "%python.command.python.execSelectionInTerminal.title%",
"shortTitle": "%python.menu.execSelectionInTerminal.title%"
Copy link
Member

Choose a reason for hiding this comment

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

This should bepython.command.python.execSelectionInTerminal.shortTitle

@dineshcsdev
Copy link
Author

@karthiknadig Thank you for the review. I've fixed the shortTitle value in package.json to use the correct reference "%python.command.python.execSelectionInTerminal.shortTitle%" as you suggested. This now properly references the existing localization string in package.nls.json instead of using the incorrect menu-based reference.

The changes have been pushed to my branch. Please let me know if there are any other adjustments needed.

@@ -5,8 +5,9 @@
"python.command.python.createNewFile.title": "New Python File",
"python.command.python.createTerminal.title": "Create Terminal",
"python.command.python.execInTerminal.title": "Run Python File in Terminal",
"python.menu.execSelectionInTerminal.title": "Run Selection",
Copy link
Member

Choose a reason for hiding this comment

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

This is not used anywhere. Please make sure to only make changes that are relevant to this issue.

@dineshcsdev
Copy link
Author

sorry for that i fixed that can you please review now

karthiknadig
karthiknadig previously approved these changesApr 27, 2025
joyceerhl
joyceerhl previously approved these changesApr 27, 2025
@dineshcsdev
Copy link
Author

@connor4312 i completed your request changes please review

@karthiknadigkarthiknadig self-assigned thisApr 30, 2025
@karthiknadigkarthiknadig added bugIssue identified by VS Code Team member as probable bug skip package*.jsonpackage.json and package-lock.json don't both need updating labelsApr 30, 2025
@karthiknadig
Copy link
Member

@Dinesh-0813 Please undo the package-lock changes.

@dineshcsdev
Copy link
Author

Undo package-lock.json changes as requested

@dineshcsdev
Copy link
Author

@connor4312 please review

@karthiknadigkarthiknadig merged commita3dd3aa intomicrosoft:mainMay 6, 2025
47 of 48 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@karthiknadigkarthiknadigkarthiknadig approved these changes

@anthonykim1anthonykim1anthonykim1 approved these changes

@connor4312connor4312Awaiting requested review from connor4312

@joyceerhljoyceerhlAwaiting requested review from joyceerhl

Assignees

@karthiknadigkarthiknadig

Labels
bugIssue identified by VS Code Team member as probable bugskip package*.jsonpackage.json and package-lock.json don't both need updatingskip-issue-check
Projects
None yet
Milestone
May 2025
Development

Successfully merging this pull request may close these issues.

5 participants
@dineshcsdev@karthiknadig@connor4312@joyceerhl@anthonykim1

[8]ページ先頭

©2009-2025 Movatter.jp