Prevent global namespace pollution in Markdown preview #147936
Labels
feature-request
Request for new features or functionality
help wanted
Issues identified as good community contribution opportunities
insiders-released
Patch has been released in VS Code Insiders
markdown
Markdown support issues
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
A script for Markdown preview from my extension accidentally met collision with a minimized global variable provided by VS Code. It brought a broken Markdown preview that is difficult to debug a problem.
marp-team/marp-vscode#345 (comment)
I think extension authors might want to take care with global namespace pollution, but applying IIFE into VS Code's Markdown preview script also would be better to save extensions from accidental breaking.
The text was updated successfully, but these errors were encountered: