Extension is not working as expected even set the settings and it gives error when extension starts
VS code v 1.104.0 OS: Ubuntu24.04
Tried this on Ubuntu24.04 , extension installed and add the settings as suggested in <project>.workspace file as below
"folder-path-color.folders": [
{
"path": "frontend",
"tooltip": "Frontend Folder",
"color": "#ff0000"
},
{
"path": "backend",
"color": "#ff00ff"
}
]
and above folder name exist on workspace root. and when check the extension logs it seems itf fail to subscribe; here are the log in Output > Extension Host Tab
2025-09-12 23:42:00.574 [error] TypeError: Cannot read properties of undefined (reading 'subscriptions')
at Object.X [as deactivate] (/home/recursive/.vscode/extensions/ms-python.vscode-python-envs-1.9.12551007-linux-x64/dist/extension.js:2:663893)
at aJ.eb (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:11836)
at file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:9986
at Array.map (<anonymous>)
at aJ.$ (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:9974)
at aJ.terminate (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:10217)
at RP.terminate (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:914)
at bs (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:10410)
at MessagePortMain.<anonymous> (file:///snap/code/206/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:391:6949)
at MessagePortMain.emit (node:events:518:28)
at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
Nore: tried after "Reload Windows" and also restart vs code but same error persist.
screeshot attched:
The problem is this part:
"color": "#ff00ff"
As stated in the Extension Settings portion of the README:
You can only use the predefined color names:
Predefined color names:
blue,magenta,red,cyan,green,yellow.
There's room for customization within your VSCode settings.json:
{
"workbench.colorCustomizations": {
"folderPathColor.custom1": "#5865F2",
"folderPathColor.custom2": "#1ABC9C",
"folderPathColor.custom3": "#E91E63",
"folderPathColor.custom4": "#F1C40F",
"folderPathColor.custom5": "#228ee6",
"folderPathColor.custom6": "#9B59B6"
}
}
And then utilized like so:
"folder-path-color.folders": [
{
"path": "**/components/*",
"color": "custom1",
"symbol": "♺"
},
{
"path": "**/style*/*",
"color": "custom4",
"symbol": "🀦"
},
{
"path": "**/hooks/*",
"color": "custom3",
"symbol": "🪝"
},
{
"path": "**/*test*/*",
"color": "custom2",
"symbol": "🧪"
},
{
"path": "**/types/*",
"color": "custom5",
"symbol": "⛶"
},
{
"path": "**/src/**",
"color": "custom6",
"symbol": "모"
}
],