Skip to content

Commit 303f904

Browse files
authored
Avoid localizing markdown syntax in a couple strings (microsoft#186795)
* Avoid localizing markdown syntax in a couple strings Fix microsoft#172578 * Non-link text prevents this from showing as a button
1 parent 01e8da3 commit 303f904

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/vs/workbench/contrib/debug/browser/welcomeView.ts

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,33 +123,15 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
123123

124124
let debugKeybindingLabel = '';
125125
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
126-
content: localize(
127-
{
128-
key: 'runAndDebugAction',
129-
comment: [
130-
'{0} will be replaced with a keybinding',
131-
'Please do not translate the word "command", it is part of our internal syntax which must not change',
132-
'{Locked="](command:{1})"}'
133-
]
134-
},
135-
"[Run and Debug{0}](command:{1})", debugKeybindingLabel, DEBUG_START_COMMAND_ID),
126+
content: `[${localize('runAndDebugAction', "Run and Debug")}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
136127
when: CONTEXT_DEBUGGERS_AVAILABLE,
137128
group: ViewContentGroups.Debug,
138129
// Allow inserting more buttons directly after this one (by setting order to 1).
139130
order: 1
140131
});
141132

142133
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
143-
content: localize(
144-
{
145-
key: 'detectThenRunAndDebug',
146-
comment: [
147-
'Please do not translate the word "command", it is part of our internal syntax which must not change',
148-
'{Locked="](command:{0})"}',
149-
150-
]
151-
},
152-
"[Show all automatic debug configurations](command:{0}).", SELECT_AND_START_ID),
134+
content: `[${localize('detectThenRunAndDebug', "Show all automatic debug configurations")}](command:${SELECT_AND_START_ID}).`,
153135
when: CONTEXT_DEBUGGERS_AVAILABLE,
154136
group: ViewContentGroups.Debug,
155137
order: 10

0 commit comments

Comments
 (0)