You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`[\`${e.rule!.sourceText}\`](settings_${e.rule!.sourceTarget} "${localize('ruleTooltip','View rule in settings')}")`;
261
+
}).join(', ');
262
+
}
256
263
if(isAutoApproved){
257
264
switch(autoApproveReason){
258
265
case'commandLine': {
259
266
if(commandLineResult.rule){
260
-
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rule','Auto approved by rule {0}',`[\`${commandLineResult.rule.sourceText}\`](settings_${commandLineResult.rule.sourceTarget})`)}_`);
267
+
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rule','Auto approved by rule {0}',formatRuleLinks(commandLineResult))}_`);
261
268
}
262
269
break;
263
270
}
264
271
case'subCommand': {
265
272
if(subCommandResults.length===1){
266
-
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rule','Auto approved by rule {0}',subCommandResults.map(e=>`[\`${e.rule!.sourceText}\`](settings_${e.rule!.sourceTarget})`).join(', '))}_`);
273
+
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rule','Auto approved by rule {0}',formatRuleLinks(subCommandResults))}_`);
267
274
}elseif(subCommandResults.length>1){
268
-
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rules','Auto approved by rules {0}',subCommandResults.map(e=>`[\`${e.rule!.sourceText}\`](settings_${e.rule!.sourceTarget})`).join(', '))}_`);
275
+
autoApproveInfo=newMarkdownString(`_${localize('autoApprove.rules','Auto approved by rules {0}',formatRuleLinks(subCommandResults))}_`);
0 commit comments