LeetCode-OpenSource / vscode-leetcode

Solve LeetCode problems in VS Code
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode
MIT License
8.16k stars 646 forks source link

Add an option to use emoji for icon like check, lock, and x #361

Open zenof opened 5 years ago

zenof commented 5 years ago

🚀 Feature Proposal

Add an option to use emoji instead of check.png (✅), x.png(❌), lock.png(🔒), blank().png.

Motivation

Currently if using code-server to host VSCode in cloud and open in web browser, the problem list won't display the status icons cause the URL is blocked.

And open the browser console, will see some errors like that:

Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/check.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/x.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/lock.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/blank.png

Contribution

IMHO, add an option to use emoji instead of the png files can bring maximum compatibility.

jdneo commented 5 years ago

@zenof As far as I know, the VS Code does not expose any API to support setting the explorer node icon to an emoji or even octicons. I'm afraid this is not achievable so far.