Skip to content

Prevent global namespace pollution in Markdown preview #147936

@yhatt

Description

@yhatt

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.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersmarkdownMarkdown support issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions