Skip to content

Commit 7d3489c

Browse files
committed
mark renderCodicons as deprecated, microsoft#105588
1 parent 11479ca commit 7d3489c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/base/common/codicons.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ export function markdownUnescapeCodicons(text: string): string {
499499
}
500500

501501
export const renderCodiconsRegex = /(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;
502+
503+
/**
504+
* @deprecated Use `renderCodiconsAsElement` instead
505+
*/
502506
export function renderCodicons(text: string): string {
503507
return text.replace(renderCodiconsRegex, (_, escaped, codicon, name, animation) => {
504508
// If the class for codicons is changed, it should also be updated in src\vs\base\browser\markdownRenderer.ts

0 commit comments

Comments
 (0)