question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

question about variable substitution in `vsicons.customIconFolderPath`

See original GitHub issue

I have a custom icon folder in my project directory that I would like to add into version control, but it seems I’m unable to utilize variable substitution in the vsicons.customIconFolderPath setting.

I’ve tried ${workspaceRoot}, ${workspaceFolder} and even a relative path (relative from .vscode/settings.json), and none of them works. But specifying the full absolute path to the directory works (using pwd). I would like to know if variable substitution is possible, thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
radzikshcommented, Oct 30, 2018

@gerardmrk I added in projectFolder/.vscode/settings.json these lines:

"vsicons.customIconFolderPath": "./.vscode",
 "vsicons.associations.files": [
        { "icon": "formRelated", "extensions": ["form-container.tsx"], "filename": true, "format": "png", "overrides": "form-container.tsx" },
        { "icon": "formRelated", "extensions": ["form-view.tsx"], "filename": true, "format": "png", "overrides": "form-view.tsx" }
    ],

next I added vsicons-custom-icons folder and file_type_formRelated.png (32x32 px) file in it. projectFolder/.vscode/vsicons-custom-icons/file_type_formRelated.png

Press F1 > Icons: Apply Icons Customization

works for me.

1reaction
JimiCcommented, Jan 14, 2018

I’m experimenting to see if I can come up with something, using workspaceRoot and workspaceFolder. Will post back if I have something worth mentioning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variables reference - Visual Studio Code
Variables Reference. Visual Studio Code supports variable substitution in Debugging and Task configuration files as well as some select settings.
Read more >
Predefined variable substitution in VSCode tasks user input
This issue suggests that variable substitution is currently not supported for inputs , but might be added sometime in the future:.
Read more >
output用much还是many修饰- CSDN
Use <num> as the variable for the reference number "gitlens.autolinks": [] ... 指向位于您的计算机上含自定义图标的文件夹的父文件夹的物理路径 "vsicons.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found