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

Should "executing task" be localized? #152076

Closed
Tyriar opened this issue Jun 14, 2022 · 2 comments · Fixed by #152190
Closed

Should "executing task" be localized? #152076

Tyriar opened this issue Jun 14, 2022 · 2 comments · Fixed by #152190
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Jun 14, 2022

I noticed some task messages weren't localized:

if (needsFolderQualification && workspaceFolder) {
shellLaunchConfig.initialText = `\x1b[1m> Executing task in folder ${workspaceFolder.name}: ${commandLine} <\x1b[0m\n`;
} else {
shellLaunchConfig.initialText = `\x1b[0m\n\n\r\x1b[7m * \x1b[0;44;37m Executing task: ${commandLine} \x1b[0m\n`;
}

if (needsFolderQualification && workspaceFolder) {
shellLaunchConfig.initialText = `\x1b[1m> Executing task in folder ${workspaceFolder.name}: ${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)} <\x1b[0m\n`;
} else {
shellLaunchConfig.initialText = `\x1b[1m> Executing task: ${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)} <\x1b[0m\n`;
}

initialText: task.command.presentation && task.command.presentation.echo ? `\x1b[1m> Executing task: ${task._label} <\x1b[0m\n` : undefined,

Terminal support for unicode is pretty great now so if we have issues with other languages here we should fix them.

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug tasks Task system issues labels Jun 14, 2022
@Tyriar Tyriar added this to the June 2022 milestone Jun 14, 2022
@alexr00
Copy link
Member

alexr00 commented Jun 14, 2022

Seems like a good idea. Changing these would only be an issue if we have extensions that are reading terminal output and looking for these strings.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 14, 2022

That's a proposed api that will probably never get finalized, I doubt the few that use this would be checking for task messages like that.

Tyriar added a commit that referenced this issue Jun 15, 2022
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 15, 2022
justschen pushed a commit to justschen/vscode that referenced this issue Jun 16, 2022
@Tyriar Tyriar added the verified Verification succeeded label Jun 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants